How getachofiraol717-ai/speedy-project-starter works
This is a browser-based interactive science-learning application: visitors can explore its landing and pricing pages, then authenticate and access a dashboard, interactive 3D topic lessons, AI tutoring, video lessons, quizzes, progress, and account settings. Admin access is routed separately. The sampled source confirms the React route structure, Supabase-backed authentication and premium-role check, and locally stored usage limits. Individual lesson, quiz, and AI request wiring was not sampled, so those connections are not inferred.
Main entry points: ProtectedRoute.tsx Protected routes · App.tsx Application router · usePaywall.tsx Premium and usage limits · useAuth.tsx Authentication context
Components 22
App and entry
- Application router
src/App.tsx - Landing page
src/pages/Index.tsx - Pricing
src/pages/PricingPage.tsx
Learning experiences
- Learning dashboard
src/pages/Dashboard.tsx - 3D lesson catalog
src/pages/Learning3D.tsx - 3D topic lessons
src/pages - AI tutor
src/pages/AITutor.tsx - Video lessons
src/pages/VideoLessons.tsx - Quizzes
src/pages/Quizzes.tsx - Learning progress
src/pages/ProgressPage.tsx
Identity and access
- Sign-in and signup
src/pages/AuthPage.tsx - Account settings
src/pages/SettingsPage.tsx - Admin dashboard
src/pages/AdminDashboard.tsx - Protected routes
src/components/ProtectedRoute.tsx - Admin route
src/components/AdminRoute.tsx - Authentication context
src/hooks/useAuth.tsx - Premium and usage limits
src/hooks/usePaywall.tsx
Backend services
- Supabase client
src/integrations/supabase/client.ts - Supabase service
- AI tutor function
supabase/functions/ai-tutor/index.ts - Browser local storage
Other components
- Learner
Connections 21
- Learner → Application router: opens
- Application router → Landing page: routes
- Application router → Sign-in and signup: routes
- Application router → Pricing: routes
- Application router → Protected routes: guards
- Protected routes → Learning dashboard: routes
- Protected routes → 3D lesson catalog: routes
- Protected routes → 3D topic lessons: routes
- Protected routes → AI tutor: routes
- Protected routes → Video lessons: routes
- Protected routes → Quizzes: routes
- Protected routes → Learning progress: routes
- Protected routes → Account settings: routes
- Application router → Admin route: guards
- Admin route → Admin dashboard: routes
- Application router → Authentication context: provides
- Authentication context → Supabase client: auth calls
- Supabase client → Supabase service: connects
- Premium and usage limits → Authentication context: reads user
- Premium and usage limits → Supabase client: checks premium
- Premium and usage limits → Browser local storage: reads and writes