How shravan-chourasiya/synthviewai works
This is an AI-assisted interview-practice application: users authenticate, create or resume an interview, answer questions in a live session, and review a report. The backend also exposes analytics, administration, notifications, and shared reports; the frontend supplies the corresponding user and admin views. The sampled material confirms the interview route/controller/service path and parts of authentication and admin handling. AI generation, realtime wiring, and several feature branches are represented from the repository tree, but their internal calls were not sampled.
Main entry points: auth.service.ts Auth services · services/interview.service.ts Feature services · App.tsx App routing · services/interview.service.ts Interview service
Components 25
Web application
- App routing
frontend/src/App.tsx - Auth views
frontend/src/pages/auth/auth.tsx - Interview views
frontend/src/pages/interviews/live.tsx - Reports and history
frontend/src/pages/interviews/report.tsx - Admin views
frontend/src/pages/admin/overview.tsx - HTTP client
frontend/src/lib/http.ts - Feature services
frontend/src/lib/services/interview.service.ts - Live socket client
frontend/src/lib/socket/interview-socket.ts
Backend API
- API routes
backend/src/routes/interview.routes.ts - Auth controller
backend/src/modules/auth/controllers/auth.controller.ts
Interview runtime
- Interview controller
backend/src/modules/interview/controller/interview.controller.ts - Interview service
backend/src/modules/interview/services/interview.service.ts - AI interview engine
backend/src/integrations/ai - Interview context
backend/src/modules/interview/services/interview.context.service.ts - Socket gateway
backend/src/websocket/interview.gateway.ts
Platform services
- Auth services
backend/src/modules/auth/services/auth.service.ts - Postgres
backend/src/db/postgres.init.ts - Redis
backend/src/config/redis.init.ts - Mail delivery
backend/src/services/mail.service.ts - Notifications
backend/src/modules/notification/services/notification.service.ts - Contact
backend/src/modules/contact/services/contact.service.ts
Insights and admin
- Analytics
backend/src/modules/analytics/services/analytics.service.ts - Admin operations
backend/src/modules/admin/services/admin.service.ts - Admin controller
backend/src/modules/admin/controllers/admin.controller.ts
Other components
- User
Connections 27
- User → App routing: uses
- App routing → Auth views: routes to
frontend/src/App.tsx - App routing → Interview views: routes to
frontend/src/App.tsx - App routing → Admin views: routes to
- Auth views → Feature services: requests data
- Interview views → Feature services: requests data
- Interview views → Live socket client: uses socket
- Reports and history → Feature services: requests data
- Feature services → HTTP client: uses
frontend/src/lib/services/interview.service.ts - HTTP client → API routes: HTTP requests
- API routes → Interview controller: routes to
backend/src/routes/interview.routes.ts - Interview controller → Interview service: calls
backend/src/modules/interview/controller/interview.controller.ts - Interview service → AI interview engine: generates questions
- Interview service → Interview context: uses context
- Live socket client → Socket gateway: socket events
- Interview service → Postgres: reads and writes
- API routes → Auth controller: routes to
- Auth controller → Auth services: calls
backend/src/modules/auth/controllers/auth.controller.ts - Auth services → Mail delivery: sends OTP mail
backend/src/modules/auth/services/auth.service.ts - Auth services → Postgres: reads and writes
backend/src/modules/auth/services/auth.service.ts - Auth services → Redis: uses
- Auth services → Admin operations: unverified
- Admin controller → Admin operations: calls
backend/src/modules/admin/controllers/admin.controller.ts - Admin controller → Analytics: gets metrics
backend/src/modules/admin/controllers/admin.controller.ts - Admin views → Feature services: requests data
- Notifications → Postgres: unverified storage
- Contact → Mail delivery: unverified delivery