A multi tenant dealer management system for used car dealerships in Sri Lanka.

Role

Design and development

Stack

Next.js, TypeScript, Tailwind, Supabase, Resend

Year

2026

Status

Live

AutoDeck main screen

The product

AutoDeck runs a used car dealership from one place: stock, costs, leads, trade-ins, staff and reports. It is built for small dealers who work mostly from a phone.

Customers get a shareable vehicle page with a financing calculator and WhatsApp enquiry, and a printable delivery certificate, both reachable by QR code without any access to the dealer's inventory.

The problem

It started as a tool for one dealer who had no tracking system at all. The first goal was a complete cost record for every car, so profit per unit is measured instead of estimated, with data entry fast enough to do the moment a car arrives.

Once it worked for one dealer it had to work for many, which meant one dealer's data could never leak into another's.

The solution

Every business table is scoped to a dealer with Postgres Row Level Security, so isolation is enforced by the database and not only by application code. I checked it against the live database with a real authenticated session, not just the service role.

On top of that: a per vehicle cost ledger for local, import and commission cars, multiple branches with transfer gate passes, a lead pipeline, a trade-in self appraisal flow that is rate limited server side, whitelabel branding per dealer, and encrypted scheduled backups to Cloudflare R2 that do not depend on the main host.

AutoDeck interface, screen 1
AutoDeck interface, screen 2
AutoDeck on a phone, screen 1
AutoDeck on a phone, screen 2
AutoDeck on a phone, screen 3
AutoDeck interface, screen 4

Outcome

Live at autodeck.lk, with a separate marketing site.

Next case

OTTO