What is BunShip?
BunShip is a production-ready SaaS API boilerplate built with Bun and Elysia. It provides everything you need to launch your SaaS product quickly without sacrificing quality or performance.Blazing Fast
Built on Bun runtime, BunShip delivers 3-4x better performance than Node.js
Type-Safe
End-to-end TypeScript with Eden client for complete type inference
Production Ready
Battle-tested patterns for authentication, billing, and multi-tenancy
Developer Friendly
Clean codebase, comprehensive docs, and auto-generated API documentation
Why BunShip?
Building a SaaS from scratch means implementing the same features over and over:- User authentication with sessions and 2FA
- Team management with roles and permissions
- Stripe subscriptions with usage limits
- Webhook systems for integrations
- API key management
- Audit logging
Features
Authentication
Multiple auth methods
Multiple auth methods
- Email and password with secure hashing - Magic link passwordless login - Google OAuth - GitHub OAuth - TOTP-based two-factor authentication
Security features
Security features
- JWT access and refresh token rotation - Account lockout after failed attempts - Session management (view and revoke) - Email verification - Password reset flow
Multi-Tenancy
BunShip includes a complete multi-tenant architecture:- Organizations - Isolated workspaces for teams
- Team invitations - Email-based invite flow
- Role-based access - Owner, Admin, Member, Viewer roles
- Granular permissions - Fine-grained permission system
Billing
Integrated Stripe billing with:- Subscription management - Create, update, cancel subscriptions
- Usage tracking - Monitor API requests, storage, members
- Pricing tiers - Free, Pro, Enterprise plans included
- Customer portal - Self-service billing management
- Webhook handling - Automatic subscription status sync
Developer Experience
- Type-safe API client - Eden client with full autocomplete
- OpenAPI documentation - Auto-generated from route definitions
- Structured errors - Consistent error responses
- Background jobs - BullMQ for async processing
Tech Stack
Quick Start
Get up and running in under 5 minutes:
Your API is now running at
http://localhost:3000 with documentation at http://localhost:3000/docs.
Project Structure
Using the Eden Client
BunShip exports a type-safe API client for your frontend:Next Steps
Installation Guide
Detailed setup instructions for local development and production
Architecture
Understand how BunShip is structured
Authentication
Learn about the auth system
API Reference
Explore all available endpoints
Support
- Documentation - You’re reading it!
- GitHub Issues - Report bugs and request features
- Discord - Join the community
- Email - [email protected]

