Overview
CareerCraft-AI is an enterprise-grade AI career accelerator and document intelligence platform, built on a decoupled MERN architecture with a custom asymmetric RAG search engine, dynamic mock interview simulations, and gamified retention pipelines.
Core Features
- Asymmetric RAG Pipeline: A recursive character splitter chunks documents at a 500-character window with 100-character overlap. Jina AI v3 uses two distinct embedding modes —
retrieval.passagefor indexed chunks andretrieval.queryfor user questions — so short queries align correctly with long document answers. MongoDB Atlas HNSW vector search runs cosine-similarity nearest-neighbor queries, pre-filtered bydocumentIdso users never retrieve chunks from other documents. - Lazy Document Cache: Multer streams PDFs directly to Cloudinary on upload with zero local disk writes.
pdf-parseruns once on first open and the raw text is cached to MongoDB — every subsequent summary, quiz, or chat request hits the cached field directly, with zero further network calls to Cloudinary. - Structured JSON Generation: Flashcards and MCQ quizzes use OpenAI's
response_format: { type: "json_object" }constrained decoding, masking out any token that would break JSON syntax — guaranteeing clean parses with no markdown fencing. - AI Mock Interviewer: Interview settings (role, difficulty, company, skills) are injected into a detailed system prompt; full conversation history is reloaded from MongoDB and replayed to OpenAI each turn so the stateless API maintains contextual memory across the interview.
- Gamification & Streaks: XP for logins, uploads, quizzes, and interviews, with a consecutive-day streak tracker, milestone bonuses, and daily XP caps to prevent abuse.
- Subscription Tiering: Free/Pro/Enterprise tiers enforced via middleware that checks monthly usage counters (
interviewsThisMonth,quizzesThisMonth) before every AI route, returning HTTP 403 once a limit is exceeded.
Tech Highlights
- Frontend: React 19 on Vite with the Rust-based Rolldown bundler for near-instant HMR, Tailwind CSS v4's CSS-first engine, and
react-markdown+remark-gfmto render AI responses as styled tables and syntax-highlighted code. - Backend: Express 5's native async error handling (no manual try/catch wrappers needed), JWT dual-cookie auth with OTP email verification via Nodemailer, and Razorpay-backed subscription billing with signature-verified webhooks.