How optimusprimeg/enip works
This is a Next.js alumni-network product for students to discover IIT alumni, join through email verification and a referral-aware waitlist, chat with mentors, and request instant CV reviews. Staff and administrators manage conversations, profiles, students, and analytics. The graph emphasizes those user workflows and the supporting domain modules; some page-to-module links are based on the SOURCE INDEX, since those page implementations were not sampled.
Main entry points: chat/index.ts Chat rules and messages · growth/index.ts Referrals and rewards · postgres.ts Postgres records · page.tsx Home and discovery
Components 25
Student experience
- Home and discovery
src/app/(site)/page.tsx - Alumni search
src/app/(site)/search/page.tsx - Guides and resources
src/modules/content/index.ts - Join and verify
src/app/(site)/join/actions.ts - Waitlist
src/app/(site)/waitlist/page.tsx - Referral redirect
src/app/r/[code]/route.ts - Student chat
src/app/(site)/chat/[alumniId]/page.tsx - Chat file download
src/app/files/chat/[messageId]/route.ts - Instant CV review
src/components/cv-review/instant-review-form.tsx
Domain services
- Student accounts
src/modules/students/index.ts - Referrals and rewards
src/modules/growth/index.ts - Chat rules and messages
src/modules/chat/index.ts - Guest review session
src/modules/cv-review/guest-session.ts - Review processing
src/modules/cv-review/index.ts - File handling
src/modules/files/index.ts
Staff and administration
- Team inbox
src/modules/team/inbox.ts - Team operations
src/modules/team/index.ts - Admin portal
src/app/admin/page.tsx - Admin operations
src/modules/admin/index.ts - Product analytics
src/modules/analytics/index.ts
Adapters and persistence
- Alumni and chat adapter
src/adapters/enip-app/local.ts - Object storage
src/adapters/storage/index.ts - Postgres records
src/adapters/db/postgres.ts - CV review provider
src/adapters/cv-reviewer/hirelayer.ts
Other components
- Visitor or student
Connections 32
- Visitor or student → Home and discovery: opens
src/app/(site)/page.tsx - Home and discovery → Guides and resources: loads categories
src/app/(site)/page.tsx - Home and discovery → Alumni search: links to
src/app/(site)/page.tsx - Visitor or student → Join and verify: submits signup
src/app/(site)/join/actions.ts - Join and verify → Student accounts: starts signup
src/app/(site)/join/actions.ts - Student accounts → Referrals and rewards: records verification
src/modules/students/index.ts - Student accounts → Postgres records: reads and writes
- Visitor or student → Waitlist: views progress
src/app/(site)/waitlist/page.tsx - Waitlist → Referrals and rewards: loads referral status
src/app/(site)/waitlist/page.tsx - Visitor or student → Referral redirect: opens code
src/app/r/[code]/route.ts - Referral redirect → Referrals and rewards: records referral
src/app/r/[code]/route.ts - Visitor or student → Student chat: starts conversation
- Student chat → Chat rules and messages: uses chat service
- Chat rules and messages → Alumni and chat adapter: sends and lists messages
src/modules/chat/index.ts - Chat rules and messages → Referrals and rewards: checks chat access
src/modules/chat/index.ts - Chat rules and messages → File handling: validates attachments
src/modules/chat/index.ts - Chat rules and messages → Team operations: notifies team
src/modules/chat/index.ts - Visitor or student → Instant CV review: submits resume
src/components/cv-review/instant-review-form.tsx - Instant CV review → Guest review session: uses guest token
- Review processing → CV review provider: requests review
src/modules/cv-review/index.ts - Review processing → File handling: handles review files
src/modules/cv-review/index.ts - Visitor or student → Chat file download: requests attachment
src/app/files/chat/[messageId]/route.ts - Chat file download → Chat rules and messages: opens authorized file
src/app/files/chat/[messageId]/route.ts - File handling → Object storage: stores and loads files
src/modules/files/index.ts - Visitor or student → Team inbox: team handles conversations
- Team operations → Team inbox: uses inbox functions
src/modules/team/index.ts - Visitor or student → Admin portal: administers network
- Admin portal → Admin operations: loads admin data
src/app/admin/page.tsx - Admin portal → Product analytics: loads metrics
src/app/admin/page.tsx - Admin operations → Postgres records: reads and writes
src/modules/admin/index.ts - Product analytics → Postgres records: queries metrics
- Alumni and chat adapter → Postgres records: reads and writes
src/adapters/enip-app/local.ts