by-evuli
The operating system for a network of licensed healthcare clinics.
One platform runs the whole network: onboarding new licensees, hiring with a public job board, CRM and sales funnel, WhatsApp and Instagram, finance, and results coaching — with an admin side for the franchisor and an isolated space for each clinic.
The problem
The network ran on spreadsheets, Power BI exports and a dozen disconnected tools. Every new clinic meant weeks of manual onboarding, and nobody had one trustworthy view of the numbers.
The solution
A multi-tenant platform where every clinic sees only its own data — enforced by the database, not by the UI — with payments, messaging and reporting built in, deployed with zero downtime.
- database migrations
- 370+
- web routes
- 316
- server domains
- 8
- units incl. HQ
- 15
Highlights
- 01
Tenant isolation enforced in PostgreSQL: every request runs under an unprivileged role with SET ROLE and fails closed.
- 02
Finance built in: Asaas billing, Pix and boleto, NFS-e invoices and Conta Azul sync.
- 03
WhatsApp, Instagram, CRM and recruitment with a public job board in a single product.
- 04
Blue/green deploys with zero downtime and encrypted backups on Cloudflare R2, with restore drills.
Architecture
- React app→Elysia API
- Caddy blue/green→Elysia API
- Elysia API→Postgres + RLS
- Elysia API→Asaas · Pix
- Elysia API→WhatsApp · Instagram
- Elysia API→LLMs
- Postgres + RLS→R2 backups
Stack
- Bun
- Elysia
- React 19
- TanStack
- PostgreSQL 17
- Drizzle
- Effect
- Supabase
- Ant Design
- Tailwind
- Docker
- Caddy
Integrations
- Asaas
- Pix
- Conta Azul
- NFS-e
- OpenAI
- Anthropic
