Transform your learning goals into interactive, personalized roadmaps with AI-powered insights and community-driven content.
MindRoute is an intelligent learning roadmap generator that transforms your educational goals into interactive, personalized learning paths. Built with modern web technologies and powered by AI, it provides:
- AI-Powered Generation: Create custom learning roadmaps using GPT-4
- Interactive Visualization: Navigate through your learning journey with React Flow
- Community Sharing: Discover and share roadmaps with the community
- Progress Tracking: Monitor your learning progress with visual indicators
- Multi-Format Content: Courses, projects, and FAQ sections for comprehensive learning
- Responsive Design: Seamless experience across desktop, tablet, and mobile
- Generate roadmaps for any learning topic
- Personalize based on skill level and learning style
- Export roadmaps in multiple formats
- Real-time collaboration and sharing
- Integration with external learning resources
- Smart Input Form: Collect learning goals, duration, skill level, and preferences
- GPT-4 Integration: Generate structured, comprehensive learning paths
- Background Processing: Inngest-powered job queue for seamless user experience
- Customizable Prompts: Tailor AI responses to specific learning domains
- Dynamic Flowcharts: Navigate learning paths with React Flow
- Custom Node System: Color-coded topics with hierarchical organization
- Multiple View Modes: Switch between flowchart and tree hierarchy
- Zoom & Pan Controls: Explore large roadmaps with ease
- Roadmap Tab: Interactive flowchart with clickable nodes
- Courses Tab: Curated course recommendations
- Projects Tab: Hands-on projects and templates
- FAQ Tab: Common questions and expert answers
- Public Roadmaps: Browse featured community roadmaps
- Private Workspaces: Create and manage personal roadmaps
- Sharing System: Generate shareable links for collaboration
- User Authentication: Secure access with Clerk integration
MindRoute is built on a modern, scalable architecture that combines the best of React ecosystem with powerful AI capabilities:
- Next.js 15.1.8: App Router, Server Components, API Routes
- React 19.1.0: Functional components with modern hooks
- TypeScript 5.x: Full type safety and developer experience
- Tailwind CSS 3.4.1: Utility-first styling with custom design system
- React Flow 11.11.4: Interactive flowchart visualization
- Framer Motion 12.15.0: Smooth animations and transitions
- Lucide React: Modern icon library
- Supabase 2.49.8: PostgreSQL database with real-time subscriptions
- Clerk 6.20.0: Authentication and user management
- React Context: Global state management
- Inngest 3.38.0: Background job processing
- OpenAI GPT-4: Via GitHub Models API for roadmap generation
- Custom Prompts: Engineered for educational content generation
- Background Processing: Async AI generation with progress tracking
tattva/
βββ π± app/ # Next.js App Router
β βββ π pages/mindroute/ # Main MindRoute interface
β β βββ page.tsx # Landing page with form
β β βββ _components/ # Page-specific components
β β βββ form_comp.tsx # Input form
β β βββ header_2.tsx # Page header
β β βββ RoadmapGrip.tsx # Roadmap grid display
β β
β βββ πΊοΈ (routes)/roadmap/[libid]/ # Dynamic roadmap pages
β β βββ page.tsx # Roadmap visualization
β β βββ _components/ # Roadmap components
β β βββ CustomNode.tsx # Interactive nodes
β β βββ HierarchyModal.tsx # Tree view
β β βββ LoadingStatus.tsx # Progress indicators
β β βββ tabs/ # Content tabs
β β βββ roadmap-tab.tsx # Flowchart view
β β βββ courses-tab.tsx # Course recommendations
β β βββ projects-tab.tsx # Project suggestions
β β βββ faq_questions-tab.tsx # FAQ section
β β
β βββ π api/ # Backend API routes
β β βββ roadmap/route.ts # Roadmap generation
β β βββ roadmap-extra-data/ # Additional content
β β βββ generate-hierarchy-json/ # Tree structure API
β β
β βββ π§© components/ # Shared components
β β βββ types/roadmap.ts # TypeScript interfaces
β β βββ utils/ # Utility functions
β β βββ tree-to-flow.ts # Converts tree to flowchart
β β βββ helpers.ts # Common utilities
β β βββ prompt.ts # AI prompt templates
β β
β βββ π§ services/ # External integrations
β βββ supabase.tsx # Database client
β βββ constants.ts # Configuration
β
βββ β‘ inngest/ # Background jobs
β βββ client.ts # Inngest configuration
β βββ functions.ts # Job definitions
β
βββ π¨ public/ # Static assets
βββ π docs/ # Documentation
βββ mindroute-user-flow.md # User flow diagrams
βββ mindroute-ui-design-guide.md # UI component guide
For detailed user flow documentation, see: MindRoute User Flow Guide β β β β β β β β β ππ»
graph TD
A[User visits MindRoute] --> B[Fill learning form]
B --> C[AI generates roadmap]
C --> D[Interactive visualization]
D --> E[Explore content tabs]
E --> F[Share & collaborate]
-
Input Collection
- Learning goal (e.g., "Frontend Developer")
- Duration preference (e.g., "12 weeks")
- Weekly time commitment
- Current skill level
- Learning style preference
-
AI Processing
- Background job triggered via Inngest
- GPT-4 generates structured roadmap
- Content saved to Supabase database
-
Visualization
- Tree-to-flow algorithm converts data
- Interactive React Flow component renders
- Color-coded hierarchical layout
-
Content Exploration
- Navigate flowchart nodes
- Switch between content tabs
- Access courses, projects, and FAQ
-
Collaboration
- Share roadmap with unique URLs
- Public/private visibility options
- Community discovery features
For comprehensive UI documentation, see: MindRoute UI Design Guide β β β β β β β β β ππ»
- Multi-field input collection
- Real-time validation
- Dropdown menus with icons
- Progress indication
- Custom React Flow nodes
- Color-coded hierarchy
- Hover and click interactions
- Connection handles
- Four content sections
- Smooth transitions
- Mobile-responsive
- Progress indicators
- Progressive loading bars
- Status message updates
- Skeleton animations
- Error handling
- Primary:
#178d73
(Teal green) - Background:
#131a19
(Dark gray-green) - Borders:
#2d3d3b
(Medium gray-green) - Text: White with gray placeholders
- Headers: 2.5rem, bold, tight letter-spacing
- Body: 1rem, regular, 1.6 line-height
- Captions: 0.875rem, medium, 0.8 opacity
Generate a new roadmap with AI assistance.
Request Body:
{
"libId": "uuid-string",
"formData": {
"goal": "Frontend Developer",
"duration": "12 Weeks",
"weeklyHours": "10 Hours/week",
"skillLevel": "beginner",
"learningStyle": "mixed"
}
}
Response:
{
"inngestRunId": "job-id-string",
"status": "processing"
}
Fetch additional content for existing roadmaps.
Convert AI response to structured hierarchy.
CREATE TABLE Library (
id SERIAL PRIMARY KEY,
libId UUID UNIQUE NOT NULL,
userEmail TEXT,
searchInput TEXT,
type TEXT DEFAULT 'roadmap',
created_at TIMESTAMP DEFAULT NOW()
);
CREATE TABLE Roadmap (
id SERIAL PRIMARY KEY,
libId UUID REFERENCES Library(libId),
FormData JSONB,
AiResp JSONB,
Visiblity TEXT DEFAULT 'private',
created_at TIMESTAMP DEFAULT NOW()
);
CREATE TABLE NodeData (
id SERIAL PRIMARY KEY,
libId UUID REFERENCES Roadmap(libId),
HierarchySelectedText TEXT,
generatedResp JSONB,
created_at TIMESTAMP DEFAULT NOW()
);
The core visualization algorithm converts hierarchical AI responses into interactive flowcharts:
export function generateSpineFlow(topic: string, tree: TopicNode[]) {
// 1. Create central spine with main topics
// 2. Branch child topics horizontally (alternating sides)
// 3. Calculate optimal positioning
// 4. Generate React Flow nodes and edges
return { nodes, edges };
}
- Central Spine: Vertical sequence of main topics
- Horizontal Branches: Child topics extend left/right
- Dynamic Spacing: Adjusts based on content hierarchy
- Connection Handles: Proper edge routing between nodes
For complete implementation details, see: Tree-to-Flow Documentation
MindRoute uses Inngest for reliable background processing:
- Processes form data with AI
- Generates structured learning path
- Saves results to database
- Handles errors and retries
- Fetches course recommendations
- Generates project suggestions
- Populates FAQ content
- Updates existing roadmaps
- Real-time status updates
- Progress indicators in UI
- Error logging and alerts
- Performance metrics