Svelte Accounting Agent Uses a 10-Second Undo Timer Instead of Polling to Save Database Compute
A developer's open-source bookkeeping agent, svelte-accounting-agent, holds each approved transaction for 10 seconds so a reviewer can undo it before the ledger is written. Polling the database every second would consume about 182.5 CU-hours monthly, exceeding Neon's Free plan allowance of 100 CU-hours before any requests are served. The project instead arms one timer per company at write time for the earliest deadline, stored in the database row so a lost timer results in a late commit rather than a lost one. The author notes drawbacks: the timer path lacks its own test, a deploy could stretch the window to about 40 seconds, and cold-start timing remains unmeasured. The repository, pushed to GitHub in November 2026, codes bank and card transactions to QuickBooks accounts for a small resale business and never writes without recorded human approval.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in