shipd
v0.2.1
Published
Generate production-ready SaaS applications with authentication, billing, and more
Maintainers
Readme
Shipd CLI
Generate production-ready SaaS applications in minutes
Shipd is a powerful CLI tool that generates complete SaaS applications with authentication, billing, user management, and a beautiful dashboard - all configured and ready to deploy.
Features
- Complete Authentication System - Powered by Better Auth with Google OAuth, magic links, and secure session management
- Integrated Billing - Polar.sh integration with subscription management and checkout flow
- Modern Tech Stack - Next.js 15, React 19, TypeScript, Tailwind CSS, Drizzle ORM
- Database Ready - PostgreSQL with Supabase integration out of the box
- Beautiful UI - Pre-built dashboard, pricing page, and user management interface
- Production Ready - Configured for deployment on Vercel and Railway
- Email System - Resend integration for transactional emails
- TypeScript First - Full type safety across the entire application
Installation
You don't need to install Shipd globally. Use npx to run it directly:
npx shipd init my-saas-appOr install globally:
npm install -g shipdQuick Start
1. Create Your Project
Note: Authentication is automatic. If you're not logged in, the CLI will prompt you to authenticate via your browser when you run any command.
Generate a new SaaS application:
npx shipd init my-saas-appThe CLI will:
- Create a new Next.js project with all features configured
- Set up the database schema
- Configure authentication and billing
- Install all dependencies
- Prepare your
.env.localwith required environment variables
3. Configure Environment Variables
Update the .env.local file with your credentials:
# Database (Supabase)
DATABASE_URL=your-supabase-connection-string
# Auth (Better Auth)
BETTER_AUTH_SECRET=your-secret-key
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Email (Resend)
RESEND_API_KEY=your-resend-api-key
# Billing (Polar.sh)
POLAR_ACCESS_TOKEN=your-polar-access-token
NEXT_PUBLIC_STARTER_TIER=your-product-id
NEXT_PUBLIC_STARTER_SLUG=your-product-slug4. Run Your Application
cd my-saas-app
npm run devYour SaaS application is now running at http://localhost:3000!
Available Commands
shipd init [project-name]
Initialize a new SaaS project with all features configured.
npx shipd init my-saas-appOptions:
--features <features>- Comma-separated list of features to include (e.g.,auth,payments,email)--description <description>- Project description--package-manager <manager>- Package manager to use (npm, pnpm, yarn)--mock- Skip authentication for development/testing purposes
Example:
# Interactive mode (select features)
npx shipd init my-saas-app
# Non-interactive mode
npx shipd init my-saas-app --features marketing-landing,auth,paymentsshipd append
Add Shipd features to an existing Next.js project. Perfect for adding features incrementally.
npx shipd appendOptions:
--features <features>- Comma-separated list of features to add (e.g.,auth,payments,email)--dry-run- Preview changes without applying them
Available features:
marketing-landing- Complete marketing homepage with hero, features, testimonialsdocs- Documentation pages with navigation and layoutdatabase- PostgreSQL database setup with Drizzle ORMauth- Authentication with Better Auth (sign-in, sign-up, Google OAuth)payments- Payments and subscriptions with Polar.shemail- Transactional emails with Resend and React Emailai-chat- OpenAI streaming chat interfacefile-upload- Cloudflare R2 file uploads with drag-and-dropanalytics- PostHog analytics and feature flagsseo- Sitemap, robots.txt, blog structure, structured data
Example:
# Interactive mode (select features)
npx shipd append
# Add specific features
npx shipd append --features auth,database,payments
# Preview changes without applying
npx shipd append --features seo --dry-runNote: The append command automatically:
- Installs required dependencies
- Merges database schemas
- Updates environment variables in
.env.example - Patches middleware for route protection
- Runs build verification
shipd list
List all available features and modules.
npx shipd listshipd login
Manually authenticate with your Shipd account (usually not needed - authentication is automatic).
npx shipd loginshipd logout
Sign out from your Shipd account.
npx shipd logoutWhat's Included
Shipd uses a modular architecture. Start with a minimal base and add only the features you need.
Base Package (Always Included)
- Next.js 15 with App Router
- TypeScript with strict mode
- Tailwind CSS + shadcn/ui (24+ components)
- Minimal setup - ready for features
Available Feature Modules
Choose from 10 standalone modules:
- Marketing Landing Page - Complete homepage with hero, features, testimonials, integrations
- Documentation Pages - Full docs structure with navigation, search, and code examples
- Database - PostgreSQL setup with Drizzle ORM, migrations, and lazy connection
- Authentication - Better Auth with sign-in/sign-up, Google OAuth, protected routes, dashboard
- Payments - Polar.sh integration with subscriptions, checkout, webhooks, management UI
- Email - Resend integration with React Email templates (welcome, password reset, etc.)
- AI Chat - OpenAI streaming chat interface with GPT-4o and web search
- File Upload - Cloudflare R2 uploads with drag-and-drop UI and progress tracking
- Analytics - PostHog integration for event tracking and feature flags
- SEO - Automated sitemap, robots.txt, blog structure, and structured data utilities
Workflow Options
Option 1: Start Fresh
npx shipd init my-app --features marketing-landing,auth,paymentsOption 2: Incremental
# Start with base
npx shipd init my-app
# Add features later
cd my-app
npx shipd append --features auth,database
npx shipd append --features paymentsBoth workflows are fully supported!
Requirements
- Node.js 18.x or higher
- Active Shipd subscription (authentication is automatic)
- npm, pnpm, or yarn package manager
Pricing
Shipd requires an active subscription to generate projects. Visit shipd.dev to view pricing and subscribe.
Support
- Documentation: shipd.dev/docs
- Issues: GitHub Issues
- Email: [email protected]
License
MIT
Links
Made with ❤️ by the Shipd team
