Technology Stack
Relevant source files
The following files were used as context for generating this wiki page:
Resume Matcher is a full-stack application composed of a modern Python backend and a React-based frontend. The architecture is designed to be modular, allowing for local execution with open-source AI models or integration with cloud-based LLM providers. The system leverages a lean set of technologies to provide a fast, responsive, and customizable user experience.
The core philosophy is to use a separate, decoupled frontend and backend, communicating via a REST API. This allows for independent development, scaling, and maintenance of each component. Data persistence is handled through a simple, file-based JSON database, making setup and local development straightforward. For more detailed architecture information, see the Backend Guide and Frontend Workflow documentation.
Sources: README.md:139-145, AGENTS.md:21-44
High-Level Architecture
The application is split into two main parts: a Next.js frontend and a FastAPI backend. The backend handles all business logic, AI interactions, and data storage, while the frontend is responsible for the user interface and user experience.
This diagram illustrates the primary components and their interactions.
Sources: AGENTS.md:21-44, README.md:139-145
Backend
The backend is a lightweight, asynchronous web application built with Python. It serves a REST API for the frontend to consume.
Sources: AGENTS.md:22-31, SETUP.md:164-177
Core Technologies
| Component | Technology | Version | Purpose |
|---|---|---|---|
| Web Framework | FastAPI | - | High-performance ASGI framework for building APIs. |
| Language | Python | 3.13+ | Core programming language. |
| Package Manager | uv | Latest | Fast Python package installation and management. |
| Database | TinyDB | - | A lightweight, document-oriented database stored in a JSON file. |
| AI Integration | LiteLLM | - | Provides a unified interface for various LLM providers. |
| PDF Generation | Playwright | - | Uses headless Chromium to render and export PDFs from frontend pages. |
| Data Validation | Pydantic | - | Data validation and settings management using Python type annotations. |
Sources: README.md:139-145, SETUP.md:23-27, install.txt:8-18, AGENTS.md:25-29
AI & LLM Integration
A key feature of the backend is its flexible AI integration, managed by the LiteLLM library. This allows the application to support a wide range of both local and cloud-based Large Language Models (LLMs).
- Multi-Provider Support: The system can connect to Ollama (for local models), OpenAI, Anthropic, Google Gemini, OpenRouter, and DeepSeek.
- Configuration: Users can switch between providers and set API keys through the settings UI or a
.envfile. - JSON Mode: The
complete_json()function in thellm.pywrapper automatically enables JSON output mode for supported providers to ensure structured data is returned. - Retry Logic: To improve reliability, JSON completion calls include two automatic retries with a progressively lower temperature.
- Error Handling: The LLM wrapper includes robust error handling, logging detailed errors server-side while returning generic messages to the client to avoid exposing internal details.
Sources: README.md:124-133, AGENTS.md:100-123, INSTALL.md:77-88
The following table lists the supported providers and their configuration keys.
| Provider | LLM_PROVIDER Value | Example Model |
|---|---|---|
| Ollama | ollama | llama3.2 |
| OpenAI | openai | gpt-4o-mini |
| Anthropic | anthropic | claude-3-5-sonnet-20241022 |
| Google Gemini | gemini | gemini-1.5-flash |
| OpenRouter | openrouter | anthropic/claude-3.5-sonnet |
| DeepSeek | deepseek | deepseek-chat |
Sources: README.md:124-133, INSTALL.md:77-88
Frontend
The frontend is a modern single-page application built with Next.js and React, providing a dynamic and interactive user interface.
Sources: AGENTS.md:33-44, SETUP.md:179-190
Core Technologies
| Component | Technology | Version | Purpose |
|---|---|---|---|
| Framework | Next.js | 15+ | React framework for server-side rendering and static site generation. |
| Language | TypeScript | - | Superset of JavaScript that adds static type-checking. |
| UI Library | React | 19+ | Core library for building user interfaces. |
| Package Manager | npm | 10+ | Node.js package manager. |
| Styling | Tailwind CSS | 4 | A utility-first CSS framework for rapid UI development. |
| Icons | Lucide React | - | A library of simply designed, consistent icons. |
Sources: README.md:139-145, SETUP.md:23-27, install.txt:27-38
Styling and Design System
The application's visual identity is based on the Swiss International Style. This is implemented using a combination of Tailwind CSS utility classes and custom CSS variables.
- Fonts: The UI uses
font-seriffor headers,font-monofor metadata, andfont-sansfor body text. - Layout: Components are designed with
rounded-none, 1px black borders, and hard shadows to create a distinct, retro look. - Customization: Resume templates are styled using CSS custom properties defined in
globals.css. These variables control margins, spacing, font sizes, and font families, allowing users to customize the appearance of their exported PDFs.
Example CSS variables for resume templates:
/* apps/frontend/app/(default)/css/globals.css:205-221 */
.resume-body {
/* Spacing defaults (can be overridden via inline styles) */
--section-gap: 1rem;
--item-gap: 0.25rem;
--line-height: 1.35;
--font-size-base: 14px;
--header-scale: 2;
--section-header-scale: 1.2;
--header-font: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
--body-font: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
/* Margin defaults - used as padding inside the resume container */
--margin-top: 10mm;
--margin-bottom: 10mm;
--margin-left: 10mm;
--margin-right: 10mm;
}
Sources: AGENTS.md:60-66, apps/frontend/app/(default)/css/globals.css:202-282, apps/frontend/components/resume/resume-single-column.tsx, apps/frontend/components/resume/resume-two-column.tsx
Internationalization (i18n)
The application supports multiple languages for both the user interface and the AI-generated content.
- UI Language: Interface text is managed through simple JSON files located in
apps/frontend/messages/. Supported languages include English (en), Spanish (es), and Chinese (zh). - Content Language: The language for AI-generated content (like tailored resume summaries or cover letters) is configured separately in the settings. This language code is passed to the backend, which injects it into the LLM prompts using an
{output_language}placeholder.
This dual-setting approach allows a user to, for example, navigate the UI in English while generating a resume in Spanish.
Sources: AGENTS.md:183-201, apps/frontend/messages/en.json, apps/frontend/messages/zh.json, apps/backend/app/prompts/templates.py:4-13
Summary
The technology stack of Resume Matcher is a well-considered blend of modern, popular, and efficient tools. The Python/FastAPI backend provides a robust and scalable foundation for AI processing, while the Next.js/React frontend delivers a rich and responsive user experience. The use of LiteLLM for AI abstraction and TinyDB for simple data storage makes the application highly adaptable and easy to set up for local development.
Sources: README.md:139-145, AGENTS.md:21-44