How sarthak-jangid/viscoai works
ViscoAI is a resume-analysis SaaS: users sign in, submit a resume with job context, receive AI-generated career feedback, and can purchase a subscription for premium access. The graph follows the evidenced frontend routing and API handlers, then shows authentication, analysis, payment, and user-state responsibilities. Several capabilities and integrations are documented in the README but their full implementation was not sampled; those links are marked as documented or unverified rather than inferred from module names.
Main entry points: user.controller.ts User API · App.tsx React application · index.ts Express API server · ai.controller.ts Analysis API
Components 19
Web application
- React application
client/src/App.tsx - Resume analyzer
client/src/pages/Analyse.tsx - Login page
client/src/pages/Login.tsx - Account page
client/src/pages/Account.tsx - Pricing plans
client/src/components/Pricing.tsx - Session state
client/src/context/AppContext.tsx
Identity and accounts
- User API
server/src/controllers/user.controller.ts - Authentication guard
server/src/middlewares/isAuth.middleware.ts - Google identity
Resume analysis
- Analysis API
server/src/controllers/ai.controller.ts - AI analysis service
server/src/services/aiServices.service.ts - Analysis prompt
server/src/config/prompt.ts - Google Generative AI
Subscriptions and payments
- Payment API
server/src/controllers/payment.controller.ts - Razorpay
API and persistence
- Express API server
server/src/index.ts - User records
server/src/models/user.model.ts - MongoDB connection
server/src/config/db.config.ts
Other components
- Website user
Connections 23
- Website user → React application: uses
README.md - React application → Resume analyzer: routes to
client/src/App.tsx - React application → Login page: routes to
client/src/App.tsx - React application → Account page: routes to
client/src/App.tsx - React application → Session state: reads session
client/src/App.tsx - Resume analyzer → Analysis API: submits resume
client/src/pages/Analyse.tsx - Login page → User API: signs in
README.md - Session state → User API: loads profile
client/src/context/AppContext.tsx - Session state → User API: logs out
client/src/context/AppContext.tsx - User API → Google identity: verifies identity
server/src/controllers/user.controller.ts - User API → User records: reads and writes
server/src/controllers/user.controller.ts - Authentication guard → User records: loads account
server/src/middlewares/isAuth.middleware.ts - Express API server → User API: mounts routes
server/src/index.ts - Express API server → Analysis API: mounts routes
server/src/index.ts - Express API server → Payment API: mounts routes
server/src/index.ts - Analysis API → User records: checks usage
server/src/controllers/ai.controller.ts - Analysis API → AI analysis service: requests analysis
server/src/controllers/ai.controller.ts - AI analysis service → Analysis prompt: uses prompt
server/src/services/aiServices.service.ts - AI analysis service → Google Generative AI: requests generation
README.md - Payment API → User records: updates subscription
server/src/controllers/payment.controller.ts - Payment API → Razorpay: creates and verifies
server/src/controllers/payment.controller.ts - Pricing plans → Payment API: starts checkout
README.md - Express API server → MongoDB connection: connects to
server/src/index.ts