The BoxyHQ Enterprise SaaS Starter Kit is an open-source Next.js boilerplate that ships with the shared infrastructure of a multi-tenant SaaS product—authentication, teams, billing, audit logs, and webhooks—so you can start on the differentiating parts of your app immediately.
What is the SaaS Starter Kit?
The SaaS Starter Kit is an open-source boilerplate by BoxyHQ that turns a plain Next.js and TypeScript codebase into a deployable enterprise SaaS app. It takes standard project input (a cloned repo, a Postgres database, and environment variables) and produces a working application with account creation, team management, SAML SSO, SCIM directory sync, audit logs, webhooks, and Stripe payments wired up. The template runs on Next.js, uses Tailwind CSS for styling, and stores data in Postgres through Prisma.
Key Features
- Authentication options — Supports email/password, magic link, SAML SSO, and Google/GitHub OAuth via NextAuth.js; the auth configuration lives in
pages/api/auth/[...nextauth].ts. - Team and membership management — Create and delete teams, invite users, update member roles, and enforce roles and permissions out of the box.
- Audit logs — Retraced integration records who did what and when on user and team CRUD operations for compliance and visibility.
- Webhooks and events — Svix emits webhooks on user and team create, read, update, and delete events so external systems can react.
- Stripe payments — Stripe secret key and webhook signing secret are configured; the webhook endpoint is
/api/webhooks/stripe. - Directory Sync (SCIM) — BoxyHQ Jackson also provides SCIM provisioning so enterprise IT admins can manage users from their identity provider.
- Internationalization — Built-in i18n support for multi-language UI.
- Developer infrastructure — Docker Compose for a local Postgres, Prisma Studio for visual database editing, Playwright E2E tests for chromium and firefox, Sentry error tracking, and Google reCAPTCHA.
Who should use the SaaS Starter Kit?
- SaaS founders — launch a subscription product with auth, teams, and Stripe billing pre-built instead of writing those systems from scratch.
- Enterprise-focused product teams — meet customer requirements for SAML SSO, SCIM directory sync, audit logs, and webhooks from day one.
- Agencies and freelancers — use it as a repeatable starting point for client SaaS builds, then customize the Next.js/Tailwind UI and integrations per project.
What can you do with the SaaS Starter Kit?
- Add enterprise SSO: Configure SAML Jackson so corporate customers can sign in with their own identity provider.
- Monetize your app: Connect Stripe, accept payments, and process subscription events through the prebuilt webhook endpoint.
- Track user activity: Ship audit logs with Retraced so admins can review exactly what happened inside the app.
- Automate provisioning: Enable SCIM directory sync so customers manage team membership from Okta, Azure AD, or other IdPs.
How does the SaaS Starter Kit work?
The README gives a 9-step local setup: fork and clone the repo, run npm install, copy .env.example to .env, start Postgres with docker-compose up -d, push the Prisma schema with npx prisma db push, then launch with npm run dev. To enable advanced features, add API keys for Svix, Stripe, reCAPTCHA, and Sentry to .env; E2E tests run with Playwright after npm run playwright:update.
Pricing
The SaaS Starter Kit is free to use under the Apache 2.0 License, with no paid tiers listed. Keep in mind that the third-party services it integrates with—Stripe, Svix, Retraced, Sentry, and email providers—have their own pricing.
Alternatives
- create-t3-app — a popular community Next.js starter focused on a curated stack (tRPC, Prisma, Tailwind) without the enterprise SSO, audit log, and billing integrations that the SaaS Starter Kit includes.
FAQ
Is the SaaS Starter Kit free?
Yes, the SaaS Starter Kit is open source under the Apache 2.0 License and can be used for commercial projects at no cost. External services in the stack—such as Stripe, Svix, Retraced, and Sentry—may charge separately depending on your usage.
What tech stack does the SaaS Starter Kit use?
Next.js with TypeScript, Tailwind CSS for styling, and Postgres with Prisma for the database. Authentication is handled by NextAuth.js with BoxyHQ Jackson for SAML SSO and SCIM. Svix handles webhooks, Retraced handles audit logs, Stripe processes payments, and Playwright runs E2E tests.
Does the SaaS Starter Kit include SAML SSO?
Yes, SAML SSO is built in through BoxyHQ Jackson. You configure Jackson and the relevant environment variables, and enterprise users can sign in with their corporate identity provider. The same integration also enables Directory Sync (SCIM) for automated user provisioning.
What are the known limitations?
The repository lists "Billing & subscriptions" as coming soon, so Stripe payment processing is wired but full subscription-plan management is not included yet. E2E tests currently support only chromium and firefox, and the dev environment requires Node.js version 18 or higher, PostgreSQL, and Docker Compose (optional for local Postgres).







