How srikjonn/littlelearner works
Little Learners is a child-focused learning app with account access, learning activities and progress, plus an administrative content and usage area. Learners enter through the tab home, choose a learning area, and can review progress; the home screen explicitly retrieves progress. Authentication is mediated by a shared context backed by Supabase, while admin screens manage content and fetch dashboard statistics. The README names no additional capabilities; learning-screen internals and several route behaviors were not sampled, so their connections are omitted.
Main entry points: index.tsx Learner home · AuthContext.tsx Auth context · supabase.ts Supabase client · _layout.tsx Root layout
Components 22
App navigation
- Root layout
app/_layout.tsx - Learning tabs
app/(tabs)/_layout.tsx
Accounts and access
- Authentication routes
app/(auth)/_layout.tsx - Sign in
app/(auth)/login.tsx - Registration
app/(auth)/register.tsx - OAuth callback
app/(auth)/callback.tsx - Auth context
contexts/AuthContext.tsx - Route protection
components/ProtectedRoute.tsx
Learning experience
- Learner home
app/(tabs)/index.tsx - Letter activities
app/(tabs)/letters.tsx - Word activities
app/(tabs)/words.tsx - Story activities
app/(tabs)/stories.tsx - Poem activities
app/(tabs)/poems.tsx - Learning progress
app/(tabs)/progress.tsx - Learner profile
app/(tabs)/profile.tsx
Administration
- Admin routes
app/(admin)/_layout.tsx - Admin dashboard
app/(admin)/dashboard.tsx - Content management
app/(admin)/content.tsx
Backend services
- Supabase client
lib/supabase.ts - Supabase backend
- Data model
types/database.ts
Other components
- Learner
Connections 23
- Learner → Root layout: opens app
- Root layout → Auth context: provides auth
app/_layout.tsx - Root layout → Authentication routes: routes to
app/_layout.tsx - Root layout → Learning tabs: routes to
app/_layout.tsx - Root layout → Admin routes: routes to
app/_layout.tsx - Sign in → Auth context: requests sign-in
app/(auth)/login.tsx - Registration → Auth context: requests sign-up
app/(auth)/register.tsx - Auth context → Supabase client: uses auth
contexts/AuthContext.tsx - Supabase client → Supabase backend: auth and data calls
lib/supabase.ts - OAuth callback → Supabase client: uses client
app/(auth)/callback.tsx - Route protection → Auth context: checks session
components/ProtectedRoute.tsx - Learning tabs → Auth context: reads session
app/(tabs)/_layout.tsx - Learner home → Supabase client: loads progress
app/(tabs)/index.tsx - Learner home → Letter activities: offers activity
- Learner home → Word activities: offers activity
- Learner home → Story activities: offers activity
- Learner home → Poem activities: offers activity
- Learner home → Learner profile: opens profile
app/(tabs)/index.tsx - Learner home → Admin dashboard: opens admin
app/(tabs)/index.tsx - Admin dashboard → Supabase client: fetches statistics
app/(admin)/dashboard.tsx - Admin dashboard → Auth context: signs out
app/(admin)/dashboard.tsx - Content management → Supabase backend: manages content
app/(admin)/content.tsx - Supabase client → Data model: types data
lib/supabase.ts