Home
Relevant source files
The following files were used as context for generating this wiki page:
- README.md
- SETUP.md
- AGENTS.md
- INSTALL.md
- apps/backend/app/prompts/templates.py
- apps/backend/app/prompts/enrichment.py
- apps/frontend/app/(default)/tailor/page.tsx
- apps/frontend/components/builder/resume-builder.tsx
- apps/frontend/app/(default)/settings/page.tsx
- apps/frontend/messages/en.json
- apps/frontend/components/resume/resume-single-column.tsx
- apps/frontend/components/resume/resume-two-column.tsx
Resume Matcher is an AI-powered application designed to help users create tailored resumes for specific job applications. It analyzes a user's master resume against a target job description, provides AI-generated improvements, and allows for extensive customization before exporting a professional PDF. The system can be run entirely locally using Ollama or connected to various cloud-based LLM providers via API.
The core principle is to create a comprehensive master resume which can then be used as a base to generate optimized versions for each job application. This process involves parsing the resume into a structured format, using an LLM to suggest improvements based on the job description, and providing tools to build, format, and generate related documents like cover letters.
How It Works
The primary user workflow is a multi-step process that takes a master resume and a job description to produce a tailored resume, with options for generating a cover letter and outreach message.
Sources: README.md:50-57, apps/frontend/app/(default)/tailor/page.tsx:39-65
This diagram illustrates the main user flow for tailoring a resume.
Key Features
The application offers a suite of features centered around AI-powered resume optimization and generation.
| Feature | Description |
|---|---|
| Master Resume | Create or upload a comprehensive master resume to serve as the single source of truth for all tailored versions. |
| AI Resume Tailoring | Paste a job description to get an AI-generated resume version optimized for that specific role. |
| Resume Builder | A rich editor to modify AI-suggested content, add/remove/reorder sections, and customize formatting. |
| Cover Letter & Email Generation | Automatically generate tailored cover letters and cold outreach email templates based on the job and resume. |
| Multiple Resume Templates | Choose between single-column and two-column layouts with extensive formatting controls (margins, fonts, spacing). |
| Internationalization (i18n) | The UI and generated content support multiple languages, including English, Spanish, Chinese, and Japanese. |
| Multi-Provider AI Support | Works with local models via Ollama or cloud providers like OpenAI, Anthropic, Gemini, and more. |
| Resume Enrichment | An AI-powered wizard that asks targeted questions to help users enhance weak or generic descriptions on their master resume. |
| JD Match Analysis | A side-by-side view comparing the tailored resume against the job description, with matching keywords highlighted. |
Sources: README.md:95-121, AGENTS.md:215-223, 290-298, apps/frontend/components/builder/resume-builder.tsx:501-512
Architecture Overview
Resume Matcher is built with a modern web stack, separating the frontend user interface from the backend processing logic. It relies on a file-based database and integrates with various AI services.
Sources: SETUP.md:324-351, AGENTS.md:43-73
The following diagram shows the high-level system architecture.
Sources: SETUP.md:324-351, README.md:162-171
Components
- Backend: A Python application using the FastAPI framework. It handles all business logic, including resume parsing, AI prompt execution, and database interactions. It uses LiteLLM to provide a unified interface for various AI providers.
- Frontend: A Next.js (React) application that provides the user interface. It includes the dashboard, resume builder, settings page, and various components for displaying and editing resume data.
- Database: The application uses TinyDB, a lightweight, document-oriented database that stores all data in JSON files within the
apps/backend/data/directory. - PDF Generation: PDF export is handled by the backend, which uses a headless Chromium instance (via Playwright) to "print" the frontend's preview page. This ensures the PDF perfectly matches the on-screen preview.
Sources: SETUP.md:324-351, AGENTS.md:43-73, README.md:173-179
AI & Prompt Engineering
The core AI functionality is driven by a set of carefully crafted prompts that instruct the LLM on how to perform specific tasks. The backend uses a wrapper around LiteLLM to handle multi-provider support, JSON mode, and retry logic.
Sources: AGENTS.md:160-188, apps/backend/app/prompts/templates.py, apps/backend/app/prompts/enrichment.py
Key Prompts
| Prompt Name | File | Purpose |
|---|---|---|
PARSE_RESUME_PROMPT | templates.py | Parses raw resume text into a structured JSON object according to a predefined schema. |
IMPROVE_RESUME_PROMPT | templates.py | Tailors a resume for a specific job description, rephrasing content to highlight relevant experience. |
COVER_LETTER_PROMPT | templates.py | Writes a brief, professional cover letter based on the resume and job description. |
OUTREACH_MESSAGE_PROMPT | templates.py | Generates a concise cold outreach message for LinkedIn or email. |
ANALYZE_RESUME_PROMPT | enrichment.py | Analyzes a resume to identify weak descriptions and generates targeted questions for the user to answer. |
ENHANCE_DESCRIPTION_PROMPT | enrichment.py | Generates new, improved bullet points for a resume item based on the user's answers to the analysis questions. |
Sources: apps/backend/app/prompts/templates.py:48-154, apps/backend/app/prompts/enrichment.py:3-112
Resume Tailoring Sequence
This diagram shows the sequence of events when a user tailors a resume for a job.
Setup and Installation
The project requires Python 3.13+ and Node.js 22+. It uses uv for Python package management and npm for Node.js dependencies. A detailed guide is available in SETUP.md.
Sources: SETUP.md:21-30, README.md:149-155
Supported AI Providers
Configuration is managed via the Settings page in the UI or through environment variables in the backend's .env file.
| Provider | LLM_PROVIDER value | Notes |
|---|---|---|
| Ollama | ollama | Free, runs locally on your machine. |
| OpenAI | openai | Supports models like gpt-4o-mini. |
| Anthropic | anthropic | Supports models like claude-3-5-sonnet. |
| Google Gemini | gemini | Supports models like gemini-1.5-flash. |
| OpenRouter | openrouter | Acts as a gateway to access multiple models. |
| DeepSeek | deepseek | Supports deepseek-chat. |
Sources: SETUP.md:173-190, README.md:162-171, apps/frontend/app/(default)/settings/page.tsx:40-46
Internationalization (i18n)
The application supports multiple languages for both the user interface and the AI-generated content. These two settings are configured independently on the Settings page.
Sources: AGENTS.md:261-272, apps/frontend/app/(default)/settings/page.tsx:392-468
Supported Languages
| Code | Language | UI Support | Content Generation |
|---|---|---|---|
en | English | Yes | Yes |
es | Spanish | Yes | Yes |
zh | Chinese (Simplified) | Yes | Yes |
ja | Japanese | Yes | Yes |
Sources: AGENTS.md:275-283, apps/backend/app/prompts/templates.py:4-9, apps/frontend/messages/en.json, apps/frontend/messages/zh.json
The UI translations are managed in JSON files located in apps/frontend/messages/, while the content generation language is passed as a parameter in the LLM prompts.
Sources: AGENTS.md:288-295