PDF invoices → Peppol Work project, 2025.
Why it exists Bookkeepers working in Visma Horizon were typing supplier invoices in by hand from PDFs, in any layout and in Latvian or English. Horizon already imports structured e-invoices, so this internal tool turns the PDF into one and the data entry becomes a quick review.
Technology A Python FastAPI service with two steps. Extraction sends the PDF to a vision model (Gemini or Claude, whichever is configured) and gets back strict JSON. Every number comes back as a string copied exactly from the page, never rounded or recalculated. The model is the only unreliable part, so it is kept separate from everything that has to be exact.
The model reads the line items and the invoice’s printed totals independently. The backend then checks that quantity × price matches each printed line total, and that the lines add up to the printed net, VAT and grand total. A misread digit almost always breaks that sum, so instead of slipping through, the suspect line is highlighted in red on the review screen.
The XML is built by a dependency-free, deterministic builder for Peppol BIS Billing 3.0 (UBL 2.1, EN 16931). It works in decimals throughout, groups multiple VAT categories (standard, reverse charge, zero-rated, exempt), and rounds lines with a running balance so they sum exactly to the document total, with no few-cent drift. It checks the EN 16931 calculation rules before download, and addresses the recipient the way Horizon expects, which was worked out by testing against Horizon itself.
The React, Vite and Tailwind frontend lets the bookkeeper review and correct every field next to the source PDF. It re-runs the same totals check live while they edit, and is translated into English and Latvian. It also handles the free-tier backend waking up from sleep: a status log while it starts, and automatic retries that only cover the startup errors, never a real extraction failure.
Tech stack Python, FastAPI, Gemini / Claude, Peppol BIS 3.0, React, Vite, Tailwind
Why it exists Users needed to hide sensitive details in images, such as names, numbers and faces, before sharing them. A rectangle doesn’t fit most of what needs hiding, so I built a freeform blur tool and had full responsibility for it, from the interaction to the state model.
Technology Built in Next.js and React on the Canvas API. The user clicks to place points on the image; they connect automatically into a closed shape, and the area inside is filled with a Gaussian blur as it is drawn. Each point can be dragged to reshape the area, and the whole blurred shape can be dragged to move it.
State management was the core of it. The points and shapes live in Redux, not in the canvas, so the canvas is only ever a render of the current state. That made undo and redo straightforward: every edit, whether adding a point, dragging one or moving a shape, is a step in the history that can be stepped back and forward.
Tech stack Next.js, React, Redux, Canvas API
ZuzeLabs Personal project, 2026.
Why it exists Many research labs track their chemicals manually in Excel: which bottles they have, where they are, when they expire and how hazardous they are. ZuzeLabs replaces that sheet. I built it as a startup MVP and presented it to a Latvian university lab (CIF), whose labels and sheets mix Latvian, Russian and English. The lab’s one hard rule shaped everything: nothing in the inventory is guessed.
What it does The lab’s existing spreadsheet is imported and cleaned up honestly: every value is marked as recorded, estimated or not recorded, and whatever needs a person goes on a “Needs review” list instead of being filled in. The import commits in one database transaction and can be undone.
The live inventory shows expiry alerts, totals against the EU Seveso hazard thresholds, and safety data sheets uploaded as PDFs, with hazards, protective equipment and properties copied out as printed. Text PDFs are parsed by code; only scanned ones go to the model. Consumables have their own stock and reorder list.
Email sign-in with admin, member and viewer roles is enforced by Postgres row level security on every table, so one lab can never see another’s data, and an append-only audit log records who changed what. pgTAP tests run inside Postgres on every pull request: they sign in as users from different labs and prove that outsiders see nothing, that members can’t make themselves admin, and that a lab can’t be left without an admin.
Scanning a label The scanner is phone first. In live camera mode the browser checks each frame several times a second for sharpness, glare, motion and rows of printed characters, and captures by itself once the label is readable. The check is plain pixel maths, tuned on the lab’s real label photos rather than guessed, and counting rows of characters is what stopped it auto-capturing mugs and keyboards.
Claude transcribes the label, and GS1 barcodes are decoded on the phone with zxing-wasm. A barcode is exact where printed text is not, so for expiry, lot and catalogue number it confirms the label, fills a gap, or wins a disagreement and flags it for a person to check.
A scan never fills in a CAS number by itself. The substance is looked up in ECHA, the EU chemicals agency, and shown next to the label on an “Is this it?” card that a person confirms. If the label has a CAS number, only that number is looked up and any disagreement with the label’s name or formula is shown. Solutions like “HCl 37%” are recorded as their main component and flagged.
Finally the scan is matched to the inventory, down to the exact bottle by lot number. Nothing is written until the person picks new substance, new bottle or this bottle and saves; every value records where it came from: the label, the barcode, ECHA or a person.
Tech stack Next.js, TypeScript, Postgres, Vision LLM (Claude), zxing-wasm, ECHA CHEM, pgTAP, Vercel
Why it exists A personal project to get properly fluent in React: a real third-party API, real state to manage and a real UI to make responsive, with no tutorial to follow.
State with the Context API A single StateManager class component holds the whole app state and passes it down through React’s Context API, along with the actions that change it: the current page, the favourite coins, prices, chart history, the selected coin and time range. Components read it with Context consumers, so nothing is passed down through props.
Favourites and the selected coin are saved to localStorage. A first visit opens on the coin picker, and later visits go straight to the dashboard. lodash handles the list work (adding and removing favourites, capped at ten).
Data from CryptoCompare The coin list, live prices and history all come from the CryptoCompare API through its JavaScript client. The historical endpoint returns a single price per call, so each chart fires ten requests in parallel with Promise.all, using Moment.js to step back by days, weeks or months. The results go into a Highcharts series with a custom theme. Prices are fetched coin by coin with their own error handling, so one failing coin doesn’t blank the dashboard.
Search and UI Search fuzzy-matches against both ticker symbols and full coin names across the whole coin list, debounced with lodash so it doesn’t refilter on every keystroke. The UI is styled-components with shared style tokens and CSS grid layouts adjusted for mobile, bootstrapped with Create React App and deployed to GitHub Pages.
Tech stack React, Context API, styled-components, Highcharts, Moment.js