# Repository Briefing: vas3k/TaxHacker
> Source: https://repoforai.com/repo/vas3k/TaxHacker (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vas3k/TaxHacker
- **Official Docs / Website**: https://taxhacker.app
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (92/100 · Maintenance 35/35 · Adoption 23/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v0.8.5 (2026-07-20) — https://github.com/vas3k/TaxHacker/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI
- **Momentum**: 6,930 ★ total (+0 24h / +11 7d) · 1,108 forks
- **Topics**: `accounting`, `ai-analysis`, `currency-exchange`, `expenses`, `gemini`, `invoices`, `llm`, `ocr-recognition`, `ollama`, `openai`, `self-hosted`, `taxes`
- **When to Use**: Best for: Freelancers and small teams that need to turn receipt photos and invoice PDFs into reviewable, multi-currency transaction records with custom fields. Skip if: You need a complete accounting system for reconciliation or statutory reporting, or cannot allocate time to review model output and maintain the deployment.

## Overview
```text
### Architecture & Core Mechanics
TaxHacker is a TypeScript web app whose Next.js frontend and API take receipt photos and invoice PDFs through an unsorted queue into manual entry or model-assisted extraction. Ghostscript and GraphicsMagick support PDF processing. Prisma manages PostgreSQL records and migrations; in the supplied Compose setup, uploaded documents are stored separately under /app/data/uploads on a bind mount.

The model layer uses LangChain, with dependencies for OpenAI, Google Gemini, and Mistral. Self-hosted deployments can also point the app at an OpenAI-compatible API. That endpoint and the editable system and field prompts are the main customization points: changing what the app extracts can be a configuration change rather than a code change. Better Auth handles authentication, and Compose runs the app and a separate cron service from the same image.

### Key Capabilities & Differentiators
The app extracts merchants, dates, totals, taxes, and line items, then categorizes transactions. Individual invoice lines can become separate transactions. Custom fields add transaction columns with their own extraction prompts, while projects and categories provide grouping and can carry prompts of their own. Full-text search, filters, and bulk operations support review after extraction.

Currency detection and historical conversion use the transaction date and cover 170+ fiat currencies and 14 cryptocurrencies, with manual entry available when needed. Users can export a filtered set of transactions to CSV with associated documents or download a complete archive. These outputs are useful for handing records to an accountant, but they do not establish that the app can produce jurisdiction-specific filings.

### Trade-offs & Limitations
Compared with a spreadsheet, TaxHacker reduces manual transcription and keeps source documents linked to searchable transaction records, at the cost of running a web app, database, and document-processing stack. Compared with a full bookkeeping suite, its strongest fit is document intake and expense tracking. Do not adopt it as the only accounting system if bank reconciliation, a general ledger, or statutory filing is a hard requirement.

Hosted models avoid running inference hardware but may incur usage charges and send financial document data outside your infrastructure. A local endpoint gives you control over that data path but shifts model capacity planning and OCR validation to your team. Test on your own receipts and verify totals, taxes, classifications, and currency conversions before using the results for reporting. The project is still in early development; test upgrades on a copy of your data. The MIT license permits commercial use, but does not settle provider terms or financial-data obligations.

### Hardware & Deployment Guide
The supplied Docker Compose setup uses ghcr.io/vas3k/taxhacker, maps port 7331, and bundles PostgreSQL; PostgreSQL 17+ is recommended. Migrations run at startup. Back up both the database and ./data, which is mounted at /app/data and holds uploaded files. If BETTER_AUTH_SECRET is unset, self-hosted Docker generates and persists one at ./data/.better_auth_secret; keep it with the backups because it also protects stored email credentials. Self-hosted mode enables auto-login, so do not treat the default deployment as an authenticated public service.

For source development, package.json requires Node.js >=26; provide PostgreSQL, Ghostscript, and GraphicsMagick, then generate the Prisma client, apply development migrations, and run npm run dev. A local model endpoint can keep inference off hosted APIs, but do not assume the entire workflow is offline without checking how historical rates are obtained. The v0.8.2 release notes include a LangChain v1 upgrade and transaction filter fixes; v0.8.5 points to a comparison changelog. Pin a release tag rather than latest for a repeatable rollout.
```

## Key Capabilities
```text
- Application stack: Next.js frontend and API, with Prisma and PostgreSQL for structured records.
- Document intake: Receipt photos and PDFs can wait in an unsorted queue before manual or AI processing.
- Model routing: LangChain integrations for OpenAI, Gemini, and Mistral, plus a configurable OpenAI-compatible endpoint in self-hosted mode.
- Extraction controls: Editable system, field, category, and project prompts; invoice line items can become separate transactions.
- Currency conversion: Transaction-date rates for 170+ fiat currencies and 14 cryptocurrencies, with a manual fallback.
- Portability: Filtered CSV export with associated documents and a separate full data archive option.
```

## Quick Start / Clone
```bash
curl -O https://raw.githubusercontent.com/vas3k/TaxHacker/main/docker-compose.yml

docker compose up
```
