How johnnykozman2007/jobassistant works
This repository is a three-part product monorepo: a Next.js frontend, a Python backend, and a separate Python AI/agent service. The structure suggests a resume/job-match application with onboarding, profile management, job analysis, scoring, and resume tailoring.
The Frontend is a Next.js App Router app in TypeScript/React. Its routes cover the main user journey: landing, onboarding steps, dashboard, profile, and settings. The component set is strongly domain-specific: ResumeUploader, JobAnalyzer, MatchScoreCard, AnalysisModal, AIAnswerGenerator, and SaveProfilePrompt indicate the UI is built around uploading resumes, analyzing job fit, and presenting AI-generated guidance.
The Backend is a Python service responsible for application data and user/account state. The presence of app/user_route.py, database/db_client.py, user.py, and helper.py suggests a lightweight API layer plus persistence abstraction, likely centered on storing user profiles, preferences, and saved artifacts needed by the frontend and agent.
The Agent package is the AI/workflow subsystem. It is organized around graph.py, state.py, node.py, route.py, tailor.py, and scorer.py, which is a strong signal that the core logic is implemented as a graph/state machine rather than a single linear pipeline. This service owns the model-driven steps: interpreting inputs, scoring resume-job fit, and tailoring content.
A key boundary is the tooling layer inside the Agent. tools/scraper.py and JOB_DESC_SCRAPER.md show that the agent can fetch or parse job descriptions from external sources. That separates external web scraping from the AI orchestration layer, which is useful for reliability and testability.
The data flow is likely: the user enters information in the frontend, the backend stores or retrieves profile data, and the frontend then invokes the agent for job analysis or tailoring. The agent returns structured outputs such as fit scores, recommendations, or tailored resume text, which the frontend renders in the dashboard and analysis modal.
The AI orchestration boundary is explicit in the Agent’s layout. prompts.py defines prompt templates, scorer.py computes or ranks fit, tailor.py performs rewriting, and server.py exposes the service. This isolates model behavior from UI and persistence concerns, making the agent independently deployable and testable.
The deployment model is containerized and service-oriented. Each major subsystem has its own Dockerfile, and docker-compose.yml at the repo root indicates local multi-service composition. That implies the frontend, backend, and agent are intended to run as separate processes with networked communication between them.
The tooling and runtime split matters architecturally: the frontend uses Node/Next.js (package.json, tsconfig.json, next.config.ts), while the backend and agent use Python (pyproject.toml, uv.lock, requirements.txt). The agent’s langgraph.json suggests LangGraph/LangChain-style workflow orchestration, which is a central design choice for how AI steps are composed.
The testing strategy is divided by subsystem. The Agent has both unit and integration tests, including graph-level integration coverage and scraper tests. The repository also has GitHub Actions workflows for unit and integration tests, showing the agent is treated as a critical, independently validated component.
Overall, the architecture is best drawn as: a user-facing Next.js app on one side, a Python backend for app data in the middle, and a Python AI agent service on the other side for job scraping, scoring, and resume tailoring. The key system boundaries are presentation, persistence/auth/profile state, and AI/workflow execution.
Main entry points: graph.py Workflow graph · layout.tsx App shell · page.tsx Dashboard · user_route.py User API
Components 27
Root
Repo orchestration and deployment
Frontend
Next.js user interface
- App shell · Global Next.js layout and shared styling
Frontend/app/layout.tsx - Landing · Public entry page for the product
Frontend/app/page.tsx - Onboarding · Multi-step profile and resume setup
Frontend/app/onboarding/step-1/page.tsx - Dashboard · Main analysis and match-results view
Frontend/app/dashboard/page.tsx - Profile · User profile management page
Frontend/app/profile/page.tsx - Settings · Account and preference settings
Frontend/app/settings/page.tsx - Resume upload · Collects resume input for analysis
Frontend/components/ResumeUploader.tsx - Analysis UI · Job fit analysis and score presentation
Frontend/components/JobAnalyzer.tsx - Result modal · Detailed analysis and recommendation modal
Frontend/components/AnalysisModal.tsx - Match score · Displays resume-job fit scoring
Frontend/components/MatchScoreCard.tsx - AI answer · Generates AI-written guidance in the UI
Frontend/components/AIAnswerGenerator.tsx - Save prompt · Prompts users to persist profile data
Frontend/components/SaveProfilePrompt.tsx
Backend
Python app data API
- User API · Backend endpoint for user and profile state
Backend/app/user_route.py - DB client · Database access abstraction
Backend/database/db_client.py - User model · Stored user/profile schema
Backend/user.py - Helpers · Shared backend support logic
Backend/helper.py
Agent
AI workflow service
- Agent API · HTTP entrypoint for AI workflow service
Agent/src/agent/server.py - Workflow graph · LangGraph state-machine execution core
Agent/src/agent/graph.py - Routing · Determines next workflow step
Agent/src/agent/route.py - Scoring · Evaluates resume-job fit
Agent/src/agent/scorer.py - Tailoring · Rewrites resume content for a job
Agent/src/agent/tailor.py - Prompts · Shared model prompt templates
Agent/src/agent/prompts.py - State · Typed state passed between nodes
Agent/src/agent/state.py - Nodes · Reusable graph node definitions
Agent/src/agent/node.py - Scraper · Fetches and parses job descriptions
Agent/src/agent/tools/scraper.py
Connections 31
- Compose → App shell: runs · Starts the frontend service
- Compose → User API: runs · Starts the backend service
- Compose → Agent API: runs · Starts the AI agent service
- Entry → Compose: bootstraps · Top-level runtime entry hooks into compose-based setup
- App shell → Landing: hosts · Provides app-wide shell for public entry page
- App shell → Onboarding: hosts · Provides app-wide shell for onboarding flow
- App shell → Dashboard: hosts · Provides app-wide shell for dashboard
- App shell → Profile: hosts · Provides app-wide shell for profile page
- App shell → Settings: hosts · Provides app-wide shell for settings page
- Onboarding → Resume upload: uses · Collects resume input during setup
- Dashboard → Analysis UI: uses · Runs job analysis workflow from the dashboard
- Dashboard → Match score: uses · Renders match scoring for jobs and resumes
- Dashboard → Result modal: opens · Shows deeper analysis details
- Dashboard → AI answer: uses · Displays AI-generated guidance
- Profile → Save prompt: uses · Encourages persistence of user profile data
- Resume upload → User API: submits · Sends user and resume data to backend state
- Analysis UI → Agent API: calls · Requests job analysis and scoring from agent
- AI answer → Agent API: calls · Requests AI-generated recommendations from agent
- User API → DB client: persists · Stores and retrieves user state
- User API → User model: uses · Maps API payloads to stored user schema
- User API → Helpers: uses · Shares backend utilities and business rules
- Agent API → Workflow graph: executes · Serves the workflow graph as the core runtime
- Workflow graph → State: passes · Carries structured workflow state between steps
- Workflow graph → Routing: routes · Selects the next node in the workflow
- Workflow graph → Scoring: scores · Computes resume-job fit
- Workflow graph → Tailoring: tailors · Generates job-specific resume changes
- Workflow graph → Prompts: uses · Supplies prompt templates to model steps
- Workflow graph → Nodes: builds · Composes reusable workflow nodes
- Routing → Scraper: uses · Obtains external job descriptions when needed
- Scoring → Prompts: uses · Scoring is guided by prompt templates
- Tailoring → Prompts: uses · Tailoring is guided by prompt templates