Skip to content
InvoiceLens
Interactive demo, simulated data

GST invoices in. Checked, schema-locked JSON out.

InvoiceLens reads Indian GST invoices from PDFs, scans and phone photos, checks every number against GST rules, and sends only the doubtful ones to a person.

Designed around
Next.jsReactTypeScriptTailwind CSSFastAPIPydanticPostgreSQLRedis and arqSeaweedFSCaddyRapidOCRClaude APIAzure OpenAIvLLMQwen3.5-2B with LoRAMLflowOpenTelemetryDockerPlaywrightNext.jsReactTypeScriptTailwind CSSFastAPIPydanticPostgreSQLRedis and arqSeaweedFSCaddyRapidOCRClaude APIAzure OpenAIvLLMQwen3.5-2B with LoRAMLflowOpenTelemetryDockerPlaywright
How it works

From a photo of an invoice to data you can book

Four steps, and only the last one ever needs a person.

Send an invoice

A PDF, an office scan or a phone photo. Pages are rendered and straightened before anything reads them.

Read it into a GST schema

A model fills a typed schema: parties and GSTINs, place of supply, line items, tax totals. The e-invoice QR code is decoded too.

Check it without a model

Deterministic rules check GSTIN checksums, tax logic, arithmetic and the QR. Failures go back to the model once.

Approve or ask a person

Clean, confident invoices are approved on their own. The rest wait in a review queue, least confident first.

What it does

Built for the invoices people actually send

Tally prints, signed e-invoices, coffee-stained photocopies and phone photos in bad light.

Pydantic

Schema-locked output

Every invoice comes out in the same typed shape, as JSON or one CSV row per line item, ready for an accounting system.

Validators

Rule checks, not vibes

GSTIN checksum and state code, intra- versus inter-state tax, arithmetic within one rupee, HSN, dates and IRN format.

Repair

One repair pass

Failed checks go back to the model with the reasons. The second answer is kept only if it has fewer errors.

Review

A review screen built for speed

The page beside the form, flagged fields first, the same rules re-run as you type, and keyboard shortcuts for the queue.

Backends

Swappable backends

Claude, Azure OpenAI, OCR plus an LLM, a fine-tuned open model, or a free offline one, all behind one interface.

Flywheel

Corrections become training data

Approved corrections are exported as gold labels for the next fine-tune. Demo uploads are never used.

Under the hood

How the full system is designed

The public demo runs on simulated data. This is the architecture of the real product it replays.

InvoiceLens architectureBrowserNext.js review UIAPIFastAPI behind CaddyQueueRedis + arqPostgresSeaweedFS filesWORKER PIPELINErenderextractQRvalidaterepair oncescorerouteModel backendsClaude, Azure, OCR+LLM, fine-tuned VLMApproved corrections feed the training loop.
How the full system is designed. The public demo on this site runs none of it: it replays recorded pipeline runs in your browser.

Rules decide, models propose

A model only drafts values. Whether an invoice is approved depends on deterministic checks and a confidence score, so a confident wrong answer cannot slip through on its own.

Repair once, then stop

One retry with the failing checks fixes most misreads. A second retry costs money and rarely helps, so anything still wrong goes to a person.

One interface for every backend

The pipeline, prompt, validators and repair loop are shared, so a frontier API and a small fine-tuned model can be compared on equal terms.

Measure before claiming

A benchmark harness scores every backend on held-out invoices. Until a paid run happens, no accuracy or cost number is published.

FAQ

Questions, answered plainly

Is this real?

The product is real: a full-stack app with a FastAPI backend, workers, a model pipeline and a review UI. This public site is a static demo of it. The walkthrough and the Explore workspace replay the real pipeline's recorded output on synthetic invoices, in your browser.

Can I use it?

Not as a hosted service. Sign-ups are closed, and the Explore workspace is a read-only sandbox: you can process samples, correct and approve invoices and export them, but nothing is saved and a reload resets it.

What does it cost to run?

This demo costs nothing to run: it is static files with no backend. The full system costs whatever its model backend costs per page; that is what the benchmark is designed to measure, and no paid run has been done yet.

Are there accuracy numbers?

Not yet. The only measured result is a small OCR engine pilot on 50 synthetic invoices, shown with its provenance on the benchmark page. Accuracy and cost per invoice appear only after a recorded run.

Are these real invoices?

No. Every company, GSTIN and amount is synthetic, generated from templates that imitate real Indian invoices, and marked with a Synthetic badge.

Who built it?

Tiju Lukose, as a portfolio project. The About me link has more about the work and how to get in touch.

Built by Tiju Lukose

InvoiceLens is one of a set of portfolio projects. The About me page has the others and how to get in touch.