How johnnykozman2007/jobassistantcopy works
1. This is a three-part monorepo for an AI-assisted job/search or recruiting workflow: a TypeScript frontend, a Python backend API, and a separate Python “Agent” package for AI/scraping logic. The root-level docker-compose.yml suggests these pieces are intended to run together as independently containerized services.
2. The Frontend/ app is a Next.js application built with React and TypeScript. Its route structure shows the main user flows: landing page, onboarding steps, dashboard, profile, and settings. That makes the frontend the primary interaction layer for collecting user data, displaying analysis, and guiding the user through setup.
3. The frontend component set points to a product centered on resume/job analysis and AI-generated guidance. Components like ResumeUploader, JobAnalyzer, MatchScoreCard, AnalysisModal, AIAnswerGenerator, and SaveProfilePrompt indicate that the UI both gathers inputs and renders AI-derived outputs.
4. The Backend/ directory is a Python service that likely owns application state and persistence. Files like app/main.py, app/user_route.py, database/db_client.py, and user.py suggest a route/controller layer plus a database client abstraction for user/profile data.
5. The backend appears to be the system boundary for user and profile management. The frontend likely talks to it for onboarding, saving profiles, and retrieving user-specific data, while the backend isolates database access behind db_client.py rather than letting the UI reach storage directly.
6. The Agent/ package is the AI/workflow subsystem. Its src/agent/graph.py, prompts.py, scorer.py, and tools/scraper.py indicate a LangGraph-based pipeline that combines prompting, scoring logic, and a scraping tool. The langgraph.json file reinforces that this is designed as a graph-based agent workflow rather than a simple utility script.
7. The Agent’s responsibilities are likely twofold: extract job-description data and compute a resume/job match or related score. The presence of JOB_DESC_SCRAPER.md and RESUME_SCORER.md, plus tests for scraper and graph behavior, suggests the agent is a reusable analysis engine that the product can call when it needs structured job or resume insights.
8. Data flow is likely: user uploads or enters resume/profile/job data in the frontend, the frontend sends user/profile requests to the backend, and the backend either stores them or invokes the Agent for scoring/scraping workflows. The Agent produces normalized outputs that the backend or frontend then presents as match scores, recommendations, or answers.
9. The repo has clear separation between presentation, application state, and AI logic. The frontend owns UX and routing, the backend owns persistence and user APIs, and the agent owns the expensive or specialized AI/scraping computation. That separation makes it easy to diagram as three services with explicit integration points.
10. Testing is split by subsystem. The Agent has both unit and integration tests under Agent/tests/, while GitHub Actions workflows run unit and integration test suites there. That implies the agent is treated as the most algorithmically sensitive part of the system and is validated independently from the web UI.
11. Containerization and deployment are first-class concerns. Each major service has its own Dockerfile variant, and the repository includes CI workflows plus environment templates like Agent/.env.example, indicating the app is meant to be run in reproducible environments rather than as a single local-only codebase.
12. In an architecture diagram, the main boxes should be: browser/client, Next.js frontend, Python backend/API, Python agent service/workflow, and database/storage behind the backend. The most important arrows are user interaction into the frontend, frontend-to-backend API calls, backend-to-database persistence, and backend/frontend-triggered calls into the Agent for analysis or scraping.
Main entry points: layout.tsx Next.js App · graph.py Agent Graph · user_route.py User Routes · main.py API App
Components 16
Frontend
Next.js UI and user flows
- Next.js App · Top-level React/TypeScript application shell
Frontend/app/layout.tsx - Landing · Entry page and primary product introduction
Frontend/app/page.tsx - Onboarding · Multi-step setup and profile capture
Frontend/app/onboarding/step-1/page.tsx - Workspace · Dashboard, profile, and settings surfaces
Frontend/app/dashboard/page.tsx - Analysis UI · Resume upload, job analysis, scores, and AI prompts
Frontend/components/JobAnalyzer.tsx
Backend
Python API and persistence boundary
- API App · Backend service entrypoint
Backend/app/main.py - User Routes · User and profile endpoints
Backend/app/user_route.py - DB Client · Database abstraction used by the API
Backend/database/db_client.py - User Model · User/profile data structure
Backend/user.py
Agent
AI scoring and scraping workflow
- Agent Graph · LangGraph orchestration for analysis tasks
Agent/src/agent/graph.py - Prompts · Prompt templates and task framing
Agent/src/agent/prompts.py - Scorer · Resume/job match scoring and evaluation
Agent/src/agent/scorer.py - Scraper · Job-description extraction and normalization
Agent/src/agent/tools/scraper.py
Infra
Container and test orchestration
- Compose Stack · Root service orchestration for the monorepo
docker-compose.yml - Agent Tests · Unit and integration validation for the agent workflow
Agent/tests/integration_tests/test_graph.py
Other components
- Client · End user interacting with the product
Connections 19
- Client → Next.js App: uses · User interacts with the frontend
- Next.js App → Landing: routes · Renders the landing experience
- Next.js App → Onboarding: routes · Guides account setup
- Next.js App → Workspace: routes · Hosts dashboard, profile, and settings views
- Next.js App → Analysis UI: renders · Composes the analysis and input components
- Analysis UI → API App: api calls · Sends user and analysis requests to the backend
- Onboarding → User Routes: submit profile · Persists onboarding data through user endpoints
- Workspace → User Routes: load profile · Fetches and updates account data
- API App → User Routes: mounts · Exposes the user route layer
- User Routes → DB Client: reads/writes · Persists application state
- User Routes → User Model: maps · Transforms request data into domain objects
- API App → Agent Graph: invokes · Delegates AI and scraping work to the agent subsystem
- Agent Graph → Prompts: uses · Builds task-specific prompts
- Agent Graph → Scorer: scores · Computes match and analysis outputs
- Agent Graph → Scraper: extracts · Pulls structured data from job descriptions
- Agent Graph → Agent Tests: validated by · Covered by dedicated agent tests
- Compose Stack → Next.js App: orchestrates · Starts the frontend service
- Compose Stack → API App: orchestrates · Starts the backend API service
- Compose Stack → Agent Graph: orchestrates · Starts the agent workflow service