How shashi-17-afk/hiresight works
HireSight serves recruiters and candidates through separate portals. Recruiters create postings, review AI-scored and ranked applications, and manage status; candidates discover or follow job links, submit resumes, and track applications. The worker API coordinates authentication, recruitment workflows, AI scoring, and real-time updates, backed by Cloudflare state and external email/payment services. README documents client-side PDF extraction and vector search, but those implementations are not present in the sampled source; their links are shown only where documented.
Main entry points: index.ts HTTP API router · App.tsx SPA routing · candidates.ts Candidate submissions · applications.ts Application pipeline
Components 31
Web portals
- SPA routing
src/react-app/App.tsx - Sign-in and registration
src/react-app/pages/AuthPage.tsx - Job discovery and posting
src/react-app/pages/JobsBoard.tsx - Resume application
src/react-app/pages/ApplyJob.tsx - Recruiter workspace
src/react-app/pages/HRDashboard.tsx - Candidate tracking
src/react-app/pages/CandidateDashboard.tsx - Help chat
src/react-app/components/HelpChat.tsx
Worker API
- HTTP API router
src/worker/index.ts - Authentication and OTP
src/worker/routes/auth.ts - Job routes
src/worker/routes/jobs.ts - Candidate submissions
src/worker/routes/candidates.ts - Application pipeline
src/worker/routes/applications.ts - Candidate profiles
src/worker/routes/profile.ts - Subscriptions and payments
src/worker/routes/payments.ts - Help endpoint
src/worker/routes/help.ts
Recruitment services
- Auth and rate limits
src/worker/lib/auth.ts - Resume scoring
src/worker/lib/scoring.ts - Email dispatch
src/worker/lib/email.ts - Email templates
src/worker/lib/email-templates.ts - ATS data model
src/worker/types/ats.ts
Cloudflare state
- Recruitment records
- Rate-limit and OTP state
- Live job rankings
src/worker/leaderboard-do.ts - Live candidate status
src/worker/candidate-status-do.ts
External services
- Workers AI
- Vector search
- Brevo or Resend
- Razorpay
- Browser PDF parsing
Other components
- HR recruiter
- Job candidate
Connections 48
- HR recruiter → SPA routing: uses portal
src/react-app/App.tsx - Job candidate → SPA routing: uses portal
src/react-app/App.tsx - SPA routing → Sign-in and registration: routes to
src/react-app/App.tsx - SPA routing → Job discovery and posting: routes to
src/react-app/App.tsx - SPA routing → Resume application: routes to
src/react-app/App.tsx - SPA routing → Recruiter workspace: routes to
src/react-app/App.tsx - SPA routing → Candidate tracking: routes to
src/react-app/App.tsx - Sign-in and registration → Authentication and OTP: submits credentials
src/react-app/pages/AuthPage.tsx - Job discovery and posting → Job routes: requests jobs
- Resume application → Browser PDF parsing: parses resume
- Resume application → Candidate submissions: submits resume
- Recruiter workspace → Application pipeline: manages pipeline
- Candidate tracking → Candidate profiles: manages profile
- Candidate tracking → HTTP API router: tracks status
- Help chat → Help endpoint: sends questions
- HTTP API router → Authentication and OTP: routes requests
src/worker/index.ts - HTTP API router → Job routes: routes requests
src/worker/index.ts - HTTP API router → Candidate submissions: routes requests
src/worker/index.ts - HTTP API router → Application pipeline: routes requests
src/worker/index.ts - HTTP API router → Candidate profiles: routes requests
src/worker/index.ts - HTTP API router → Subscriptions and payments: routes requests
src/worker/index.ts - HTTP API router → Help endpoint: routes requests
src/worker/index.ts - Authentication and OTP → Auth and rate limits: hashes credentials
src/worker/routes/auth.ts - Authentication and OTP → Email dispatch: dispatches OTP email
src/worker/routes/auth.ts - Authentication and OTP → Email templates: renders email
src/worker/routes/auth.ts - Authentication and OTP → Rate-limit and OTP state: stores OTP state
- Job routes → Auth and rate limits: checks access
src/worker/routes/jobs.ts - Job routes → Recruitment records: reads and writes jobs
- Job routes → Workers AI: embeds job descriptions
- Job routes → Vector search: stores job vectors
- Candidate submissions → Auth and rate limits: checks access
src/worker/routes/candidates.ts - Candidate submissions → Recruitment records: stores submissions
- Candidate submissions → Resume scoring: scores resumes
src/worker/routes/candidates.ts - Candidate submissions → Email dispatch: sends notifications
src/worker/routes/candidates.ts - Candidate submissions → Vector search: searches vectors
- Resume scoring → Workers AI: requests fit score
- Application pipeline → Auth and rate limits: checks access
src/worker/routes/applications.ts - Application pipeline → Recruitment records: reads applications
src/worker/routes/applications.ts - Application pipeline → Resume scoring: rescores candidate
src/worker/routes/applications.ts - Application pipeline → Email dispatch: sends status update
src/worker/routes/applications.ts - Application pipeline → Email templates: renders status email
src/worker/routes/applications.ts - Candidate profiles → Recruitment records: reads and writes profiles
- Subscriptions and payments → Recruitment records: records payments
- Subscriptions and payments → Razorpay: creates and verifies orders
- Subscriptions and payments → Email dispatch: sends receipts
src/worker/routes/payments.ts - Help endpoint → Workers AI: requests assistance
- Help endpoint → Rate-limit and OTP state: limits requests
src/worker/routes/help.ts - Email dispatch → Brevo or Resend: dispatches messages
src/worker/lib/email.ts