#
Receipt & Invoice Sorter Pro: Local AI Bookkeeping for Freelancers
*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle](https://dev.to/challenges/hacktoberfest-week2-2026-10-12).*
**(Targeting Prize Categories: Best Use of Gemma)**
#
What I Built
Receipt & Invoice Sorter Pro is a privacy-first, 100% local micro-SaaS utility designed for freelancers and small businesses. It parses multi-vendor PDF, CSV, and JSON invoices into structured, itemized tables with automatic tax categorization—all running completely offline on a local Gemma 2B instance.
#
Who Would Pay For It & Why
Freelancers and small business owners spend hours manually sorting receipts for quarterly tax filing or client expense billing. Existing cloud solutions pose significant data security and compliance risks by up sensitive financial telemetry, bank statements, and client information to cloud servers.
Receipt & Invoice Sorter Pro operates as a paid local utility tool. Freelancers and small businesses get an instant bookkeeping assistant with zero risk of client data leaking to third-party servers.
#
How I Built It
Local AI Inference Engine: Powered byGemma 2B running locally viaOllama , ensuring zero cloud latency and complete offline capability. #
Deterministic Python Backend: Built withFastAPI . To overcome small-model limits like attention bleed across dense documents, the backend uses regex chunking to isolate individual invoices, sanitizes broken OCR line breaks, and enforces strict mathematical guardrails on line-item math. #
Frontend Dashboard: Built usingNext.js, TypeScript, and Tailwind CSS , featuring document staging, raw text parsing, and nested itemized breakdown cards.
#
Why Does Open Innovation Matter?
Zero Marginal Cost: SaaS accounting tools charge per invoice processed. Running open-weight models locally allows freelancers to process thousands of heavy invoices with zero per-token API charges. 2. Absolute Privacy Guarantee: Financial and tax data never touches a remote server, offering complete privacy compliance by design.
#
Code Highlight: Deterministic Chunker & Math Guardrails
Here is how the Python backend isolates multi-invoice documents and corrects column shifts: