Tathagat Agrawal

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.

October 2026 · MVP complete · Source on GitHub

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

The Invoice Generator editor. On the left is a form for the invoice details, with tabs for Details, Items and totals, and Style. On the right is a live preview of the finished sample tax invoice from Acme Studio LLP to Globex Technologies, with line items grouped into Design and Production sections and the tax breakdown below.
Figure 1. The editor: a form on the left and, on the right, a preview that is the real PDF, redrawn as you type. The companies are the app's built-in sample data.
The Style tab of the Invoice Generator, showing the nine invoice templates as thumbnails: Meridian, Plain, Brief, Ledger, Heritage, Atelier, Monolith, Slate and a ninth below. Heritage is selected, and the preview shows the same invoice in a cream old-style bill-head design with serif type and a dark red border.
Figure 2. Nine templates, each a click away. The same invoice in Heritage.

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