Projects

Cuspora

White-label practice software for dental clinics

TL;DR: Dental clinics run on software that often can't be trusted: payments that don't add up, stock counts that drift, permissions only enforced in the browser. Cuspora is practice software built so the numbers are always right, and it runs under each clinic's own brand.

The problem

A small clinic lives on three numbers: who's in the chair, what they owe, and what's left on the shelf. When the software gets any of them wrong, staff stop trusting it and go back to paper and spreadsheets. Bills don't match payments, stock runs out without warning, and a mistake can quietly delete records.

What I built

  • The patient, chair-side. Medical history, an FDI tooth chart, X-rays, prescriptions, and treatment plans with alternatives side by side. Accepted plans lock, and finished work posts the charge automatically.
  • A calendar that can't double-book. The database itself refuses overlapping appointments.
  • Money that adds up. Payments, invoices with gapless numbering, insurance balances, approval for discounts, and a daily cash close. Money records can't be edited or deleted; mistakes are fixed with a reversing entry, like real accounting.
  • Stock you can count on. Goods in, locations, first-expiry-first-out, plus lab orders and lab price lists.
  • The clinic's own product. Each clinic sets its brand, domain, languages (Azerbaijani, Russian, English) and the modules it needs. Eight staff roles, each seeing only what it should.

Where it is now

Built solo, with its first clinic in Baku. Designed to WCAG 2.2 AA with large base text, so everyone at the front desk can use it comfortably.

Technical details

  • Bun monorepo with an Elysia API, a Next.js 16 staff app, and Drizzle on PostgreSQL.
  • Row-level security on every tenant table, with a test that fails if any table is missing it.
  • Database triggers that block edits and deletes on money and stock records.
  • Built-in two-factor auth; background jobs on pg-boss.
  • Over 3,000 tests, including property-based tests on business rules and Playwright accessibility checks, gated in CI.
Cuspora · Rufat Guliyev