Architecture

Three views of the system

Conceptual, logical, and physical. The summary under the drawings comes from the repository architecture document.

Conceptual

A visitor tries the public demo or signs in. Live work scores fit, then unlocks letter, interview, gaps, research, or checklist. Everything can be wiped.

VisitorDemo first, or sign inPublic demoSample résumé + JDsFixture replay, $0 LLMLive coachFit score 1–10Letter / interview / gapsDocumentsVision & requirementsArchitecture & releasesResearch & checklistCompany contextPre-apply stepsCleanupWipe session copiesEphemeral by default

Logical

Next.js pages and App Router APIs orchestrate PDF extract, pasted JDs, Groq agents, and ephemeral sessions. Demo fixtures never call Groq.

UI/, /demo, /executionVision / architecture / releasesAPI routesanalyze / agents / comparecleanup, admin metricsDomain libsPipelines, parse, SSRFSessions, rate limitsDemo fixturessrc/demo/*No Groq, no Redis writesLiving docsPRODUCT_VISION_*.mdARCHITECTURE_*.md, CHANGELOGAuth & quotasClerk invite-onlyPer-user + global capsGroq agentsFit, letter, interviewGaps, research, checklistEphemeral storeSession + last traceTTL + Cleanup

Physical

Vercel hosts the app. Clerk authenticates invites. Upstash holds short-lived sessions and rate limits. Groq runs only on authenticated live paths.

VercelNext.js App RouterPages + APIsHobby-friendlyPublic routes/demo, /vision,/architecture, /releasesProtected live app/ and agent streamsClerk session requiredBrowserWhere the coach UI runsAppShell + tabsDemo or liveClient statesessionStorage tracesEditable letterPDF exportjsPDF in-browserNo letter stored server-sideExternal servicesFree-tier pathClerkInvite-only authUpstash RedisSessions + rate limitsGroqLive LLM onlyNever on /demoHTTPSAPIs

CareerGenie is a Next.js App Router app on Vercel: public /demo (fixture-only) plus invite-only live workflows. Authenticated APIs orchestrate PDF extract, pasted JDs, Groq agents (fit, letter, interview, gaps, research, checklist, compare), and ephemeral Upstash sessions with Clerk auth and per-user quotas. Conceptual / logical / physical pictures live on /architecture; vision and release notes on /vision and /releases, linked from the shared AppShell header on every path.