The SaaS backend boilerplate
built on Bun
Auth, billing, teams, webhooks, and background jobs — wired together, covered by 202 tests, ready for any frontend. Clone it and start building what makes your product different.
git clone https://github.com/mayhemds/bunnyboiler.git Built on tools you already know
You've built this backend before. Probably twice. If not more.
Users need to sign up. They need to pay you. They need teams so coworkers can join. You need permissions so the new hire doesn't nuke the billing config.
None of this is your product. But every line of it has to work before you write a single line of what actually is.
BunShip is every SaaS backend feature you'd build anyway, auth, billing, teams, permissions, webhooks, already built, tested, and ready to clone.
12 features. Already wired together.
Every feature ships with routes, service logic, migrations, middleware, and tests, toggleable from config. Auth checks billing, teams enforce permissions, and webhooks trigger jobs.
Auth
JWTs, refresh tokens, 2FA, magic links, email verification, session management.
Billing
Stripe subscriptions, trials, usage limits, customer portal, webhook handling.
Teams
4 roles, 20+ permissions, invites, ownership transfers, RBAC.
Webhooks
HMAC-signed, automatic retries, delivery logs, manual resend.
Background Jobs
BullMQ queues, retry logic, failure handling, scheduled tasks.
API Keys
Scoped keys, rate limiting, expiration, rotation.
Emails
React Email + Resend. Verification, invites, billing alerts.
Security
Argon2id, rate limiting, brute-force lockout, input validation.
OAuth
Google & GitHub sign-in, account linking for existing users.
File Uploads
S3-compatible, presigned URLs, size limits, type restrictions.
Audit Logs
Before/after snapshots, user context, IPs, full trail.
API Docs
OpenAPI auto-generated from route schemas. Swagger at /docs.
Clone. Configure. Ship.
Three commands to a running backend with auth, billing, teams, and every integration already working.
Clone the repo
Turborepo monorepo, shared packages, 12 feature modules, 202 tests. All yours.
Add your keys
One env file. Stripe, database, email, Redis, all pre-wired. Just paste your keys.
Start building
Auth, billing, teams, webhooks, jobs, all running. Pair it with any frontend and start writing your product code.
Frequently asked questions
What is BunShip?
BunShip is a complete SaaS backend boilerplate built with Bun, Elysia, TypeScript, and Drizzle ORM. You clone the repository, add your API keys, and get a running backend with auth, billing, teams, webhooks, background jobs, and 9 more production features, all tested and wired together.
Is it a framework or a boilerplate?
A boilerplate. You clone the full TypeScript monorepo and own the code. There is no dependency to install or vendor lock-in. You can modify, extend, or remove any feature.
What frontend can I use?
The free version is backend-only — pair it with Next.js, React, Vue, Svelte, a mobile app, or anything that calls an API. The Pro version includes a complete TanStack Start + React frontend with shadcn/ui, dark/light mode, and every page pre-built.
How do I customize features?
Every feature is toggleable from a single config file. Enable or disable 2FA, magic links, OAuth providers, billing trials, webhook retries, and more without changing application code. For deeper changes, the codebase is organized into routes, services, and middleware you can extend directly.
Is it tested?
Yes. 202 passing tests across 194 test files cover auth flows, billing integration, team permissions, webhook delivery, and every other feature. You can refactor and extend with confidence.
What's in the Pro version?
Everything in the free API boilerplate, plus a complete TanStack Start + React frontend with shadcn/ui. Dashboard, user settings, organization management, admin panel, dark/light mode — every page pre-built and connected to the API via Eden. $199 one-time. See the comparison.
You have better things
to build.
Ship your product, not your boilerplate.