
- Deno / TypeScript Edge Functions
- 30
- PostgreSQL migrations, Row-Level Security on every table
- 65
- Automated tests, including end-to-end safety scenarios
- 1,000+
01 · The challenge
What the client needed
desi is built around one promise: when someone goes out for the night, they get home safely. The app has to notice when a user might need help, reach them at the right moment, and make getting a safe ride home a single tap.
- Right moment, not constant checking: the system must know about upcoming plans and where the user is, without checking in a loop all night.
- Reach people by text: check-ins go out by two-way SMS, and replies have to be understood and acted on automatically.
- Every message must be explainable: for a safety product, the team needs to see why each SMS was sent.
- Very personal data: calendars, live location and phone numbers, so access control and token security can't be an afterthought.
- An operations team needs its own tools to watch SMS delivery, manage accounts and export a user's data.
02 · The solution
How I built it
An intervention engine that wakes on real signals
At the core is a rules-based intervention engine that never polls continuously. It wakes only on real events: a geofence exit, an upcoming calendar event or an SMS reply. Scheduled work (like the "sober ride home" checks 24 hours and 2 hours before an outing) runs with pg_cron inside the database.
Two-way SMS with an audit trail
Check-ins are sent as SMS through the GoHighLevel API, and replies like OK or RIDE are handled automatically. Every outbound SMS is tied to a logged decision record, so the team can always trace why a message went out. Contacts are synced to the GoHighLevel CRM with automatic retry.
Calendar, location and ride handoff
- Google and Microsoft Outlook calendar sync over OAuth, with the OAuth tokens encrypted using AES-256-GCM.
- Geofenced safe spaces (like home) with live location state, so the engine can detect an unplanned outing.
- One-tap Uber / Lyft handoff through deep links and universal links.
- Expo push notifications with deep links, an in-app notification center and timed nudges.
Serverless backend with security in the database
The backend is 30 Deno / TypeScript Edge Functions on Supabase over a PostgreSQL schema built in 65 migrations, with Row-Level Security on every table. Auth covers OTP phone verification, secure login, refresh sessions and password recovery, and the admin operations API is role-based and rate-limited.
Admin portal for the operations team
On top of that API I built a React admin portal (TypeScript, Tailwind CSS, Shadcn UI): a live dashboard, consumer accounts with CRM sync status, SMS delivery triage, operator invites with roles, CRM cleanup, account deletion and one-click PDF export of a user's data.
Tested like a safety product
The backend is covered by 1,000+ automated Deno tests, including end-to-end safety scenarios that test the flows across features, not only single functions.
03 · The results
What changed
desi has a backend that reacts to real events instead of polling, reaches users by two-way SMS, and can explain every message it sends. The operations team runs the service from its own admin portal, and the 1,000+ tests let the platform change without breaking the safety flows.
04 · Takeaways
What I learned
- Event-driven beats polling for this kind of product: wake on geofence exits, calendar events and replies, and the system does work only when something actually happens.
- Log a decision record for every automated message. When a product touches people's safety, "why did it send that?" needs an answer.
- Put access control in the database with Row-Level Security, so a bug in one function can't leak another user's data.
- Add end-to-end scenario tests on top of unit tests: in a safety product the risky bugs live between features.
05 · Gallery
Screenshots
Keep reading
Askinstory · Online skin care consultations
Askinstory: An Online Skin Consultation Platform with Video, Audio and Chat
A full-stack telehealth platform where patients book paid skin consultations with specialists by video, audio or chat. Patient and specialist dashboards, slot-based booking, Stripe payments and real-time sessions, built with React, NestJS and PostgreSQL.
- Video, audio or chat consultations
- 3 ways
- From choosing a time to a confirmed, paid booking
- 4 steps
FoodHub · Restaurant ordering & delivery · Australia
FoodHub: Building a White-Label Restaurant Ordering SaaS
A white-label SaaS for an Australian founder that lets any restaurant launch its own commission-free ordering and delivery website, with live rider tracking and Stripe Connect payouts. Built solo, end to end.
- Live on the platform
- 2 restaurants
- Storefront, admin console, API
- 3 apps




