Callidus OS
Clinic booking, patient records and Stripe deposits in one product for UK aesthetic clinics — designed and built solo.

The story in 30 seconds
The brief: replace a stalled prototype with clinic software that could handle bookings, patient records and payments.
My contribution: designed and built the multi-tenant React and Firebase platform, including Stripe Connect and face mapping.
The result: the first clinic went live with billing and bookings; the project was handed over in June 2026.
- My role
- Solo full-stack builder
- Delivered
- Multi-tenant clinic SaaS
- Market
- United Kingdom
- Period
- Feb–Apr 2026
Services · Design / Development / Backend / Integrations / Maintenance / Consulting
Introduction
Callidus OS is a multi-tenant SaaS platform built for UK aesthetic clinics — scheduling, patient records, consent forms, invoicing, and patient deposits collected directly through each clinic's own Stripe account.
I built the platform solo from design to production deploy across roughly 10 weeks of intensive work between 14 February 2026 and late April 2026, then maintained it in production through June 2026. The project inherited a previously-failed FlutterFlow attempt with approximately 200 unresolved errors and was rebuilt from scratch on React, TypeScript, and Firebase.
Engagement completed June 2026 — client took ongoing development in-house. The platform continues to ship features post-handover.
Background
Callidus is the software company. The product is sold as a monthly subscription to independent UK aesthetic clinics — each clinic becomes a tenant in a strictly-isolated multi-tenant system. Every clinic has its own staff, patients, appointments, consent forms, and Stripe account. Pricing is kept deliberately accessible: £15/month on the Starter plan, £50/month on the Aesthetics plan, with a seat add-on at £25/month per extra user on a 0-to-50 range, plus a 14-day free trial.
I was introduced through a Discord community. The founder had tried to build the app in FlutterFlow first — ended up with three or four Firestore collections, a written plan document, and hundreds of unresolved errors. We agreed to start again from scratch on a real stack. I handled the design concept in Google Stitch before a line of code, then moved into implementation.
The Challenge
Five problems shaped the whole project.
Face mapping had no off-the-shelf solution. Aesthetic clinics need clinical-grade face diagrams where practitioners mark injection sites with dose and product, then attach the annotated diagram to a patient record. Nothing on the market fit the workflow. The editor had to be built from scratch.
Patient deposits had to flow to each clinic's own Stripe account, not Callidus'. Each clinic is the legal merchant-of-record for medical services they perform. Pooling deposits on Callidus' account would transfer liability in the wrong direction. This meant Stripe Connect Standard with Direct Charges, per-tenant Connect onboarding, application-fee logic, the full webhook matrix including 3D Secure escalation, and regulatory isolation baked into every flow.
Six roles had to coexist without drift. Super admin, owner, admin, manager, practitioner, receptionist — each with distinct access to clinical data, financial data, settings, and billing. Inline role checks rot the moment the matrix changes. The codebase is built around role helpers (hasClinicalAccess, hasManagerAccess, hasAdminAccess) so every access gate stays consistent.
Clinics had to embed a booking widget on their own marketing sites. That meant Shadow DOM isolation, an unhashed bundle name for stability across deploys, a Service Worker with NetworkOnly strategy for Firebase and Stripe so those requests bypass the widget cache, tenant binding by slug, and a scroll-trap fix for iframe behaviour on arbitrary host pages.
Trial-to-active-to-suspended had to run itself. A 14-day trial with a four-stage email and grace lifecycle: 3-day reminder, 1-day reminder, expiry with a 3-day grace window, then suspension. Payment escalation for active tenants running past due. Grace-period mutations blocked server-side, pages viewable but writes refused — belt-and-braces between client route gates and Firestore rules.
Our Solution
Custom face mapping editor. Built on react-konva with a canvas model that stores annotations as positioned markers tied to a patient ID. Injection markers carry dose, product, and timestamp. The output serializes to Firestore and rehydrates into the editor on reload.
Stripe Connect Standard with Direct Charges. Each clinic onboards its own Stripe account. Patient deposits collected at the booking widget flow to the clinic directly; Callidus takes a 0.1% application fee. Twenty webhook events are handled end-to-end, including customer.subscription.trial_will_end, invoice.payment_action_required (which triggers 3D Secure escalation and emails the owner a hosted invoice URL), and the full checkout → subscription → cancellation flow. Annual pricing blocks promo codes via an explicit ANNUAL_PRICE_IDS allowlist to prevent 100%-off abuse.
Multi-tenant architecture with role helpers. Everything lives under tenants/{tenantId}/… in Firestore. JWT claims carry tenantId and role. All mutations are gated by a !isTenantArchived() guard in the Firestore rules. Access helpers replace inline role checks everywhere — changes to the access matrix ripple consistently instead of drifting.
Embeddable booking widget with widget isolation. Shadow DOM portal, unhashed bundle path, Service Worker scoped only to the widget path, NetworkOnly for Firebase and Stripe to avoid caching those requests, tenant bound by slug via a strict regex. The widget scroll-trap fix lives in a standalone overlay script that works across any host page.
Four-stage subscription lifecycle. Coordinator Cloud Function runs daily at 09:00 UTC and fans out one Cloud Task per trialing tenant. The pipeline is 3-day email → 1-day email → expiry with 3-day grace → suspension. A second scheduled function at 09:30 UTC escalates payment-failed tenants. During grace period, pages viewable but mutations blocked at both route and Firestore rules layers — no single-layer bypass.
Multi-location support. Clinics operating from multiple addresses can manage practitioners, schedules, services, and bookings across all sites from a single tenant. Per-location colour coding and primary-location semantics for billing and reporting.
Supporting systems. Calia AI assistant on Vertex AI via @google/genai SDK with thirteen injection regex patterns, 30/100-per-hour rate limits, and a 90-day cleanup schedule. Native TOTP MFA, no SMS. Single-session enforcement: log in on device B and device A's session ends. Audit logging with three-tier TTL retention (90 days routine, 1 year financial, 2 years for records classified as privacy-sensitive; PATIENT_DATA_ERASED has no expiry). Public booking and consent endpoints guarded by App Check. Sentry configured to limit captured personal data: sendDefaultPii: false, Replay masks all text, blocks all media, masks all inputs.
Outcome
Callidus shipped to production in late April 2026 — first real clinic onboarded, full billing flow live, consent and booking pipelines operational.
By the time the engagement closed in June 2026, the platform had:
- 14 tenants onboarded across active, trialing, and suspended states
- Real production usage — multi-location pilot live with the first paying clinic since 18 May 2026
- 100+ Cloud Functions deployed and scheduled (15 cron jobs all healthy)
- ~1,887 commits across the build and maintenance phases
- ~426 KB gzipped across 37 lazy routes and 17 manual chunks, with progressive loading throughout
- Roughly 1,200+ tests across Vitest unit/integration and Playwright end-to-end
- 100% Firestore rules coverage
- Phase 1 multi-location pilot shipped to production 18 May 2026 with the first paying clinic
A marketing campaign module, Calia AI Pro tier, vouchers, waitlist auto-schedule, and several integration surfaces (accounting, SMS via Twilio, reviews, finance) were on the roadmap at the close of the engagement. Client transitioned to in-house development for ongoing work in June 2026.
Conclusion
Callidus brought clinic booking, patient records, Stripe Connect payments, and a custom face-mapping editor into one multi-tenant product. The rebuild replaced the inherited FlutterFlow implementation with a React codebase and shared role checks.
The engagement ended in June 2026 with documentation handed over for the client’s in-house team to continue development. The access, retention, and monitoring controls described here are implementation details, not a claim of regulatory certification.
Project details
- Sector
- Aesthetic Clinic SaaS
- Company size
- 2–5
- Pages created
- 35+
- Market
- United Kingdom
BookBed
More live work
BookBed
A multi-platform property management system for owners managing short-stay, vacation, and long-stay lets — built solo across six months.
Read it →03 · Food OrderingPizzeria Bestek
Replaced a third-party ordering platform with a fully-owned custom build for a Croatian coastal pizzeria — zero fees, four languages, email-driven admin.
Read it →04 · Flutter Starter KitRelocate
Flutter foundation for a US neighborhood-research app — Mapbox, Firebase, RevenueCat paywall, Sentry + Crashlytics, delivered as a collaborator on a client-owned product.
Read it →Have a project in mind?
Let’s talk about your project.
Tell me what you’re building and where you need help. I’ll reply with a concrete next step.