Auth, teams, billing, admin and docs: ready on day one.
Gantrel is the platform layer of a SaaS, built and tested so you spend your time on the product. It runs as a live demo called Brightpad; remove it with one command and keep everything else.
- 290+unit and race tests
- 50docs guides
- 1command to remove the demo

$ npm run make:module -- Projects
+ models/projects.ts
+ app/app/projects/page.tsx
+ app/api/v1/projects/route.ts
Created module Project. Tests pass.
Switch to Business
What is included
Eight platform areas, each with tests and a guide. Nothing here is a placeholder. See every feature or read how security works.
Auth with 2FA
Passwords, magic links, OAuth, TOTP and recovery codes. Sessions you can end.
Read the guideOrganisations and roles
Invitations bound to the invited email, teams, a permission matrix you extend.
Read the guideBilling and proration
Plans, trials, coupons, credit, invoices and a mid-period preview before any charge.
Read the guideMetering and limits
Allowances per plan, atomic reservations, storage as a gauge, overage pricing.
Read the guideAdmin console
MRR, organisations, plans editor, feature flags, audit log and safe impersonation.
Read the guideAPI and OpenAPI
Scoped keys capped by role, rate limits, quotas and a generated OpenAPI 3.1 spec.
Read the guideSigned webhooks
HMAC signatures, a retry schedule, a delivery log and SSRF-safe requests.
Read the guideAI helper
One provider interface with a free deterministic driver, metered and flagged by plan.
Read the guidePlan changes that price themselves honestly
Credit is based on what the customer actually paid, discounts included. Parallel checkouts leave one subscription, a payment that cannot be applied is refunded and flagged, and the gateway subscription is always ended when the plan moves.
- Trials that fall back to the free plan, never an invoice
- Coupons redeemed atomically
- Stripe and Razorpay drivers, plus a simulator for demos
Switch to Business (monthly)
| Unused time on current plan (amount paid) | -$9.50 |
| Business for the rest of this period | $24.50 |
| Due now | $15.00 |
Your current period is kept and ends on the same day.
Setup checklist
3 of 5 steps done · finish these to launch
A setup checklist that shows its progress
Every workspace gets a launch checklist on its dashboard: create the workspace, invite a teammate, choose a plan, make an API key, add a webhook. Each step ticks off as it is done.
Add a module in one command
A tenant-scoped model, service, actions, REST routes with OpenAPI entries, pages, tests and docs, registered in the nav and the role permissions. It refuses unsafe names and never overwrites your files.
Read the generator guide$ npm run make:module -- Projects
+ models/projects.ts
+ lib/validators/projects.ts
+ lib/modules/projects.ts
+ lib/actions/projects.ts
+ app/app/projects/page.tsx
+ app/api/v1/projects/route.ts
+ tests/unit/projects.test.ts
Created module Project (projects).
Next: npm run typecheck && npm testTenant-safe by default
A plugin refuses queries that forget the organisation, and updates that try to move a row.
Docs you can search
50 guides, recipes and references with a sidebar and client-side search, plus an API reference built from your routes.
Global and accessible
English, Spanish and Arabic with right-to-left layouts, dark mode and AA contrast.
Stack
- Next.js 16
- React 19
- TypeScript 6
- Tailwind 4
- MongoDB + Mongoose 9
- zod 4
- OpenAPI 3.1
- Vitest
- Playwright
Questions
Source you own. The platform core lives in packages/gantrel-core with its own tests, so you can read and change every rule.
MongoDB as a single-node replica set. Every tenant row carries an orgId and a plugin refuses unscoped queries.
Yes. A simulated gateway with test cards ships for demos. It is switched off in production unless you enable demo mode.
Run npm run example:remove. It deletes Brightpad, cuts its lines from shared files and drops only its own collections.
No. Gantrel is a web boilerplate: Next.js, MongoDB and a REST API you can call from any client.
Start from a platform, not a blank page.
Sign in to the live demo and try billing, the admin console and the API.