On This Page
Designing Around a Real Zero-Budget Constraint
Community treasurers managing monthly Shodaqoh Bulanan across eight allocation posts (Infak IR, Uang Sambung, Jimpitan, Siar-Siar, Seribuan, Kafan, Ukhro MT, and Dana Kesehatan) already trusted Google Sheets as their permanent archive and had no budget for recurring VPS or managed PostgreSQL hosting. Kas Latukan wrapped that existing spreadsheet inside a mobile-first vanilla JavaScript frontend talking to a lightweight Google Apps Script JSON endpoint.
Zero monthly hosting cost built directly over existing Sheets
Skipping unnecessary VPS complexity when community ops need simplicity and reliability.
Vanilla JS Web App
Minimal client bundle loads fast and scans cleanly in dark mode on budget Android phones.
Google Apps Script
Handles allocation formulas and returns clear sync timestamps (e.g. tersinkron 10.04.47).
Community Google Sheet
Stores 295+ live records transparently in a format treasurers already own and trust.
Proportional Rules & Mistake-Safe Rollbacks
Tracking 295+ production transactions (Rp 98.940.000 inflow and Rp 97.442.000 outflow from January to August 2026) required guardrails against human posting errors rather than complex server clusters:
- Explicit sync visibility: because Apps Script cold calls take roughly
400-800ms, the top bar displays an honest timestamp (tersinkron 10.04.47) instead of optimistic lies. - Staged ledger commits: collection status (
LUNAS 21 / BELUM 9) stays editable until an admin taps Posting ke Kas Utama, paired with a one-tap Batalkan Posting rollback state so totals never drift if an entry was posted too early.
export interface ShodaqohBreakdown {
infakIr: number;
uangSambung: number;
jimpitan: number;
siarSiar: number;
seribuan: number;
kafan: number;
ukhroMt: number;
}
export function allocateWithHealthFund(input: ShodaqohBreakdown) {
const danaKesehatan = Math.round(input.uangSambung * 0.2);
const netUangSambung = input.uangSambung - danaKesehatan;
return { danaKesehatan, netUangSambung };
}Knowing When to Graduate Off Apps Script
Apps Script worked cleanly for single-treasurer workflows under zero server cost. Once community needs expanded to strict RBAC (SUPER_ADMIN, TIM_KU, TIM_ABSENSI), QR member registration, and relational constraints in Sambung Ngaji, migrating cleanly to Go Fiber + PostgreSQL was the clear boundary.