Vertical SaaS for Ayurveda clinics. Next.js 16 / Prisma 7.5 / TypeScript / multi-tenant. We're looking for integrators, white-label partners, and module contributors.
| Frontend | Next.js 16 App Router · React 19 · TypeScript 5 · Tailwind 4 · PWA |
| Backend | Next.js API routes · JWT auth · CSRF protection · cron with shared secret |
| Data | Prisma 7.5 · SQLite (Postgres planned) · ~80 models · multi-tenant via clinicId |
| PDFs | @react-pdf/renderer (server-side) — invoices, receipts, audits, Casetrust forms |
| Comms | WhatsApp Cloud API · SMTP · Twilio (planned) |
| Hosting | Railway · cron via Railway scheduled jobs |
Multi-tenant via clinicId column on every row. Tenant resolved from JWT in middleware, then `getTenantPrisma(clinicId)` returns a scoped client. Never use raw `prisma.x` in tenant code.
Auth: JWT (jose) + bcrypt + TOTP 2FA + recovery codes + trust-device cookie. Super-admin uses env-var creds + TOTP via `PlatformSettings`.
RBAC: 7 roles (owner, admin, doctor, therapist, receptionist, accountant, branch_manager). Branch-restricted via `getRestrictedBranchId` + `assertBranchAccess`.
Audit: every mutation calls logAudit(). Every PDF served at /api/{entity}/[id]/pdf renders server-side via @react-pdf/renderer (no browser print artifacts).
Payments · Q3 2026
Payments · Q3 2026
Comms · Q3 2026
Calendar · Q3 2026
Comms · Q3 2026
Insurance · Q4 2026
Sell AyurGate under your brand to your clients. Rev share TBD.
Build add-on apps (PMS, lab, insurance) that consume our API.
Onboard clinics, do migrations, train staff.
Ayurveda-specific protocols, panchakarma templates, dietary databases.
Tell us what you want to build. We'll send repo access + a scoped contract.
Email partners@ayurgate.comFounder direct: ayurcentresg@gmail.com