Invoice Generator
A web app for professional invoices: nine templates, correct tax handling, and a live preview that is the real PDF layout, rendered by Typst as you type.
The problem
Small businesses and freelancers in India need invoices that look professional and get taxes right: GST split into CGST and SGST, tax-inclusive prices, discounts and rounding. Most free tools get one of those wrong, or show a preview that doesn’t match the PDF.
What I built
- Any kind of line item: goods, services, hours, fees and expenses, with quantity, unit, item codes (SKU, HSN, SAC), per-line discounts and any number of tax rates per line, grouped into sections with optional subtotals.
- Taxes done properly: a per-rate breakdown (for example CGST + SGST), tax-inclusive pricing, per-rate or per-line tax rounding and cash rounding of the total. All maths uses exact decimals.
- A preview that is the PDF: the invoice is rendered by Typst as you type, so what you see is exactly what downloads. Downloads are archival PDF/A-2b files with bundled fonts, identical on every machine.
- Locale-aware formatting:
₹1,41,170.00for India,1.234,50 €for Germany, and the amount in words. - Your business on every invoice: logo, tax IDs, payment details and a UPI or payment-link QR code.
- Nine templates, from Swiss-minimal to an old-style bill-head, each customisable within safe limits (contrast-checked accent colours, font pairings, density, paper size, PAID/DRAFT stamps).
Quality
CI runs formatting, linting and the test suite on every push: calculation invariants, every template against every edge case, and the API. The full design (requirements, architecture, calculation engine, rendering, security, roadmap) is written up in fifteen design documents.
Status
The MVP is deliberately stateless: your invoice and business details stay in your browser. Accounts, a database, client and catalogue management and gap-free invoice numbering are the next milestones.
Built with
Document generation (Typst, LaTeX), Web APIs with FastAPI, Data validation with Pydantic, Web front ends (HTML, CSS, JavaScript), Testing and CI (pytest, GitHub Actions), Python