How songalobung/ahei works
AHEI is an Africa-first university discovery and comparison platform. Its user-facing flow presents university and regional information, rankings, and profiles; the broader Next.js app tree adds comparison, career guidance, articles, calculators, and administrative/API routes. The repository also contains two near-identical Vite UI trees, represented separately below. Source excerpts mainly establish the Vite app’s state-driven screen flow and static data; Next.js feature connections are not inferred where source was unavailable.
Main entry points: src/App.tsx App orchestrator · data/universities.ts University records · data/universities.ts University records · src/App.tsx App orchestrator
Components 26
Next.js product
- Home
ahei-app/src/app/page.tsx - Rankings
ahei-app/src/app/rankings/page.tsx - University directory
ahei-app/src/app/universities/page.tsx - University profile
ahei-app/src/app/universities/[id]/UniversityDetailClient.tsx - Comparison
ahei-app/src/app/compare/page.tsx - Explore
ahei-app/src/app/explore/page.tsx - Careers
ahei-app/src/app/careers/page.tsx - Articles
ahei-app/src/app/articles/ArticlesHubClient.tsx - Administration
ahei-app/src/app/admin/page.tsx - Product API routes
ahei-app/src/app/api - Ranking engine
ahei-app/src/domain/ranking-engine.ts
Root Vite UI
- App orchestrator
src/App.tsx - Home screen
src/components/HomeScreen.tsx - Rankings screen
src/components/RankingsScreen.tsx - University profile
src/components/UniversityProfileScreen.tsx - Compare screen
src/components/CompareScreen.tsx - University records
src/data/universities.ts - Regions and insights
src/data/macroRegions.ts
Nested Vite UI
- App orchestrator
ahei-main/ahei-main/src/App.tsx - Home screen
ahei-main/ahei-main/src/components/HomeScreen.tsx - Rankings screen
ahei-main/ahei-main/src/components/RankingsScreen.tsx - University profile
ahei-main/ahei-main/src/components/UniversityProfileScreen.tsx - Compare screen
ahei-main/ahei-main/src/components/CompareScreen.tsx - University records
ahei-main/ahei-main/src/data/universities.ts - Regions and insights
ahei-main/ahei-main/src/data/macroRegions.ts
Other components
- Visitor
Connections 19
- Visitor → App orchestrator: uses
- App orchestrator → Home screen: renders
src/App.tsx - App orchestrator → Rankings screen: renders
src/App.tsx - App orchestrator → University profile: renders
src/App.tsx - App orchestrator → University records: provides data
src/App.tsx - Home screen → University records: reads
src/components/HomeScreen.tsx - Home screen → Regions and insights: reads
src/components/HomeScreen.tsx - Rankings screen → University records: reads
src/components/RankingsScreen.tsx - University profile → University records: reads
src/components/UniversityProfileScreen.tsx - Compare screen → University records: reads
src/components/CompareScreen.tsx - App orchestrator → Home screen: renders
ahei-main/ahei-main/src/App.tsx - App orchestrator → Rankings screen: renders
ahei-main/ahei-main/src/App.tsx - App orchestrator → University profile: renders
ahei-main/ahei-main/src/App.tsx - App orchestrator → University records: provides data
ahei-main/ahei-main/src/App.tsx - Home screen → University records: reads
ahei-main/ahei-main/src/components/HomeScreen.tsx - Home screen → Regions and insights: reads
ahei-main/ahei-main/src/components/HomeScreen.tsx - Rankings screen → University records: reads
ahei-main/ahei-main/src/components/RankingsScreen.tsx - University profile → University records: reads
ahei-main/ahei-main/src/components/UniversityProfileScreen.tsx - Compare screen → University records: reads
ahei-main/ahei-main/src/components/CompareScreen.tsx