How bambafall19/nav-stats works
NavéStats is a football results, statistics and prediction platform, with public browsing and user features alongside an admin console. Its central user journey is to explore matches and teams, submit predictions, then follow rankings and community activity. The tree also shows cadet competitions, profiles and social features, match analysis, and notification workflows. Sampled API handlers confirm Supabase access, AI-provider calls, and web-push dispatch; other public and admin capabilities are represented by their source paths, but their internal wiring was not sampled.
Main entry points: agent/route.ts Admin AI agent · server.ts Server data client · match-analysis/route.ts Match analysis API · notifications Push and reminders
Components 23
Football data
- Public pages
src/app/(public) - Match details
src/app/(public)/matchs - Team pages
src/app/(public)/equipes/[id]/page.tsx - Cadet competitions
src/app/(public)/cadets/page.tsx - Rankings and stats
src/app/(public)/classements
Predictions and community
- Prediction pages
src/app/(public)/pronostics - Community
src/app/(public)/communaute/page.tsx
User features
- Profiles
src/app/(public)/profil/[id]/page.tsx - Authentication
src/app/auth - Notification screens
src/app/notifications/page.tsx
Admin and AI
- Admin console
src/app/admin - Admin AI agent
src/app/api/ai/agent/route.ts - Match analysis API
src/app/api/ai/match-analysis/route.ts - AI context builders
src/lib/ai/context.ts - xAI client
src/lib/ai/xai.ts
Data and notifications
- Server data client
src/lib/supabase/server.ts - Push and reminders
src/app/api/notifications - Web-push service
src/lib/push/webpush.ts - Push subscription UI
src/components/shared/PushNotificationManager.tsx
Other components
- Visitor
- Signed-in member
- Supabase
- Browser push service
Connections 18
- Visitor → Public pages: browses
- Signed-in member → Authentication: signs in
- Signed-in member → Prediction pages: submits predictions
- Signed-in member → Community: participates
- Signed-in member → Profiles: views profile
- Signed-in member → Notification screens: checks alerts
- Signed-in member → Push subscription UI: manages push
- Admin console → Admin AI agent: requests assistance
- Admin AI agent → Server data client: authenticates
- Admin AI agent → AI context builders: builds context
- Admin AI agent → xAI client: requests response
- Match analysis API → Server data client: reads match data
- Match analysis API → xAI client: requests analysis
- Push and reminders → Server data client: reads and writes
- Push and reminders → Web-push service: dispatches push
- Push subscription UI → Supabase: stores subscription
- Web-push service → Browser push service: sends web push
- Server data client → Supabase: queries data