
Tenantx
The Laravel + React multi-tenancy starter kit extracted from
Every B2B product I've built hit the same three walls before a single line of product code got written.
Wall 1 — Tenancy. One missing scope check and you're leaking one customer's data to another. TenantX enforces tenant isolation at the application layer throughout — every query, every route, every API response is scoped to the right org and workspace.
Wall 2 — Billing. Plans, feature gates, discount codes, add-ons, subscription lifecycle — the part that always takes longer than the roadmap says. It's already wired to Stripe.
Wall 3 — RBAC. "Just roles and permissions" turns into a month of work the moment org-vs-workspace scope enters the picture. TenantX ships Organization Admin / Admin / Member / Contributor from backend middleware to UI permission gates — one model, consistent everywhere.
Those three are solved before you write your first feature. The kit also includes:
Auth — Google + GitHub OAuth, email/password, 2FA with TOTP + recovery codes, login audit trail, account lockouts and rate limiting
Organizations & Workspaces — platform admin manages all orgs; each org runs its own workspaces with branding and metadata; onboarding checklist for new orgs
Invitations — expiring invite tokens (72h), workspace-scoped flows, admin completion tracking
Billing — Stripe plans with feature gates, discount codes, feature add-ons, subscription lifecycle management
API & Webhooks — personal API tokens (create and revoke), HMAC-signed webhooks with event filtering and retries
Notifications — in-app and email for security and operational events, per-user preferences, digest emails
Help Center — categories, articles, search, markdown authoring, RTL support, article feedback and votes
Audit & Search — activity logs with filters, global search across users/orgs/workspaces/help content, scoped results
Super Admin — all tenants, feature flags, discount codes, revenue overview
Infrastructure — Docker production setup, background job queues, scheduled maintenance
Stack: Laravel 12 · PHP 8.2 · React 18 · TypeScript · PostgreSQL · Stripe · Tailwind CSS · shadcn/ui · Resend · Vite · Docker
Pricing: $399 Solo (1 seat) · $749 Team (up to 5 seats). One-time. Full source. Commercial license. Lifetime updates via private GitHub repo. Same codebase on both tiers — difference is seats, support, and license scope.
Happy to go deep on the architecture, how billing hooks work, how the org/workspace model maps to your specific product, or any stack decisions.
About
I kept rebuilding the same B2B foundation on every SaaS. So I made it a product. — TenantX

Comment