POLI, Matthew Alexavier Polii, home

MONO

A personal finance app that keeps one running statement of your money in the browser, every figure computed from your rows.

05Budgeting, ledgers and charts

MONO’s Spending by category band in its light theme. On the left, a large outlined circle for Housing with smaller filled circles for Dining and Groceries beside it and a tiny one for other categories. On the right, a ledger lists each category with what was spent, its budget and what is left, with a thin meter under each figure and Shopping marked over. Below is a bar chart of spending day by day for November, with a dotted line for the daily average.
The Financial Orbit beside the ledger of the same figures. Shown on the app’s demo data.

Project facts

Category
Finance
Platform
Web, in the browser, offline
Status
Completed
When
October 2026
Built with
Next.js, React, TypeScript, Dexie and IndexedDB, Zustand, Zod, Vitest, Playwright

What it does

MONO keeps a ledger, budgets that carry forward from month to month, savings goals and the analytics that follow from them, all stored in the browser. Its Financial Orbit draws each category as a circle sized by its share of the month.

  1. 01

    Financial Orbit

    Each spending category is a circle sized by its share of the month, beside a ledger of the same figures with a meter for every budget.

    MONO’s Spending by category band in its light theme. On the left, a large outlined circle for Housing with smaller filled circles for Dining and Groceries beside it and a tiny one for other categories. On the right, a ledger lists each category with what was spent, its budget and what is left, with a thin meter under each figure and Shopping marked over. Below is a bar chart of spending day by day for November, with a dotted line for the daily average.
    The Financial Orbit beside the ledger of the same figures. Shown on the app’s demo data.
  2. 02

    Ledger with quick add

    Type “coffee 4.50 dining” or “+3200” and the row is previewed before Enter. The month’s ledger is grouped by day with a running balance, upcoming recurring rows are marked Scheduled, and changes can be undone.

    The Transactions screen for November 2026. A summary at the top right gives spent, income and net. Below are filter pills for all, income, expenses, transfers and category, a search field, and a quick-add field holding the words coffee 4.50 dining. The ledger lists rows by day with merchant, category, amount and running balance; several upcoming payments are marked Scheduled and their amounts read as due.
    The ledger, with a row typed into quick add. Shown on the app’s demo data.
  3. 03

    Budgets that carry forward

    An allocation applies from the month it is set until the next change, can roll over what is left, and explains its carry month by month. A Move money dialog previews the result first.

    The Budgets screen for November 2026. A large figure gives what is left in budgets, with a sentence saying Shopping is over by an amount carried in from before November. Two short tables follow: one reconciles that figure from allocated, carried in, available, spent and left; the other runs from income through allocated to unallocated, then spending outside budgets, money moved to goals and the available balance. Below, a list of allocations by category, each with a meter, its budget, what was spent and what is left, and Shopping’s meter in red.
    Budgets, with the carry from earlier months reconciled on screen. Shown on the app’s demo data.
  4. 04

    Analytics

    Spending, income, net and savings rate over 3, 6 or 12 months or everything on record, compared with averages over complete periods, with notes on what changed and the largest expenses.

    The Analytics screen. Tabs for spending, income, net, savings rate and income against expenses, and range buttons for 3 months, 6 months, 12 months and all, with 6 months chosen. A large figure gives spending for 1 to 4 November against the same days of October. A bar chart shows dark bars for June to October and an outlined bar for November so far, with a dotted line for the average. Below are the headings What changed and Largest expenses.
    Six months of spending, with the month in progress drawn open. Shown on the app’s demo data.
  5. 05

    Savings goals

    Goals with an optional date, funded by transfers out of the available balance, each with its status, a projection and its history of contributions.

    The Savings goals screen. A large figure gives the total saved across three goals, with a sentence on where each one stands. Two goals are shown in full, Emergency fund and Japan in spring, each with its saved amount, target and remaining amount, a meter, a line saying when it will be reached at its current rate, a field to add a contribution, and its last three contributions.
    Savings goals and the transfers that fund them. Shown on the app’s demo data.

The problem

MONO starts from two questions: how much money do I have, and how is this month going? An answer only helps if you can see where it came from. A balance you cannot trace back to the rows under it has to be taken on trust.

MONO's design file names what it set out to differ from. It describes Copilot as a home of reorderable sections and a To Review inbox behind a bank connection, and YNAB as category groups under a Ready to Assign header across accounts. MONO's premise is narrower: every entry comes from the one person reading it, and the month is the whole unit of reading.

Why I built it

MONO began as a brief. Its own documents state the purpose plainly: a local-first personal finance app for one person, keeping one running statement of your money in the browser.

The README sets the rule the rest follows. Every figure on every screen is computed from the rows; nothing is estimated or invented, nothing is predicted as fact, and nothing leaves the browser. The brief ruled out the look of a generic finance dashboard and any number the ledger does not hold. There is no server, because nothing needs one, and no bank connection: rows are typed in or imported from a CSV file.

Design

The idea is one sentence in the first section of the design file: one person's month becomes a single running statement page, ruled, dated and totalled like paper, with the Financial Orbit as its one illustration. The Financial Orbit is a chart inside MONO and has nothing to do with my transfer planner, Orbit.

A page in place of a dashboard

There are no cards, panels or sidebar. A 48 px top bar sits over one centred column, and ruled bands with right-aligned figures carry the structure. Every final total closes on the accountant's double rule, and the wordmark sits over the same rule, so the mark comes from the statement and no logo had to be invented. The Transactions ledger keeps a running balance column, which gave the direction its name.

One superfamily, one large figure

Words are in IBM Plex Sans and figures in columns are in IBM Plex Mono, so a label and its figure sit on one baseline. Overview, Budgets, Analytics and Savings goals each have a single display figure, set in Plex Sans Light, because a large mono figure opens gaps at its punctuation.

Colour stands for a fact

The ground is a warm neutral, with a dark theme and a paper light theme, and the app follows the device by default. Sage marks money that is yours. Red marks a fact that is over, once per fact: a red row, a red ring and a red total for one overspend would say the same thing three times.

Money that is not real yet

Demo, scheduled and upcoming rows carry no colour at all, only a dashed outline and the word. The first build gave them lavender. I dropped it on 29 October because a fourth hue broke the warm neutral palette. A row dated after today counts in no figure.

The Orbit and its ledger

Each spending category is a circle whose area shows its share of the month, and the smallest fold into one circle for the rest. Circular area is the weakest encoding people read, so the circles never stand alone: a real table beside them holds the same figures. Selecting either narrows the ledger, the spending chart and the recent transactions to that category. Flexible categories are tinted and fixed costs are outlines, since that money is already committed.

How it works

MONO is a Next.js 16 app in TypeScript and React 19, with every route prerendered as a static page. The static page holds the shell and a skeleton of each screen, and each section then reads its data in the browser. The data lives in IndexedDB through Dexie, so the app works offline and sends nothing anywhere.

One Zod schema per record is the contract for forms, CSV import, the backup file and the database. Amounts are integers in the currency's smallest unit from end to end. Pages read data through one layer and compute through one library of pure functions, each with a unit test. A component prints what its page model returns and never sums amounts itself, so a changed row reaches every screen through a live query, with no stored total to go stale.

Libraries do the general work: Dexie for storage, Zod for validation, Zustand for interface state, date-fns for dates, Papa Parse for CSV and Motion for React for movement. The charts are hand-written SVG. The Orbit's layout is a pack written for MONO: the largest circle sits at the centre, and each next one takes the touching position that keeps the pack smallest for the shape of its stage.

The quick-add field is a small parser that reruns on every keystroke. Type "coffee 4.50 dining", or "salary +3200" for income, and it previews the row before Enter. A budget is an allocation that runs from a start month until it is ended or replaced. With rollover on, its carry is the signed remainder summed over the category's unbroken run of earlier months, each month at its own allocation.

Every write and its change log entry are one transaction, and Undo is built on that path. This wrapper runs the writes together and journals each row as it was before and as the action left it:

export async function withUndo<T>(work: () => Promise<T>, d = db()): Promise<{ result: T; undo: UndoRecord }> {
  const journal = new Journal();
  const result = await d.transaction("rw", d.tables, async () => {
    const tx = Dexie.currentTransaction;
    if (tx) journals.set(tx, journal);
    const out = await work();
    await journal.seal(d);
    return out;
  });
  return { result, undo: journal.record() };
}

Undo then puts back the same rows with the same ids. It refuses, with a sentence and nothing written, when a row has changed since the action, so an older Undo cannot overwrite a later change.

How I built it

I build with AI coding agents. MONO was built with Claude Code, and every commit after the Create Next App starter is co-authored with Claude. The design file records the decisions as the owner's, which means mine: the typeface, the wordmark, what the Overview leads with, the themes. The code was written with the agent inside those decisions.

The direction came before the code. On 27 October three written proposals sat side by side: the Running Statement, Orbit Field and Paper Envelopes. I had them scored under three review roles, a studio director, a rules auditor and a product engineer, and all three put the Statement first. Ideas worth keeping from the other two were carried over and marked as grafts in the design file.

The first build landed as one commit on 29 October: six sections, a design file, an architecture document, unit tests, and Playwright runs on a 1440 px desktop and a Pixel 7.

The same day I asked for a refinement of that build, not a rebuild: more editorial and precise, dark and warm, with accuracy and data safety above everything else. It landed on 30 October after an audit of the first build, with no feature removed. Spline Sans and Bodoni Moda gave way to IBM Plex, and every calculation change came with a test that failed before it.

Two kinds of check hold the result. A conformance test fails when section code leaves the type roles, the tokens or the 4 px spacing scale. Playwright checks the house rules: one h1, no overflow from 320 to 1440 px, 44 px targets, visible focus and reduced motion.

What was hard

Comparing months fairly. A month in progress set against a whole month always read as spending less, and days before the ledger began looked like days with no spending when nothing had been recorded. A running month now compares with the same days of the month before, averages use complete periods only, and a baseline that starts before the first record is not compared at all.

Keeping the carry through edits. The rollover was first tied to one stored row, so Move money, an amount edit or End then Undo could split that row and lose the carry. It now walks the category month by month. The same audit found that saving a past month's budget deleted a later month's own allocation without saying so; a save now stops at the next allocation and names the months it covers.

Reading numbers the way people type them. In a locale with a decimal comma, "4,50" became 450. Every field now reads the locale's mark, and a figure with its marks the wrong way round is refused.

Removing demo data without removing anything else. Remove demo data used to delete rows the owner had typed or adopted. A demo row you edit now becomes yours and stays, and the removal can be undone.

Knowing what month it is. Every route is prerendered, so a module that read the clock during the build would bake that month into the page, and a browser in a later month would open on the wrong one. The month now comes from the browser, and a check after each build fails if a prerendered page carries a shown month.

Where it stands

Completed, as a local build. Overview, Transactions, Budgets, Analytics, Savings goals and Settings all work. It has never been deployed and the code is only on my computer, so there is no link and nothing to try online. Every amount in the pictures on this page comes from the app's demo ledger: synthetic rows seeded for display, and none of it is my money.

The data lives in one browser, which can clear site data, so Export JSON is how to keep a second copy. A ledger has one currency, and months are calendar months with no pay period start. The per-day figure under Left to spend divides by the days after today, so it doubles on the month's second to last day.

The architecture document sketches a sync: the same tables on Supabase, with the change log pushing rows since a cursor. None of that is built, and nothing in the project sets a date for it. As of October 2026.

What I learned

I learned that a figure can be computed correctly and still mislead. A month to date against a whole month was right as arithmetic and read as good news every time. Naming the baseline, and declining to compare when there is none on record, fixed what the sums could not.

I learned that Undo needs a rule for when to refuse. Putting rows back is the easy part. The case that loses work is an older Undo landing on a newer edit.

I learned that demo data needs rules of its own: a visible mark on every row, and a removal that knows which rows have since become real.

I learned what an automated design check can tell me. A conformance test shows that nothing off the system was drawn. Hierarchy and proportion still have to be judged by looking at every width in both themes.

Let’s talk