Skip to content
saas-boiler GitHub Details, Stars and Alternatives | OpenRepoFinder
Home / Repositories / saasyachtclub/saas-boiler saasyachtclub / repository
saas-boiler ⚓ SaaS Yacht Club - The Ultimate FREE & Open Source SaaS Boilerplate. Next.js 15 + React 19 + TypeScript + Better Auth + Stripe + Neon PostgreSQL. Production-ready with authentication, payments, multi-tenant architecture, and comprehensive documentation. 🚀
#better-auth #boilerplate #drizzle #free #neon #nextjs
View Repository on GitHub ↗ REPOSITORY OVERVIEW Live repository statistics ★ 5 Stars
⑂ 2 Forks
◯ 25 Open issues
◉ 5 Watchers
42 /100
OPENREPOHUB HEALTH SIGNAL Limited signals A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
30 Community adoption25% weight
12 Maintenance state20% weight
40 License clarity10% weight
100 Project information10% weight
100 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
📧 Email System : Resend integration with React Email templates
🗃️ Scalable Database : Drizzle ORM with Neon PostgreSQL
🔄 CI/CD Ready : GitHub Actions and Vercel deployment configured
🧪 Testing Suite : Playwright E2E and Vitest unit tests included
📱 PWA Ready : Progressive Web App capabilities
🌍 i18n Ready : Internationalization support built-in
✨ What's Included (All FREE!)
🛡️ Authentication & Authorization
Better Auth - Modern authentication with email/password, social login, and magic links
Role-based access control - User, Admin, and Super Admin roles with granular permissions
Protected routes - Server-side route protection with middleware
Session management - Secure session handling with proper encryption
Password policies - Strong password requirements and validation
Rate limiting - API rate limiting to prevent abuse
Audit logs - Track all user actions and system events
💳 Payments & Subscriptions
Stripe integration - Complete payment processing with webhooks
Subscription management - Handle recurring payments and plan changes
Credit system - Token-based credits for API usage
Customer portal - Self-service subscription management
Payment analytics - Revenue tracking and churn analysis
Multi-currency support - Support for multiple currencies
Tax calculation - Automatic tax calculation and compliance
👥 Organization & Teams
Multi-tenant architecture - Complete organization management
Team collaboration - Invite and manage team members
Role management - Owner, Admin, and Member roles
Organization settings - Customizable organization preferences
Billing management - Organization-level billing and subscriptions
Resource sharing - Share resources within organizations
Audit trails - Organization-level activity tracking
📧 Email & Communications
Resend integration - Modern email delivery service
React Email templates - Beautiful, responsive email templates
Transactional emails - Welcome, verification, password reset emails
Email analytics - Track email delivery and engagement
Template system - Reusable email components
SMTP fallback - Legacy SMTP support for compatibility
🗄️ Database & ORM
Drizzle ORM - Type-safe database queries with excellent performance
Neon PostgreSQL - Serverless PostgreSQL with automatic scaling
Auto-migrations - Database schema management and migrations
Connection pooling - Optimized database connections
Query optimization - Efficient data fetching and caching
Database monitoring - Query performance and health metrics
🎨 UI & Design System
shadcn/ui - Beautiful, accessible component library
Tailwind CSS - Utility-first CSS framework with custom design system
Dark mode support - Built-in theme switching
Responsive design - Mobile-first approach with perfect responsive behavior
Animation library - Smooth transitions and micro-interactions
Icon system - Lucide React icons with consistent iconography
Accessibility - WCAG 2.1 AA compliant components
📊 Analytics & Monitoring
PostHog integration - Product analytics and user behavior tracking
Performance monitoring - Core Web Vitals and performance metrics
Sentry error tracking - Real-time error monitoring and alerts
Custom dashboards - Business intelligence and KPIs
Real-time metrics - Live data updates and notifications
Export capabilities - Data export for external analysis
🔧 Developer Experience
TypeScript - Full type safety with strict configuration
Biome - Fast linting and formatting (replaces ESLint + Prettier)
Vitest - Fast unit testing with React Testing Library
Playwright - End-to-end testing with browser automation
Hot reload - Instant feedback during development
Type checking - Real-time TypeScript error checking
Auto imports - Intelligent import suggestions
Interactive CLI tools - Setup, reset, and repair commands
🚀 Deployment & DevOps
Vercel deployment - Optimized for Vercel's platform
GitHub Actions - Automated CI/CD pipelines
Environment management - Secure environment variable handling
Preview deployments - Automatic preview environments for PRs
Edge functions - Vercel Edge Runtime for global performance
Image optimization - Automatic image optimization and CDN
🔒 Security Features
Rate limiting - API rate limiting with Upstash Redis
CORS configuration - Proper cross-origin resource sharing
CSRF protection - Cross-site request forgery protection
XSS protection - Cross-site scripting prevention
Content Security Policy - CSP headers for enhanced security
HTTPS enforcement - SSL/TLS encryption
Input validation - Comprehensive input sanitization with Zod
Session security - Secure session management with encryption
🚀 Quick Start (It's FREE!)
Prerequisites
Node.js 20+ and pnpm 9+
Neon account for PostgreSQL database (free tier available)
Stripe account for payments (free for development)
GitHub account
1. Clone the Repository git clone https://github.com/saasyachtclub/saas-boiler.git
cd saas-boiler
# Run our interactive setup wizard
./scripts/setup.sh
# Install dependencies
pnpm install
# Copy environment template
cp .env.example .env
2. Configure Environment # Database (Neon PostgreSQL - Free Tier Available)
DATABASE_URL="postgresql://username:password@host:port/database"
# Better Auth (Generate your own secret)
BETTER_AUTH_SECRET="your-secret-key-min-32-chars"
BETTER_AUTH_URL="http://localhost:3000"
# Stripe (Free for development)
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
STRIPE_PUBLISHABLE_KEY="pk_test_..."
# Email (Resend - Free tier available)
RESEND_API_KEY="re_..."
# Analytics (PostHog - Free tier available)
NEXT_PUBLIC_POSTHOG_KEY="phc_..."
NEXT_PUBLIC_POSTHOG_HOST="https://app.posthog.com"
# Error Tracking (Sentry - Free tier available)
SENTRY_DSN="https://..."
3. Database Setup # Generate and apply database migrations
pnpm db:generate
pnpm db:migrate
# Optional: Open Drizzle Studio to explore your database
pnpm db:studio
4. Launch Your SaaS
📁 Project Structure ⚓ saas-boiler/
├── 📱 apps/
│ └── web/ # Next.js 15 App (Your SaaS Frontend)
│ ├── src/app/ # App Router Pages
│ ├── src/components/ # Reusable Components
│ ├── src/lib/ # Utilities & Configurations
│ └── src/types/ # TypeScript Definitions
├── 📦 packages/ # Shared Packages (Future Extensions)
├── 🛠️ tooling/ # Development Tools & Configs
├── 📜 scripts/ # CLI Tools & Automation
├── 📚 docs/ # Comprehensive Documentation
└── 🔧 Configuration Files # All the boring setup stuff
🗄️ Database Schema (Included!) Our battle-tested database schema includes:
👤 Users - Complete user management with profiles
🔐 Sessions - Secure authentication sessions
🔗 Accounts - OAuth provider integrations
💼 Organizations - Multi-tenant organization structure
👥 Memberships - Team and role management
💳 Subscriptions - Stripe subscription tracking
🔑 API Keys - API key management system
📊 Audit Logs - Complete activity tracking
💰 Credits - Token-based credit system
🔧 Available Commands # 🚀 Development
pnpm dev # Start development server
pnpm build # Build for production
pnpm start # Start production server
# 🗄️ Database
pnpm db:generate # Generate migrations
pnpm db:migrate # Apply migrations
pnpm db:studio # Open Drizzle Studio
pnpm db:push # Push schema changes
pnpm db:seed # Seed with sample data
# 🧹 Code Quality
pnpm lint # Run Biome linter
pnpm format # Format code
pnpm check # Check everything
pnpm fix # Auto-fix issues
# 🧪 Testing
pnpm test # Run unit tests
pnpm test:ui # Run tests with UI
pnpm test:e2e # Run E2E tests
pnpm test:coverage # Generate coverage
# 🛠️ CLI Tools (Interactive!)
pnpm setup # Interactive setup wizard
pnpm reset # Reset project safely
pnpm repair # Fix common issues
pnpm admin # Admin commands
# 🚀 Deployment
pnpm deploy # Deploy to production
pnpm preview # Deploy preview
🚀 Deploy Your SaaS (For FREE!)
Vercel (Recommended - FREE Tier!)
Push your code to GitHub
Connect to Vercel (free account)
Add your environment variables
Deploy! 🚀
Other FREE Options