Introduction
SmartHire AI is an AI-powered recruitment platform that ingests resumes, extracts structured candidate data, and ranks candidates against your job descriptions with explainable match scores.
This documentation covers how the application is structured and how each feature works, from posting a job to reviewing a ranked shortlist.
Getting started
Running the project locally takes two commands:
npm install
npm run devThen open localhost:3000. The app is a single Next.js project — frontend pages, server actions, and database access all run from the same process.
Environment variables live in .env.local (database, authentication, AI, and file storage keys). Database commands are wrapped so they pick up that file:
npm run db:studio # browse the database
npm run db:migrate # apply schema changesAuthentication
Auth is handled by Clerk. Sign-up requires email verification, and every dashboard route is protected by middleware — unauthenticated visitors are redirected to the sign-in page with a return URL.
On first visit to the dashboard, your Clerk account is synced into the application database, so all your jobs and candidates are scoped privately to you.
Jobs
A job represents a role you are hiring for. Create one from Jobs → New job with:
- Title and company
- A full job description
- Required skills (used for matching)
- Preferred skills and a minimum experience level
Skills are entered as comma-separated values and stored as a list. Each job is private to your account.
Resume upload
Upload resumes from the Upload page by dragging files in or browsing. Supported formats:
- PDF — parsed with a PDF text extractor
- DOCX — parsed with Mammoth
Files up to 4 MB are accepted. Each upload streams the file to blob storage, extracts the plain text, and creates a candidate record with a processing status. Multiple files upload in parallel, each with its own status.
Candidate profiles
Each candidate has a profile page showing the original file, the extracted plain text, and (once skill extraction runs) structured fields like name, contact info, current title, years of experience, and a list of skills.
Scoring & ranking
Candidates are scored against a job using a weighted composite of three signals:
overallScore =
0.40 × semanticSimilarity +
0.40 × skillMatch +
0.20 × experienceMatch- Semantic similarity — cosine similarity between resume and job-description embeddings
- Skill match — percentage of required skills found
- Experience match — years of experience vs. the role's requirement
Tech stack
- Framework: Next.js 15 (App Router) + TypeScript
- UI: Tailwind CSS v4, shadcn/ui, Framer Motion
- Auth: Clerk
- Database: PostgreSQL (Neon) via Prisma
- AI: Google Gemini for extraction, Pinecone for embeddings
- Storage: Vercel Blob for resume files
FAQ
Is my data private?
Yes. Every query is scoped to your authenticated user — you only see your own jobs and candidates.
What file types are supported?
PDF and DOCX, up to 4 MB each.
Why is a candidate stuck on “processing”?
Text extraction completes on upload; the AI skill-extraction step that flips status to “ready” is part of an upcoming release.