How himanshukumarrout/campuslink works
HireBridge is a web application with account authentication, a dashboard, and an AI chat interface, backed by an Express API and PostgreSQL. The user-facing flow includes account creation or sign-in, session-gated dashboard access, and chat prompts sent to the configured server URL. The README also documents PWA support. Some server routing and PWA registration details are unsampled, so those connections are left unverified rather than inferred.
Main entry points: page.tsx AI chat · sign-up-form.tsx Sign-in and sign-up · services.ts Server services · index.ts Prisma client
Components 19
Web application
- Web app pages
apps/web/src/app/page.tsx - Sign-in and sign-up
apps/web/src/components/sign-up-form.tsx - Browser auth client
apps/web/src/lib/auth-client.ts - Session dashboard
apps/web/src/app/dashboard/page.tsx - AI chat
apps/web/src/app/ai/page.tsx - PWA support
apps/web/pwa.config.ts - Service worker
apps/web/public/sw.js
API and services
- Express API
apps/server/src/index.ts - Server services
apps/server/src/services.ts - Server environment
apps/server/src/env.server.ts
Auth and database
- Better Auth
packages/auth/src/index.ts - Prisma client
packages/db/src/index.ts - Database config
packages/db/src/config.ts
Shared interface
- Shared UI primitives
packages/ui/src/components/dropdown-menu.tsx - Chat input controls
packages/ui/src/components/input-group.tsx - Chat message display
packages/ui/src/components/message-scroller.tsx - Attachment components
packages/ui/src/components/attachment.tsx
Other components
- User
- PostgreSQL
Connections 22
- User → Web app pages: opens
README.md - User → Sign-in and sign-up: creates account
apps/web/src/components/sign-up-form.tsx - Sign-in and sign-up → Browser auth client: submits credentials
apps/web/src/components/sign-up-form.tsx - Browser auth client → Better Auth: auth requests
- Sign-in and sign-up → Session dashboard: routes on success
apps/web/src/components/sign-up-form.tsx - Session dashboard → Browser auth client: loads session
apps/web/src/app/dashboard/page.tsx - User → AI chat: sends prompt
apps/web/src/app/ai/page.tsx - AI chat → Express API: posts to configured URL
- Express API → Server services: imports services
apps/server/src/index.ts - Server services → Server environment: reads configuration
apps/server/src/services.ts - Server services → Better Auth: creates auth
apps/server/src/services.ts - Server services → Prisma client: creates client
apps/server/src/services.ts - Better Auth → Prisma client: uses Prisma adapter
packages/auth/src/index.ts - Prisma client → Database config: uses config
packages/db/src/index.ts - Prisma client → PostgreSQL: persists data
README.md - User → PWA support: uses installed app
- PWA support → Service worker: serves worker
- AI chat → Chat input controls: renders input
apps/web/src/app/ai/page.tsx - AI chat → Chat message display: renders messages
apps/web/src/app/ai/page.tsx - AI chat → Shared UI primitives: renders controls
apps/web/src/app/ai/page.tsx - Sign-in and sign-up → Shared UI primitives: renders controls
apps/web/src/components/sign-up-form.tsx - Chat input controls → Shared UI primitives: wraps button
packages/ui/src/components/input-group.tsx