How chandrakantamandal/campuslink works
HireBridge is a web application with account access, a session-gated dashboard, and an AI chat interface, backed by an Express server and shared Better Auth/Prisma packages. The visible chat submits prompts to the configured server URL; server setup and shared service wiring are visible, but the server’s route implementation is not. The README also documents PostgreSQL and PWA support. Some route and PWA wiring is therefore shown as unverified rather than assumed.
Main entry points: services.ts Service initialization · index.ts Prisma client · page.tsx Web application · auth-client.ts Auth client
Components 19
Web experience
- Web application
apps/web/src/app/page.tsx - Sign-up form
apps/web/src/components/sign-up-form.tsx - Sign-in form
apps/web/src/components/sign-in-form.tsx - Dashboard gate
apps/web/src/app/dashboard/page.tsx - AI chat
apps/web/src/app/ai/page.tsx - Shared UI primitives
packages/ui/src/components
Authentication
- Auth client
apps/web/src/lib/auth-client.ts - Auth configuration
packages/auth/src/index.ts
Server services
- Express API
apps/server/src/index.ts - Service initialization
apps/server/src/services.ts - Server environment
apps/server/src/env.server.ts
Persistence
- Prisma client
packages/db/src/index.ts - Database configuration
packages/db/src/config.ts
PWA support
- App manifest
apps/web/src/app/manifest.ts - Service worker
apps/web/public/sw.js - PWA configuration
apps/web/pwa.config.ts - PWA registration
apps/web/src/components/pwa-registration.tsx
Other components
- Visitor
- PostgreSQL
Connections 20
- Visitor → Web application: visits
apps/web/src/app/page.tsx - Visitor → Sign-up form: registers
apps/web/src/components/sign-up-form.tsx - Visitor → Sign-in form: signs in
apps/web/src/components/sign-in-form.tsx - Sign-up form → Auth client: calls
apps/web/src/components/sign-up-form.tsx - Sign-in form → Auth client: uses
apps/web/src/components/sign-in-form.tsx - Dashboard gate → Auth client: checks session
apps/web/src/app/dashboard/page.tsx - Dashboard gate → Visitor: redirects unauthenticated
apps/web/src/app/dashboard/page.tsx - AI chat → Shared UI primitives: renders with
apps/web/src/app/ai/page.tsx - AI chat → Express API: posts chat request
apps/web/src/app/ai/page.tsx - Express API → Service initialization: imports
apps/server/src/index.ts - Service initialization → Server environment: reads configuration
apps/server/src/services.ts - Service initialization → Auth configuration: creates auth
apps/server/src/services.ts - Service initialization → Prisma client: creates client
apps/server/src/services.ts - Auth configuration → Prisma client: uses Prisma adapter
packages/auth/src/index.ts - Prisma client → Database configuration: imports config
packages/db/src/index.ts - Prisma client → PostgreSQL: persists data
README.md - Web application → App manifest: exposes
README.md - Web application → PWA registration: registers worker
- PWA registration → Service worker: registers
- PWA configuration → Service worker: sets headers
apps/web/pwa.config.ts