Two small tools, both MIT licensed

I build things that fit in one file and keep working after the service behind them shuts down. No account, no paywall, no telemetry.

Runs offline No dependencies Source included MIT licensed
A generated A4 invoice: Northbridge Studio billing Meridian Trading Co., $295.00 total
Documents

PDF Template Generator

Fill a form, get a print-ready A4 PDF. Invoices, quotes, receipts, delivery notes. Exact millimetre geometry — 794 × 1123 px at 96 dpi is precisely 210 × 297 mm.

  • One 14 KB HTML file. Runs in any modern browser, offline.
  • No layout drift: fixed columns, amounts stay right-aligned.
  • Client names, addresses and prices never leave your machine.
  • Plain HTML, CSS and JavaScript, commented.
Games

Match3 Canvas Engine

A hand-written 2D match-3 engine. Pure Canvas 2D — no game engine, no third-party libraries, no image assets. Every gem is drawn by code.

  • 1,430 lines, 21.5 KB total, 61 automated tests passing.
  • Logic and rendering fully decoupled — drops into any project with no build step.
  • Three write-ups on the bugs that cost the most time are below.

Writing

Why your HTML invoice prints wrong
Seven layout defects that hit every HTML-to-PDF invoice — table headers vanishing on page two, totals splitting across a page break, A4 printed as Letter — each with the CSS that fixes it.
Blank pages and empty boxes
Why headless Chrome loses its fonts in a container: what each missing package produces, why fontconfig is the one you cannot skip, and the one-line fix.
The three pitfalls of match-3
The _hasPossibleMove() that forgets to swap back, the shuffle that produces another dead board, and gem types compared by raw RGB distance.
Canvas 2D performance notes
Where the frame budget actually goes when you draw hundreds of shapes per frame, and which optimisations were worth the complexity.
Publishing to WeChat Mini Games
What changes when a browser game has to run inside a mini-game runtime, and what to fix before submitting for review.

Free, and staying free

MIT licensed, no paywall, no account, no telemetry. If it saved you an afternoon and you want to send something, this ETH address reaches me directly:

0x4d650f11f92A97E87f139401D26bB0e74d4691B5

Ethereum mainnet. Verify it on-chain before sending — nobody will ever ask you for a seed phrase.

Also: a short list of tools I actually use — including RustChain and BoTTube.

Writing: why webhook retries create duplicates, and the only ordering that fixes it · why HTML invoices print wrong · why headless Chrome PDFs lose fonts