Indizilla
The client operations platform behind a marketing agency — orders, jobs, billing, credits, and referrals, running on one Postgres database instead of spreadsheets and a shared inbox.
// The product




An ordering system, not just a website
A marketing agency doesn't just need a homepage. It needs a place where a client can order work à la carte, a place where that order becomes a tracked job with a due date, an invoice that generates itself, and a way to reward referrals without a spreadsheet quietly going stale. Indizilla is that system: a static client-facing frontend backed by a single Postgres database that owns every one of those steps.
The data layer does the enforcing, not the frontend
The client platform covers a dashboard, à la carte ordering, an admin console, and tracked jobs, bills, credits, and referrals. One data module (js/db.js) exposes a single API that runs against either Supabase (when a real key is configured) or local storage in demo mode — so the same frontend runs standalone before a client's account even exists.
The important decision is where the trust boundary sits. Reads come from an in-memory cache filled once at init; writes go through Row-Level Security policies and a small, named set of security-definer Postgres functions. A client's browser can never write a job or an invoice table directly. Placing an order triggers server-side creation of both the job (with its due date) and the invoice (INV-year-seq), and every coupon or credit balance is re-validated in Postgres at order time: the client-side math is display only, never the source of truth.
Admin rights are enforced the same way: by row-level policy in the database, not by a role check in the frontend that a client could work around.
Running client work, and still being hardened
Checkout runs against Razorpay; Google sign-in is wired through Supabase Auth rather than hand-rolled, with the OAuth exchange handled entirely on Supabase's side of the boundary. The payment path is being tightened, and the specifics of what is and is not yet in place live in the project's own records rather than on a public page — a running storefront is not the place to publish its own soft spots.
- Treat a payment as confirmed only once the server has verified it, and build that in the first week rather than the first quarter. Shipping the happy path first is how a gap becomes a habit.
- A demo mode that falls back to the browser was right for early iteration, but it needs a build-time check that fails loudly rather than a note in someone's head. A fallback nobody can see is the one that survives into production.
Scope of this entry.This page documents the platform architecture only: database design, payment flow, and auth. It intentionally doesn’t describe Indizilla's marketing services or brand positioning, since that content hasn't been written up yet.
Status. Live at indizilla.com, running client work daily.