CareerBoost is a Next.js-based platform for practicing interviews with AI-powered adaptive questioning. https://career-boost-l8l5dc6b9-nightfury2415s-projects.vercel.app/
npm installAll required dependencies are already listed in package.json:
- Next.js 16.0+
- React 18.3+
- shadcn/ui components
- TailwindCSS 4.1+
- Lucide React icons
Your .env.local file should contain your Hugging Face API key:
HUGGINGFACE_API_KEY=Important: .env.local is already in .gitignore - never commit this file!
npm run devOpen http://localhost:3000/mock-interview in your browser.
Endpoint: POST /api/interview/chat
Request Body:
{
"position": "Senior Software Engineer",
"experience": "5-7",
"interviewType": "technical",
"company": "Meta",
"jobDescription": "...",
"messages": [
{ "role": "user", "content": "..." },
{ "role": "assistant", "content": "..." }
],
"isFirstMessage": false
}Response:
{
"question": "Can you describe your experience with...",
"success": true,
"usingFallback": false
}- Real-time chat interface
- Message history with timestamps
- Timer with visual progress indicator
- Transcript download functionality
- AI response generation with fallback support
- Main page component
- Manages interview state (setup vs. active interview)
- Routes between setup and chat components
Features:
- Context-aware responses
- Conversation history tracking
- Interview-type specific questioning
- Adaptive difficulty based on experience level
If the Hugging Face API is unavailable, the system uses curated fallback questions based on interview type:
- Technical: Questions about projects, technical challenges, tools
- Behavioral: Questions about teamwork, failures, stress management
- System Design: Questions about scalability, architecture, databases
- Coding: Algorithm and data structure problems
- Mixed: Combination of all types
β
AI-Powered Questions - Uses Mistral-7B via Hugging Face API
β
Context-Aware - Remembers conversation history
β
Adaptive Difficulty - Adjusts based on experience level
β
Time Management - Configurable timer with warnings
β
Transcript Download - Save interviews for review
β
Fallback Handling - Works even if API has issues
β
Multiple Interview Types - Technical, Behavioral, System Design, Coding
β
Responsive Design - Works on desktop and tablet
curl -X POST http://localhost:3000/api/interview/chat \
-H "Content-Type: application/json" \
-d '{
"position": "Full Stack Engineer",
"experience": "5-7",
"interviewType": "technical",
"company": "Meta",
"jobDescription": "We are looking for...",
"messages": [],
"isFirstMessage": true
}'Expected response:
{
"question": "Can you describe your experience with full-stack development?",
"success": true
}- Navigate to
http://localhost:3000/mock-interview - Fill in the setup form
- Start the interview and interact with the chat
- Download the transcript to verify functionality
Cause: API route not found or Hugging Face API key missing
Solution:
- Verify
app/api/interview/chat/route.tsexists - Check that
HUGGINGFACE_API_KEYis set in.env.local - Restart dev server:
npm run dev - Check server logs for detailed error messages
Cause: Missing component imports
Solution:
# Make sure these shadcn/ui components are installed:
npx shadcn-ui@latest add button
npx shadcn-ui@latest add input
npx shadcn-ui@latest add card
npx shadcn-ui@latest add select
npx shadcn-ui@latest add checkbox
npx shadcn-ui@latest add textarea
npx shadcn-ui@latest add alertCause: Hugging Face API is loading the model
Solution:
- First request takes 30-60 seconds as the model loads
- Subsequent requests are faster
- The fallback system provides instant responses if needed
Cause: Component state not updating properly
Solution:
- Check browser console for JavaScript errors
- Verify the API is returning responses correctly
- Clear browser cache and reload
- Check that all required UI components are installed
# Hugging Face API Key (Required)
# Get from: https://huggingface.co/settings/tokens
HUGGINGFACE_API_KEY=your_key_herenpm run build
npm start- Set environment variables in your hosting platform (Vercel, Railway, etc.)
- Never commit
.env.localto version control - Use secure secret management for API keys
vercel deployConfigure environment variables in Vercel dashboard:
HUGGINGFACE_API_KEY
MIT License
Copyright (c) 2026 Malavya Raval, Dev Modi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Last Updated: November 2025