π― AI-powered personalized roadmaps, university guidance, skill assessments, and industry insights for students worldwide
PathGuide AI is a comprehensive platform that transforms how students and professionals navigate their educational and career journeys. Using advanced AI and real-time web search, PathGuide delivers personalized learning paths, university recommendations, diagnostic assessments, and market intelligenceβall in one unified experience.
- AI-generated roadmaps for any career or skill (ML Engineer, Chartered Accountant, Pilot, Chef, etc.)
- Adaptive content based on your background and experience level (beginner/intermediate/advanced)
- Interactive topic exploration with curated resources (YouTube, articles, GitHub, books)
- Progress tracking with visual indicators (Done, In Progress, Skip)
- 5-8 stages with detailed topic breakdowns and realistic timelines
- AI-powered university matching based on your goals and profile
- Detailed profiles: programs, admission requirements, faculty, research highlights
- Direct links to official program pages and applications
- Recent achievements, research breakthroughs, and notable faculty
- Global coverage with verified information from official sources
- Personalized diagnostic tests (15-20 questions) based on your roadmap
- Adaptive difficulty matched to your declared skill level
- Comprehensive feedback: strengths, weaknesses, category breakdowns
- Specific learning resources for improvement areas
- Actionable next steps for skill development
- Current industry trends, breaking news, and developments
- Startup activity, funding rounds, and acquisitions
- Research breakthroughs and technological advances
- Policy changes and regulatory updates
- Market trends and emerging opportunities
- Categorized insights with source links and dates
- Node.js 18+ or Bun
- npm, yarn, or bun
- OpenAI API key (Get one here)
-
Clone the repository
git clone <repository-url> cd pathguide-ai
-
Install dependencies
npm install # or yarn install # or bun install
-
Create environment file
cp .env.example .env
-
Add your OpenAI API key
Open
.envand add your key:OPENAI_API_KEY=sk-your-actual-api-key-hereβ οΈ IMPORTANT: Never commit.envto version control! -
Run development server
npm run dev # or yarn dev # or bun dev
-
Open your browser
Navigate to http://localhost:3000
# Build for production
npm run build
# Start production server
npm startCloud Run URL: [Your deployment URL will appear here after deployment]
See DEPLOYMENT.md for detailed deployment instructions to Google Cloud Run or Vercel.
Frontend
- Next.js 15 with App Router
- React 19
- TypeScript 5 (strict mode)
- Tailwind CSS 4
- Lucide React (icons)
Backend
- Next.js API Routes (serverless functions)
- OpenAI GPT-4o (language model)
- OpenAI GPT-4o-search-preview (web search)
Deployment
- Google Cloud Run (recommended)
- Vercel (compatible)
- Docker containerization
pathguide-ai/
βββ src/
β βββ app/
β β βββ api/ # API endpoints
β β β βββ roadmap-full/ # Roadmap generation
β β β βββ generate-roadmap/ # Roadmap intake questions
β β β βββ generate-quiz/ # Quiz creation
β β β βββ evaluate-quiz/ # Quiz scoring
β β β βββ admission-guide/ # University details
β β β βββ topic-details/ # Resource discovery
β β β βββ industry-insights/ # Market intelligence
β β β βββ search-universities/# University search
β β β βββ chat-counsel/ # General guidance
β β βββ globals.css # Global styles
β β βββ layout.tsx # Root layout
β β βββ page.tsx # Main application
β βββ components/
β β βββ ui/ # Reusable UI components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility functions
βββ public/ # Static assets
βββ .env.example # Environment template
βββ .gitignore # Git ignore rules
βββ package.json # Dependencies
βββ tsconfig.json # TypeScript config
βββ tailwind.config.ts # Tailwind config
βββ next.config.ts # Next.js config
βββ README.md # This file
βββ DEPLOYMENT.md # Deployment guide
βββ PROJECT_DESCRIPTION.md # Detailed project overview
βββ AI_TOOLS_DISCLOSURE.md # AI transparency document
- User Input: "I want to become a Machine Learning Engineer"
- AI Questions: Asks 2-3 questions about background, skills, level
- Roadmap Generation: Creates 5-8 stage learning path
- Topic Exploration: Click any topic for resources (videos, articles, repos)
- Progress Tracking: Mark topics as Done, In Progress, or Skip
API Flow:
POST /api/generate-roadmap β Conversational intake
POST /api/roadmap-full β Generate complete roadmap
POST /api/topic-details β Get resources for specific topic
- Search Query: "Best universities for Aerospace Engineering in Europe"
- AI Matching: Web search for real universities
- Results Display: 5-10 universities with detailed profiles
- Deep Dive: Click "Learn more" for admission guidance
- Refinement: Ask follow-up questions to narrow search
API Flow:
POST /api/chat-counsel (mode: colleges) β University search
POST /api/admission-guide β Detailed university profile
- Prerequisite: Complete a roadmap first
- Test Generation: Click "Start Diagnostic Test"
- Personalized Questions: 15-20 questions based on your roadmap and skills
- Adaptive Difficulty:
- Beginner: 70% easy, 25% medium, 5% hard
- Intermediate: 30% easy, 50% medium, 20% hard
- Advanced: 10% easy, 30% medium, 60% hard
- Detailed Feedback: Strengths, weaknesses, resources for improvement
API Flow:
POST /api/generate-quiz β Create personalized quiz
POST /api/evaluate-quiz β Score and analyze results
- Query Input: "Latest trends in Artificial Intelligence"
- Web Search: Real-time search across legitimate sources
- Categorized Results:
- Breaking News (last 15-30 days)
- Startup Activity
- Funding & Investments
- Research Breakthroughs
- Policy & Regulations
- Market Trends
- Notable Achievements
- Source Links: Every insight includes verification URL
- Filtering: By category or region
API Flow:
POST /api/industry-insights β Real-time market intelligence
| Endpoint | Method | Purpose | AI Model |
|---|---|---|---|
/api/generate-roadmap |
POST | Conversational intake for roadmap | GPT-4o |
/api/roadmap-full |
POST | Generate complete roadmap | GPT-4o-search-preview |
/api/generate-quiz |
POST | Create personalized quiz | GPT-4o |
/api/evaluate-quiz |
POST | Score and analyze quiz | GPT-4o |
/api/admission-guide |
POST | University details and guidance | GPT-4o-search-preview |
/api/topic-details |
POST | Resource discovery for topics | GPT-4o-search-preview |
/api/industry-insights |
POST | Real-time market intelligence | GPT-4o-search-preview |
/api/search-universities |
POST | University search | GPT-4o-search-preview |
/api/chat-counsel |
POST | General guidance and college search | GPT-4o / GPT-4o-search-preview |
// Generate a roadmap
const response = await fetch('/api/roadmap-full', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
originalQuestion: "I want to become a Data Scientist",
conversationHistory: [
{ role: "user", content: "I want to become a Data Scientist" },
{ role: "assistant", content: "What's your background?" },
{ role: "user", content: "I'm a computer science student" }
]
})
});
const roadmap = await response.json();- Profile Analysis: Reviews your roadmap, mentioned skills, declared level
- Question Selection: Generates 15-20 questions covering relevant topics
- Difficulty Distribution:
Beginner: [======70%======][==25%==][5%] Intermediate: [==30%==][======50%======][==20%==] Advanced: [10%][==30%==][======60%======] - Topic Coverage: Ensures questions span multiple categories from your roadmap
- Explanation Generation: Each question includes detailed explanation
- Answer Comparison: Matches user answers to correct answers
- Score Calculation: Computes percentage and category breakdowns
- Strength Identification: Topics with 80%+ correct
- Weakness Detection: Topics with <60% correct
- Resource Recommendation: Specific materials for weak areas
- Next Steps: Actionable items for improvement
- NEVER commit
.envfile to version control .envis in.gitignoreby default- Only
.env.example(with placeholders) should be committed - Use environment variables in deployment platforms (Cloud Run, Vercel)
// β
CORRECT: Use environment variables
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
// β WRONG: Never hardcode API keys
const openai = new OpenAI({
apiKey: 'sk-...', // DON'T DO THIS!
});- No user data stored permanently on servers
- Results cached locally in browser (1-hour expiration)
- No user accounts or authentication required
- Minimal data sent to AI services (only necessary information)
# Start development server with hot reload
npm run dev
# Build for production
npm run build
# Run production build locally
npm start
# Lint code
npm run lintCreate .env file (never commit this):
# OpenAI API Configuration
OPENAI_API_KEY=sk-your-actual-api-key-hereGet your API key from: https://platform.openai.com/api-keys
- TypeScript: Strict mode enabled for type safety
- ESLint: Next.js recommended configuration
- Tailwind CSS: Utility-first styling with consistent design
- Component Structure: Modular, reusable components
- Start dev server:
npm run dev - Test each mode:
- Roadmap: Create a learning path
- Colleges: Search for universities
- Test Me: Generate and complete a quiz
- Insights: Check industry trends
- Verify API responses in browser console
- Check for errors in terminal
- PROJECT_DESCRIPTION.md: Comprehensive project overview, features, and impact
- AI_TOOLS_DISCLOSURE.md: Complete transparency about AI usage and data handling
- DEPLOYMENT.md: Step-by-step deployment guide for Google Cloud Run and Vercel
We welcome contributions! Here's how to get started:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Follow existing code style
- Add TypeScript types for new code
- Test thoroughly
- Commit your changes
git commit -m 'Add amazing feature' - Push to your branch
git push origin feature/amazing-feature
- Open a Pull Request
- TypeScript: All new code must be typed
- Code Style: Follow existing patterns and conventions
- Documentation: Update docs for API or feature changes
- Testing: Test new features thoroughly before submitting
- Security: Never commit secrets or API keys
- New Features: Additional modes or capabilities
- UI/UX Improvements: Better design and user experience
- Performance: Optimization and caching strategies
- Documentation: Tutorials, examples, translations
- Bug Fixes: Report and fix issues
- Testing: Add test coverage
"OpenAI API key not found" error
Solution:
1. Verify .env file exists in project root
2. Check OPENAI_API_KEY is set correctly
3. Ensure no extra spaces or quotes
4. Restart development server after adding key
Build failures
Solution:
1. Run: npm run build
2. Check for TypeScript errors in output
3. Verify all imports are correct
4. Ensure dependencies are installed
Port 3000 already in use
Solution:
# Kill existing process
lsof -ti:3000 | xargs kill -9
# Or use different port
npm run dev -- -p 3001
API requests failing
Solution:
1. Check browser console for errors
2. Verify API key is valid
3. Check OpenAI API status
4. Review server logs in terminal
- Server-Side Rendering: Fast initial page loads
- Code Splitting: Optimized bundle sizes
- Lazy Loading: On-demand resource loading
- Caching: Intelligent caching strategies
- Turbopack: Fast development builds
- Build analytics for bundle size tracking
- API response time monitoring
- Error tracking and logging
- User interaction analytics (privacy-respecting)
See DEPLOYMENT.md for complete instructions.
Quick deploy:
gcloud run deploy pathguide-ai \
--source . \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars OPENAI_API_KEY=your_key_here- Connect your repository to Vercel
- Add environment variable:
OPENAI_API_KEY - Deploy
# Build image
docker build -t pathguide-ai .
# Run container
docker run -p 3000:3000 -e OPENAI_API_KEY=your_key pathguide-aiThis project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI: For providing advanced AI capabilities (GPT-4o models)
- Next.js Team: For the excellent React framework
- Tailwind CSS: For the utility-first CSS framework
- Lucide: For the beautiful icon library
- Vercel: For hosting and deployment platform
- Google Cloud: For Cloud Run infrastructure
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: See docs folder for detailed guides
- Email: support@pathguide.ai
PathGuide AI β Empowering educational and career success through intelligent guidance.
Built with β€οΈ for students worldwide using Next.js, TypeScript, and OpenAI