How ajay9084/path-pilot works
PathPilot is a career-growth web app offering industry insights, onboarding, interview preparation, resume building, and AI cover-letter pages. The user journey begins at the public site, proceeds through sign-in and profile setup, then into career tools; the dashboard retrieves or generates industry insights, while interview and resume workflows use separate server actions. Sampled code supports the dashboard, onboarding, interview, resume, and Inngest relationships; cover-letter implementation details were not sampled, so its connections are omitted.
Main entry points: resume-builder.jsx Resume builder · prisma.js Prisma database · page.jsx Onboarding route · onboarding-form.jsx Profile form
Components 30
Entry and identity
- Public landing
app/page.jsx - Landing hero
components/hero.jsx - Navigation and account
components/header.jsx - Sign in
app/(auth)/sign-in/[[...sign-in]]/page.jsx - Sign up
app/(auth)/sign-up/[[...sign-up]]/page.jsx
Profile setup
- Onboarding route
app/(main)/onboarding/page.jsx - Profile form
app/(main)/onboarding/_components/onboarding-form.jsx - Form schemas
app/lib/schema.js - User actions
actions/user.js
Industry insights
- Dashboard route
app/(main)/dashboard/page.jsx - Insights dashboard
app/(main)/dashboard/_components/dashboard-view.jsx - Industry insight actions
actions/dashboard.js
Career tools
- Interview preparation
app/(main)/interview/page.jsx - Interview actions
actions/interview.js - Quiz and performance views
app/(main)/interview/_component - Resume route
app/(main)/resume/page.jsx - Resume builder
app/(main)/resume/_components/resume-builder.jsx - Resume entry forms
app/(main)/resume/_components/entry-form.jsx - Resume PDF renderer
app/(main)/resume/_components/Resume-PDF.jsx - Resume actions
actions/resume.js - AI cover letter pages
app/(main)/ai-cover-letter
Shared runtime
- Async action hook
hooks/use-fetch.js - UI primitives
components/ui - Prisma database
lib/prisma.js - Inngest endpoint
app/api/inngest/route.js - Inngest client
lib/inngest/client.js - Insight job
lib/inngest/function.js
Other components
- Career seeker
- Clerk identity
- Gemini AI
Connections 40
- Career seeker → Public landing: opens
app/page.jsx - Public landing → Landing hero: renders
app/page.jsx - Public landing → Navigation and account: shows
- Navigation and account → Clerk identity: authenticates
components/header.jsx - Career seeker → Sign in: signs in
app/(auth)/sign-in/[[...sign-in]]/page.jsx - Career seeker → Sign up: signs up
app/(auth)/sign-up/[[...sign-up]]/page.jsx - Sign in → Clerk identity: uses identity
- Sign up → Clerk identity: uses identity
- Career seeker → Onboarding route: opens
app/(main)/onboarding/page.jsx - Onboarding route → Profile form: renders
app/(main)/onboarding/page.jsx - Onboarding route → User actions: loads user
app/(main)/onboarding/page.jsx - Profile form → Form schemas: validates with
app/(main)/onboarding/_components/onboarding-form.jsx - Profile form → Async action hook: submits through
app/(main)/onboarding/_components/onboarding-form.jsx - Profile form → User actions: updates profile
app/(main)/onboarding/_components/onboarding-form.jsx - Onboarding route → UI primitives: uses controls
- User actions → Prisma database: reads and writes
actions/user.js - Career seeker → Dashboard route: opens
app/(main)/dashboard/page.jsx - Dashboard route → Industry insight actions: loads insights
app/(main)/dashboard/page.jsx - Dashboard route → User actions: loads user
app/(main)/dashboard/page.jsx - Dashboard route → Insights dashboard: renders
app/(main)/dashboard/page.jsx - Industry insight actions → Prisma database: reads and writes
actions/dashboard.js - Industry insight actions → Gemini AI: generates insights
actions/dashboard.js - Career seeker → Interview preparation: opens
app/(main)/interview/page.jsx - Interview preparation → Interview actions: loads assessments
app/(main)/interview/page.jsx - Interview preparation → Quiz and performance views: renders
app/(main)/interview/page.jsx - Interview actions → Prisma database: uses database
actions/interview.js - Career seeker → Resume route: opens
app/(main)/resume/page.jsx - Resume route → Resume actions: loads resume
app/(main)/resume/page.jsx - Resume route → Resume builder: renders
app/(main)/resume/page.jsx - Resume builder → Resume actions: saves resume
app/(main)/resume/_components/resume-builder.jsx - Resume builder → Resume entry forms: renders forms
app/(main)/resume/_components/resume-builder.jsx - Resume builder → Resume PDF renderer: renders PDF
app/(main)/resume/_components/resume-builder.jsx - Resume builder → Form schemas: validates with
app/(main)/resume/_components/resume-builder.jsx - Resume actions → Prisma database: uses database
actions/resume.js - Resume builder → Async action hook: wraps save action
app/(main)/resume/_components/resume-builder.jsx - Career seeker → AI cover letter pages: opens
- Inngest endpoint → Inngest client: serves functions
app/api/inngest/route.js - Inngest endpoint → Insight job: registers job
app/api/inngest/route.js - Insight job → Inngest client: uses client
lib/inngest/function.js - Insight job → Prisma database: uses database
lib/inngest/function.js