Skip to content
Sachin Tandon
Work

A private finance tracker in Rust at the edge

A server-rendered web app in Rust, compiled to WebAssembly and running on Cloudflare Workers, replacing a long-running balance-sheet spreadsheet.

Client
Personal project
Sector
Engineering
Location
U.K.
Year
2026
One Rust Worker does everything: Cloudflare's runtime calls it through a small JavaScript shim, and the WebAssembly handles routing, logic, HTML and the database. Revision A marks the Rust.

Context

My finances lived in a large spreadsheet: accounts, dated balances, transfers, and money paid in and out. It worked, but nothing stopped a mistyped figure or a double-counted transfer, and the growth calculations were fragile. I wanted the same picture with the checks built in, private to the two people who need access.

What I did

  • Architecture: a single Rust Worker built with workers-rs and compiled to WebAssembly. Cloudflare’s Workers runtime calls it through a small JavaScript shim, and the Rust handles routing, the domain logic and the HTML for every request
  • Pages: server-rendered with Askama templates, which are checked at compile time, and htmx for partial updates without a front-end framework
  • Data: Cloudflare D1 (SQLite) with versioned migrations, queried from Rust with typed rows
  • Access: Cloudflare Access in front of the app (email one-time PIN), then editor and viewer roles inside it
  • Features: an account register, dated balances and transfers, statement imports with categorisation rules, reconciliation checks, and growth and annualised time-weighted returns by manager and account type
  • Domain types that make an unbalanced entry or an uncategorised line impossible to construct, and exact decimal arithmetic for money

Outcome

The app replaces the spreadsheet. It runs at the edge, has no servers to look after, and catches mistakes the spreadsheet never could. It was built in a few days with AI assistance, with the Rust compiler acting as a fast, strict reviewer.

Tools: Rust, workers-rs, WebAssembly, Cloudflare Workers, D1 (SQLite), Askama, htmx, Cloudflare Access