Skip to content
CAI
Software that uses CAICheck a score

sahat/hackathon-starter

41.8

Weak · 15 November 2026

6.4k

lines of production code

JavaScript

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Account management now supports passkeys, passwordless login, and multi-factor authentication

The account views have been updated to support modern authentication methods. Users can now sign up and log in without a password (passwordless via email link), and the login page includes a button to authenticate using passkeys or biometrics (WebAuthn) where supported. The profile page now allows users to enable, manage, and remove biometric login credentials, as well as configure two-factor authentication using either an authenticator app (TOTP) or email verification codes. Additionally, the signup flow includes an option to create an account without a password, and the account deletion process now requires explicit confirmation.

views/account · high confidence

Add pre-commit hook for linting and testing

A new pre-commit hook has been added to the project to automatically run linting and tests before each commit. The hook executes \npx lint-staged\ to format and lint only the staged files, followed by \npm test\ to run the core test suite, ensuring code quality and stability are maintained at commit time.

.husky · high confidence

Users now have a cookie consent modal that manages analytics and marketing preferences (including Google Consent Mode v2 and Facebook Pixel gating) and a dark mode toggle that persists their theme preference across tabs and syncs with the cookie consent UI.

public/js · high confidence

The public directory now includes dedicated HTML pages for the Privacy Policy and Terms of Use, providing users with clear information on data collection, GDPR compliance, and usage rights. Additionally, a Bootstrap logo SVG and an updated favicon.ico have been added to improve branding consistency.

public · high confidence

Expanded API integration examples with new and updated views

The API examples section now includes dedicated views for Chart.js with Alpha Vantage, Facebook, Foursquare, GIPHY, GitHub, Google Drive, Google Maps, Google Sheets, HERE Maps, Last.fm, Lob, New York Times, PayPal, PubChem, QuickBooks, Web Scraping, Steam, Stripe, Tumblr, and Twilio. The index page has been updated to list all available examples, and specific views like HERE Maps now support dark mode theme switching.

views/api · high confidence

Major v10.0.0 release with AI, authentication, and integration updates

This release introduces a comprehensive suite of new capabilities and architectural improvements. Key additions include an AI Agent boilerplate using LangChain with ReAct reasoning, RAG (Retrieval-Augmented Generation) examples, and various LLM integrations (Groq, Huggingface, OpenAI). Authentication is significantly enhanced with support for passwordless login, passkeys (WebAuthn), 2FA via email/TOTP, and new OAuth providers like Discord and Microsoft. The application now features configurable rate limiting via environment variables, consolidated error handling, and improved session management. Several legacy integrations and dependencies have been removed or updated, including the removal of Pinterest, SendGrid, and lodash, while others like Foursquare and reCAPTCHA have been migrated to newer APIs. The project also adds extensive E2E testing with Playwright and API recording/replay capabilities.

(repo-wide) · high confidence

New AI agent, RAG, and passkey authentication capabilities

This update introduces three major new capabilities to the application. First, it adds a new AI Agent controller (ai-agent.js) that implements a ReAct-style agent using LangChain and Groq, featuring a built-in prompt guard to detect jailbreaks and injections, and persistent memory via MongoDB. Second, it adds a new AI controller (ai.js) that provides a Retrieval-Augmented Generation (RAG) example, allowing users to upload PDF documents which are then chunked, embedded using Hugging Face, and stored in a MongoDB vector search index for semantic querying. Third, it introduces WebAuthn (passkey) support via a new webauthn.js controller, enabling users to register and log in using biometrics or device security keys, alongside a new passwordless login flow via email links in the user controller.

controllers · high confidence

New AI integration examples: Agent, RAG, Vision, and Classification

The AI examples section now features four distinct, consolidated demos. The new AI Agent page provides a customer service chat interface using a LangChain v1 ReAct agent with tool calling, SSE streaming, and MongoDB session persistence. The RAG page demonstrates Retrieval-Augmented Generation using LangChain, Hugging Face embeddings, and MongoDB Atlas Vector Search. The LLM Vision page allows users to capture photos via their device camera and analyze them using the Groq Qwen model. Finally, the LLM Classifier page offers a one-shot text classification example for routing customer messages. These pages replace previous examples and are accessible from the updated AI integration index.

views/ai · high confidence

New session management and enhanced user authentication model

This change introduces a new Session model to manage user sessions, including a method to revoke all valid sessions for a user by validating the user ID against MongoDB ObjectId format to prevent regex injection. The User model has been significantly expanded to support modern authentication features: it now includes fields for WebAuthn (passkeys/biometrics), two-factor authentication (email and TOTP), and email verification. It also adds support for multiple OAuth providers (Discord, Facebook, GitHub, Google, LinkedIn, Microsoft, QuickBooks, Steam, Tumblr, Twitch, X) and stores their respective IDs. The profile section now supports multiple pictures via a Map structure. Security improvements include using @node-rs/bcrypt for password hashing, SHA256 for Gravatar URL generation, and middleware to automatically clear expired tokens (password reset, email verification, login, 2FA) upon save.

models · high confidence

Behavioural changes

Contact form reCAPTCHA integration and dark mode support

The contact form now includes Google reCAPTCHA validation for unauthenticated users, with client-side checks preventing submission if the widget is incomplete. The application layout supports a dark mode that respects the user's system preference or stored choice, applying the appropriate theme class before styles load. Additionally, the layout integrates Google Analytics 4 and Facebook Pixel, gating their execution behind user consent via CookieConsent.

views · high confidence

Enhanced request logging, custom flash messages, and OAuth token revocation support

The application now includes a custom request logger (config/morgan.js) that provides detailed, color-coded logs with parsed user agents and byte counts, while hiding IP addresses in production for privacy. Flash message handling has been replaced with a custom middleware (config/flash.js) to remove unmaintained dependencies, and email sending is now centralized in config/nodemailer.js. Additionally, the system now supports revoking OAuth tokens from providers when unlinking accounts or deleting them, implemented via config/token-revocation.js and integrated into the updated passport configuration.

config · high confidence

Migrate UI components to Bootstrap 5 and add dark mode support

The header, footer, and flash message partials have been rewritten to use Bootstrap 5 classes and JavaScript attributes (such as data-bs-toggle and data-bs-dismiss), replacing the previous Bootstrap 4 structure. The header now includes a dark mode toggle button that switches themes, and the flash messages utilize the new Bootstrap 5 alert styling with a close button. This change updates the visual appearance and interaction behavior of the navigation, footer links, and system notifications to align with the Bootstrap 5 framework.

views/partials · high confidence

Upgrade to Bootstrap 5 and add native dark mode support

The main stylesheet has been migrated from LESS to SCSS and upgraded to Bootstrap 5.3, enabling a native dark mode that respects the user's system preference or explicit choice via a toggle. This change includes specific styling adjustments for social login buttons (Discord, Twitch, Twitter, Google) to ensure brand compliance and visibility, fixes for hardcoded light-background elements in dark mode, and updates to icon display logic for the theme switcher.

public/css · high confidence

Fixes

Patch passport libraries to replace deprecated URL APIs

Applied patches to passport, passport-oauth1, and passport-oauth2 to remove usage of the deprecated Node.js \url\ module. The changes replace \url.parse()\, \url.resolve()\, and \url.format()\ with the modern \URL\ constructor and \URLSearchParams\ API, ensuring compatibility with current Node.js versions and removing deprecation warnings during authentication flows.

patches · high confidence

Test coverage

Added E2E tests for multiple API integrations and AI features; Added Playwright E2E tests for API integrations, file upload, and dark mode; Comprehensive test infrastructure and documentation overhaul; New test tooling for API record/replay and link validation.

Dependencies

Upgrade to version 10.0.0 with Node 24 and major dependency updates

The project has been upgraded to version 10.0.0, requiring Node.js 24.18.0 or later. This release updates core dependencies to their latest major versions, including Express 5, Mongoose 9, MongoDB 7, Stripe 22, and Nodemailer 10. It also introduces new AI capabilities via LangChain (Groq integration), adds support for passkeys using SimpleWebAuthn, and integrates Google Drive and Sheets APIs. Development tooling has been modernized with ESLint 10, Mocha 12, and Playwright 1.63, while legacy packages like jQuery have been updated to version 4.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 43 → 42 (-1.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 39 → 36 (-3.4)
  • Architecture 78 → 78 (+0.0)
  • Maturity 60 → 60 (+0.0)
  • Readiness 42 → 43 (+0.7)
  • Security 40 → 38 (-1.8)
  • Domain Modelling 100 → 100 (+0.0)
  • Accessibility 49 → 52 (+2.9)
  • Performance 100 → 100 (+0.0)

Resolved (11)

  • Disclosure policy routes reports to a public channel
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High secret: WD-SECRET-0005 (package-lock.json)
  • Low CVE: [GHSA redacted] (package-lock.json)
  • Medium CVE: [GHSA redacted] (package-lock.json)
  • Off-boarding risk: anonymized user #1
  • Outdated (npm): @langchain/langgraph-checkpoint-mongodb
  • Outdated (npm): bowser
  • Outdated (npm): express-rate-limit
  • Outdated (npm): nodemailer

New (9)

  • Disclosure policy routes reports to a public channel (SECURITY.md)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Off-boarding risk: anonymized user #1
  • Outdated (npm): bootstrap
  • Outdated (npm): mongodb
  • redundant comment (controllers/ai-agent.js)
  • redundant comment (models/User.js)
  • redundant comment (test/contact.test.js)

Changes since last survey

  • 12 commits — 12 feature/other, 0 fixes

By area

  • (root) — 12 commits

Notable commits

  • change: chore(deps): bump @simplewebauthn/server (#1807)
  • change: chore(deps): bump bowser (#1803)
  • change: chore(deps): bump nodemailer (#1809)
  • change: chore(deps): bump nodemailer (#1810)
  • change: chore(deps): bump the minor-updates group with 4 updates (#1805)
  • change: chore(deps): bump the patch-updates group across 1 directory with 4 updates (#1811)
  • change: chore(deps): bump the patch-updates group with 2 updates (#1806)
  • change: chore(deps): bump the patch-updates group with 3 updates (#1804)
  • change: chore(deps): bump the patch-updates group with 4 updates (#1808)
  • change: chore: update dependencies
  • change: chore: update dependencies
  • change: chore: update dependencies

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sahat/hackathon-starter was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit e735ca8f29d18158b7553244d4e6625ef7eaa383 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.