--- title: RATIO created: 2026-10-16 03:28 updated: 2026-11-23 14:22 revision: 3 author: Auriea summary: add the app icon --- [[TROY]] RATIO (Latin, "reckoning, account") — a studio ledger for expenses and business travel, kept one tax year at a time. Log what was spent and why, log the trips, link the two, and hand the year to the accountant as a single CSV. [[thumb:Ratio-Icon|160px]] [[thumb:Ratio-Ledger|800]] *(sample entries, not a real year)* Live at **https://auriea.art/ratio/**, made to be added to the iPhone Home Screen (Safari → Share → Add to Home Screen), where it opens full screen with its own icon: a dark ledger page with a brick-red margin rule and a paper-coloured Fraunces "R". ## What it does - **Expenses** — date, vendor, category, amount and currency, an optional trip, and a note on what it was for and why it's a business cost. Eleven categories: supplies & materials, travel, studio & rent, software & subscriptions, fabrication & printing, shipping, professional services, food, tickets, medical, other. - **Editing** — every expense and every trip has Edit beside Delete. It opens the same form, filled in; saving changes the entry in place, so its trip links and the CSV are unaffected. - **Receipts** — "Add photo or PDF" on the expense form (camera, photo library or Files on the iPhone). Photos are shrunk to 2200 px; PDFs are kept as they are. A Receipt link on the row opens them full size. - **Currencies stay as paid** — EUR, USD, GBP or other, recorded as spent, and never added together: the totals strip, each trip card and the CSV give one total per currency. - **Trips** — destination, dates and business purpose; each trip shows what its linked expenses cost in each currency. Removing a trip keeps its expenses. An expense in early January can still belong to a trip that began in December. - **One year at a time** — the year picker filters everything; the table filters by category or by trip. - **Export CSV** — the year's expenses with their trips and purposes, then the totals, then the trip list, in one file. On the iPhone and iPad it opens the share sheet (Save to Files, Dropbox, Mail); elsewhere it downloads. The look is a ledger book: Fraunces and Inter, warm paper, hairline rules instead of cards, brick red for categories and verdigris — bronze patina — for trips. Light and dark. On a phone each expense is a two-line card. ## Works offline The fonts and the icon are inside the page and a service worker keeps a copy, so it opens and saves with no connection. Network first, so a new version shows the next time it is opened online. ## Dropbox Connect Dropbox (the bar above the footer) and RATIO keeps its records in **Dropbox → Apps → RATIO**: `ratio-data.json` (all expenses, trips and removals) and `receipts/`. It is an App-folder app, so it can see only its own folder. It syncs a moment after each change, on opening, and when the connection returns; offline it waits. Each device merges what it finds: the newest edit of each entry wins, a deletion is remembered so it doesn't come back from another device, and nothing local is ever replaced wholesale. Receipts are only ever added in Dropbox, never deleted there. Without Dropbox everything stays in the device's own storage, and the CSV is the backup. The Home Screen app keeps storage separate from Safari, so connect from the app. ## Not yet No conversion of currencies into one year-end total. The receipts and Dropbox sync are new (2026-11-17) and have not yet been tried on her phone. Lives in TROY/RATIO (`index.html` + `sw.js`), on GitHub as orija/ratio; history in its DEVLOG.md. It began as a Claude.ai artifact called *Ledger*. [[tag:ai]]