How yahyanaim/ai-hub works
AIHubTools combines a curated resource catalog with career-development workflows. Users browse or search resources, request goal-based recommendations, and use the AI Career Advisor to create CV and learning-plan artifacts; account, mentoring, and portfolio workflows add persistent services, while administrators manage users and operations. The README documents the main service architecture and storage; sampled route excerpts show some concrete service calls. Other branches are represented from documented capabilities and the repository tree, without asserting unshown internal call sequences.
Main entry points: app/page.tsx Web experience · chat/page.tsx Career Advisor · route.ts Chat service · quota.ts AI quotas
Components 32
Resource discovery
- Web experience
app/page.tsx - Seed catalog
lib/seed/index.ts - Catalog indexes
lib/server/index-tools.ts - Catalog views
components/listing/ListingView.tsx - Catalog collections
lib/seed/courses.ts
Career workflows
- Goal finder
components/goal/GoalFinder.tsx - Goal matching
app/api/goal-match/route.ts - Goal matching logic
lib/goal-finder.ts - Career Advisor
app/chat/page.tsx - Chat service
app/api/chat/route.ts - CV assistance
app/api/chat/cv/route.ts - Learning calendars
app/api/roadmaps/generate/route.ts - Calendar tools
lib/roadmap/scheduler.ts - Portfolio publishing
app/api/portfolio/route.ts - Portfolio storage
lib/server/portfolio-storage.ts
Accounts and services
- Account workflows
app/api/auth/login/route.ts - Authentication
lib/server/auth.ts - User sessions
lib/server/user-session.ts - API routes
app/api
Mentoring and administration
- Mentoring programs
app/api/mentoring/applications/route.ts - Admin console
components/admin/AdminDashboardClient.tsx - Usage metrics
lib/server/admin-metrics.ts
Shared foundations
- Redis services
lib/server/redis.ts - AI quotas
lib/server/quota.ts - Visitor identity
lib/server/visitor.ts - Budget controls
lib/server/budget-config.ts - NVIDIA inference
lib/server/nvidia-models.ts - UI primitives
components/ui/FacetedGlyph.tsx - Metadata and SEO
lib/seo.ts - Site configuration
lib/site.ts - Structured data
lib/json-ld.ts
Other components
- Visitor
Connections 32
- Visitor → Web experience: browses
- Web experience → Catalog indexes: renders through
app/page.tsx - Catalog indexes → Seed catalog: reads
- Seed catalog → Catalog collections: includes
lib/seed/index.ts - Web experience → Catalog views: renders
app/page.tsx - Visitor → Goal finder: describes goal
- Goal finder → Goal matching: requests matches
- Goal matching → Goal matching logic: uses
app/api/goal-match/route.ts - Visitor → Career Advisor: starts conversation
- Career Advisor → Chat service: sends turns
- Chat service → User sessions: checks session
app/api/chat/route.ts - Chat service → NVIDIA inference: selects models
app/api/chat/route.ts - Career Advisor → CV assistance: requests CV help
- Career Advisor → Learning calendars: creates calendar
- Learning calendars → Calendar tools: schedules courses
app/api/roadmaps/generate/route.ts - Visitor → Portfolio publishing: publishes portfolio
- Portfolio publishing → Portfolio storage: stores artifact
app/api/portfolio/route.ts - Portfolio storage → Redis services: stores metadata
lib/server/portfolio-storage.ts - Visitor → Account workflows: creates account
- Account workflows → Authentication: authenticates
- Authentication → Redis services: checks revocation
lib/server/auth.ts - Visitor → Mentoring programs: applies to program
- Admin console → API routes: manages operations
- Admin console → Usage metrics: views metrics
- Usage metrics → Redis services: stores metrics
lib/server/admin-metrics.ts - Chat service → AI quotas: enforces limits
app/api/chat/route.ts - AI quotas → Budget controls: reads limits
lib/server/quota.ts - AI quotas → Visitor identity: keys visitor
lib/server/quota.ts - AI quotas → Redis services: coordinates limits
lib/server/quota.ts - Web experience → Metadata and SEO: sets metadata
- Web experience → Site configuration: uses canonical URL
app/page.tsx - Web experience → Structured data: embeds JSON-LD
app/page.tsx