Full design · Apps
Household budget
Sixpence, a household expense and budget tracker for Australian share houses, couples and families who keep money together.
Live preview. Click around, it works.
About this template
Sixpence, a household expense and budget tracker for Australian share houses, couples and families who keep money together. Overview shows this month's spend against budget, the accounts' balances, what recurring bills are due and a one tap way to log a transaction. Accounts lists every everyday, savings and credit account with its running balance and feed. Transactions is the full ledger: searched, filtered by account, category and who paid, with split transactions divided evenly or by exact amount or share across household members, and a category correction on any row. Import walks a bank export through three steps: paste or drop the file's text, map its columns to date, description and amount, then review the parsed rows, where a likely duplicate against existing transactions is flagged and can be skipped, and correcting a row's category teaches Sixpence a rule that relabels every other matching row still on screen and applies to future imports. Budgets sets a monthly limit per category with unspent amounts rolling into next month, and Bills tracks recurring bills with due dates and a due soon flag, marked paid into the ledger. Report turns a month's transactions into a category breakdown, a spend against budget chart, a cash flow trend and who paid what across the household. Household lists members, shows who owes whom after splits and settles up, and switches Viewing as between the household admin, who manages budgets, bills, categorisation rules, imports and members, and a member, who logs and splits their own spending and never sees or edits another household's money. Settings holds the household's name, contact, currency and where to connect a real backend. All figures are general information, never financial or tax advice, and nothing on screen names a real bank, card scheme or interest rate.
What the agents are asked
The first message sent when you use this template. You can edit the plan before anything is built.
Adapt Sixpence to my own household, share house or family's budget. Keep the seven screens (Overview, Accounts, Transactions with splits, Import with column mapping and duplicate detection, Budgets with rollover and Bills with a due soon flag, Report, Household with who paid what and Viewing as) and keep every working rule: money stored and totalled in whole cents, the CSV import's duplicate detection and the categorisation rules it learns from my corrections, budget rollover, and a household member who can never see or edit another household's money. Replace the accounts, categories, transactions, budgets, bills and household members with mine, keep the sample rows marked Sample and removable in one step, and keep every dollar figure and date fictional, general information rather than financial or tax advice, with no real bank, card scheme or interest rate named anywhere. When I want real sign in and a shared database, wire in the tables and functions schema.sql describes as the README explains, with every secret key kept on the server.
A household expense and budget tracker for Australian share houses, couples and families who keep money together. Log or import transactions, split an expense across the household, set a monthly budget per category with rollover, track recurring bills and see them flagged as due soon, and see a month's spending as charts drawn straight from the ledger.
Built on the NovaBuild template kit (docs/guardrails/TEMPLATE-KIT.md): one CONFIG block, one design token block, and a shared data layer that runs in demo mode with no backend or against a real Supabase project once one is connected, with no code change either way.
Screens
- Overview (
#/overview): this month's spend against budget, everyday and savings balances, bills due in the next 14 days, and the most recent transactions. - Accounts (
#/accounts): every everyday, savings and credit account with its running balance (opening balance plus every transaction against it) and a link into its own filtered ledger. - Transactions (
#/transactions): the full ledger, searched and filtered by account, category and who paid; a category chip on every row opens a quick picker that recategorises the row on the spot. - Import (
#/import, behindCONFIG.features.csvImport): paste or drop a bank export's text (or load a sample export to try it), map its columns to date, description and amount, then review every parsed row before it is added. A likely duplicate against the ledger already on screen is flagged and unchecked by default. Picking a category on a row teaches Sixpence a rule and relabels every other row still in the table that shares the same merchant, live, before the import is even confirmed. Every import is undoable in one action. - Budgets (
#/budgets): a monthly limit per expense category, with an optional rollover so an unspent (or overspent) amount carries into next month. - Bills (
#/budgets/bills, behindCONFIG.features.bills): recurring bills with a due date, a configurable "due soon" window that only changes the colour of its status dot and whether it appears in the Overview's "Bills due soon" list (Sixpence sends no email, push or other notification), and one click to mark paid, which writes the transaction and advances the next due date by the bill's own frequency. - Report (
#/report): a month picker over four charts built from the ledger, inline SVG, no library: spend by category (a donut), who paid what this month, spend against budget by category (bars), and net cash flow for the last six weeks. - Household (
#/household, behindCONFIG.features.splitting): the member roster, a net balance per member from every split expense and settlement ("who owes whom"), and a way to record a settlement. - Settings: the household's name, a read only summary of
CONFIG, categories (added and renamed, never deleted once they can carry history), every categorisation rule Sixpence has learned, and "Remove all sample data".
Viewing as (top bar, always visible) switches between the household admin, who manages accounts, categories, budgets, bills, imports and the member roster, and a member, who logs, edits and splits transactions, corrects categories and records settlements. Both roles see every transaction in their own household; a member can never see or touch another household's money (proved in schema.sql's own VERIFY block against a second seeded household). Turning CONFIG.features.splitting or CONFIG.features.csvImport off removes the toggle's household screen or the import screen and its nav entry entirely, including a direct visit to the address.
Signature function
add_transaction in schema.sql, mirrored exactly by the RPC.add_transaction demo handler in script.js: when nobody chooses a category, it looks up category_rules by the transaction's match_key, a single significant word from the description with digits and noise words (THE, CARD, EFTPOS...) stripped (normalizeMerchant in script.js, the one place that logic lives). Correcting a category on the Transactions ledger or during an import review calls upsert_category_rule, which teaches or updates that rule for the whole household: every transaction added after that, manual entry included, benefits from the same rule with no further action. During an import review specifically, every other unlabelled row still in that review's own table and sharing the same merchant relabels itself immediately, live, before the import is even confirmed; a correction made on the Transactions ledger itself only ever changes the one row it was made on; other Uncategorised rows already on the ledger keep their own category unless corrected individually. The import review also flags a likely duplicate: same account, same amount, within a day of an existing transaction and either the same normalised merchant or the exact same date, unchecked by default so nothing is added twice without the household choosing to.
Data model (schema.sql)
households, household_members, accounts, categories, transactions, transaction_splits, budgets, bills, category_rules, settlements. Row level security on every table, scoped to the caller's own household through sx_household_id() / sx_is_member() / sx_is_admin(). Accounts, categories, budgets and bills are admin writable directly through row level security; adding or renaming a member is too. transactions and transaction_splits carry no insert, update or delete grant at all: every write goes through add_transaction, update_transaction, remove_transaction, import_transactions and undo_import, each a SECURITY DEFINER function that resolves the caller's household itself, checks every account, category and member id it is given actually belongs to that household, and, for a split, that every share adds up to the whole amount. Removing a member goes through remove_household_member rather than a row level security delete, because it also has to clear that member's transaction_splits rows (which carry no delete grant of their own) and refuses a member who still has a transaction on the books, or the household's only admin, with a plain message instead of a raw foreign key error. category_rules is written only through upsert_category_rule, an upsert keyed on (household_id, match_key); household_id is resolved from the caller, never accepted as an argument, and match_key is a merchant key the caller's own household already owns, not another person's email, phone or name, so this does not carry the risk docs/ops/LESSONS.md L35 describes. settlements is the one table written directly (select, insert only, never edited or erased once recorded, the same reasoning as this catalogue's invoicing template's payments); its row level security checks both members named belong to the caller's household in the policy itself, since nothing beyond that needs a function. Money is always an integer number of cents; a transaction's amount_cents is negative for money out and positive for money in.
Sample data
One household (Bellara Street), three accounts, twelve categories, twenty eight transactions across roughly two months, five budgets, seven bills at every frequency Sixpence understands, three categorisation rules already learned, and one settlement, every row marked is_sample: true and carrying SAMPLE_VERSION (script.js). A second household (Yarra Lane) is seeded purely so the functions above have a real foreign row to refuse against; nothing in the interface ever shows it. A returning visitor's own transactions, budgets and members are never sample rows, so a version bump only replaces the sample cast and keeps what the visitor made. Settings has a "Remove all sample data" action that clears every sample row, admin only, in one step.
Going live
- Run
schema.sqlon a Supabase project (rehearsed first withtools/rehearse-template-schema.mjs, never applied directly). - Set
CONFIG.backendinscript.jsto{ mode: 'supabase', url: '<project url>', anonKey: '<anon key>' }. The anon key is public by design; row level security is the actual boundary. Never put aservice_roleorsb_secret_...key here; the kit refuses to start with one and the checker refuses to publish a template that contains one. - Call
sx_create_household(householdName, memberName)for the first signed in user to provision their household and make them its admin; this template's UI does not include a "create my household" form yet, so that first call is made by hand (or from your own sign up flow) rather than through a screen. - Everything a customer would change (brand, contact details, currency, which screens are on) comes from
CONFIGat the top ofscript.js. Colours, fonts, radii and spacing come from thenova:tokensblock at the top ofstyles.css.
What is not built yet
- A "create my household" screen: the database already supports it (
sx_create_household, see "Going live" above), the template's UI just does not offer the form yet. - Inviting a member by email: today "Invite a member" on the Household screen adds a named row with no login of their own; wiring a real invitation (and matching it to
auth.uid()on their first sign in) is a follow on piece of work. - Account transfers: moving money between two of the household's own accounts is not modelled as its own transaction type today; log it as a matching expense on one account and income on the other if you need one.
- The CSV column mapping is by position, guessed from the header row or the data's shape when there is none; it does not remember a mapping between imports from the same bank, so a household importing regularly will map the same three columns each time.
Honesty
Sixpence, Bellara Street and Yarra Lane, and every account, transaction, category and person in them are fictional, for demonstration only. Every figure is general information about the household's own sample books, never financial or tax advice, and nothing on screen names a real bank, card scheme or interest rate.
Art direction
One shoot, one grade: warm late afternoon window light, real shadow falloff, natural skin texture with no airbrushing, a plain warm plaster wall behind each person, matched from opposite sides of the frame so the two portraits read as one sitting. No text, no logos, no branded surfaces in either frame; each photograph shows one person, used once each, as the two household members' avatars on the Household screen.