01 OWN PRODUCT · LIVE · 2026
Rehaul
A resale shop for unopened PR products, where the database is the backend.
Creators get far more PR boxes than they can use. Rehaul sells those products at about half of MRP, keeps the seller anonymous, and handles payment over UPI and WhatsApp. I built the shop, the admin panel and the operations around it.
There's no app server. Every rule that has to be trusted lives inside Postgres, so it holds whether a change comes from the admin panel, the SQL editor or a script that doesn't exist yet.
- No double selling by construction: a partial unique index allows one active order per listing, and the listing row is locked
FOR UPDATE. - RLS on every table. The public key can read two views and call four functions, each validated and rate-limited per IP.
- History doesn't move. Fee % and shipping are snapshotted per order, so payouts never get rewritten.
- Six analytics views feed the admin dashboard. CI runs 74 tests, and a weekly job takes an encrypted backup.
PostgreSQL · Supabase · RLS · pgTAP · Vanilla JS · Vite · Cloudflare Pages · GitHub Actions
Open live site code private · happy to walk through it


