STR LEDGER
Node scripts that generate a ledger-first short-term-rental workbook with formula-driven category rollups, plus a rate-limited keyword research tracker.
A rebuildable workbook: change the code, regenerate, verify.
// problem
Spreadsheets built by hand drift. Formulas break and categories go out of sync.
// limitations
- Output must open in plain Excel.
- Research must respect rate limits.
// infrastructure used
- ExcelJS builds the whole workbook from code: bookings, expenses, monthly rollups.
- A verification script recalculates formulas to catch errors before the file ships.
- Keyword research runs on a strict daily cap and never estimates a missing value.
// lessons learned
- 01Generated formulas had no values.
The workbook library writes formulas but never calculates them, so I recalculate every sheet with a separate engine and compare against an independent calculation.
- 02Dates broke the recalculation.
Date cells had to be converted to spreadsheet serial numbers before the formula engine would read them correctly.
- 03Average daily rate is easy to get wrong.
Free sheets often include cleaning fees in the rate. Each metric is defined explicitly, and the verifier checks five key numbers by hand.