Skip to content

lightbearco/create-lightbear-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ create-lightbear-app

The Ultimate SaaS Scaffold CLI โœจ

Build production-ready SaaS applications in minutes, not months

npm version License: MIT Node.js Version


๐ŸŒŸ Why create-lightbear-app?

Stop wasting time on boilerplate and start building features that matter. create-lightbear-app is the most comprehensive CLI tool for scaffolding modern SaaS applications with enterprise-grade architecture and best practices baked in.

๐ŸŽฏ One Command, Infinite Possibilities

# The fastest way to start your SaaS journey
bunx create-lightbear-app@latest my-awesome-saas

โšก Quick Start

# Create a new project
bunx create-lightbear-app@latest

๐Ÿ—๏ธ Architecture Options

๐Ÿ“ฆ Package Managers

  • ๐ŸฅŸ Bun - Blazing fast JavaScript runtime & package manager
  • ๐Ÿ“ฆ NPM - Stable and widely used
  • ๐Ÿงถ Yarn - Classic and reliable
  • โšก PNPM - Fast and efficient

๐Ÿ—๏ธ Monorepo Powerhouses

  • ๐Ÿš€ Turborepo - Fast builds with smart caching (recommended)
  • ๐Ÿ…ง Nx - Powerful dev tools & generators
  • ๐Ÿ“ NPM Workspaces - Simple & lightweight
  • ๐Ÿ”œ Rush - Coming soon
  • ๐Ÿ”œ Lerna - Coming soon

๐ŸŽจ Frontend Frameworks

  • โ–ฒ Next.js App Router - The future of React with RSC
  • ๐Ÿ“„ Next.js Pages Router - Battle-tested and reliable
  • โšก Vite + React - Lightning-fast development
  • ๐Ÿš€ Astro - Content-focused with islands architecture
  • ๐Ÿ”œ React Vanilla - Coming soon
  • ๐Ÿ”œ Remix - Coming soon

๐Ÿ”Œ Backend & APIs

  • ๐Ÿ”— tRPC - End-to-end typesafe APIs
  • ๐Ÿ—๏ธ NestJS - Enterprise Node.js framework
  • ๐Ÿš€ GraphQL + Apollo - Flexible data layer
  • ๐Ÿ”œ REST APIs - Coming soon

๐ŸŽจ UI & Styling

  • ๐ŸŽญ shadcn/ui - Beautiful copy-paste components
  • ๐ŸŽจ Tailwind CSS - Utility-first styling

๐Ÿ› ๏ธ Database & Backend Services

๐Ÿ’พ Modern ORMs

  • ๐Ÿ”ท Prisma - Popular, feature-rich ORM
  • ๐Ÿ’ง Drizzle ORM - Lightweight, type-safe
  • ๐Ÿ”‘ Kysely - Type-safe SQL query builder

๐Ÿข Database Providers

  • โšก Neon - Serverless Postgres
  • ๐Ÿ”ฅ Supabase - Open source Firebase alternative
  • ๐ŸŒ PlanetScale - Serverless MySQL

๐Ÿ” Authentication & Payments

๐Ÿ›ก๏ธ Authentication Solutions

  • ๐Ÿ‘ค Clerk - Complete user management
  • ๐Ÿ”‘ NextAuth.js - Flexible authentication for Next.js

๐Ÿ’ณ Payment Processing

  • ๐Ÿ’ฐ Stripe - Complete payment infrastructure
  • ๐Ÿ”œ More providers - Coming soon

๐Ÿงช Testing & Quality Assurance

๐Ÿ”ฌ Testing Frameworks

  • ๐Ÿƒ Jest - Unit testing
  • ๐ŸŽญ Playwright - E2E testing
  • โš›๏ธ React Testing Library - Component testing

๐Ÿงน Code Quality Tools

  • ๐Ÿ”ฅ Biome - Fast, all-in-one linter & formatter
  • ๐Ÿ“ ESLint + Prettier - Traditional setup
  • ๐Ÿช Husky - Git hooks
  • ๐Ÿ“ Commitlint - Commit message linting

๐ŸŽจ UI Development Tools

๐Ÿ“š Storybook Ecosystem

  • ๐Ÿ“– Storybook - Build components in isolation
  • ๐ŸŽจ Storybook + Chromatic - Visual testing and review
  • ๐Ÿ” React DevTools - Browser extension recommended
  • ๐Ÿ“ Storybook + Figma - Design tokens integration
  • ๐ŸŽฏ Complete UI Suite - Everything included

๐Ÿš€ DevOps & Deployment

๐Ÿ”„ CI/CD Pipelines

  • ๐Ÿ”„ GitHub Actions - Automated workflows
  • ๐Ÿณ Docker - Containerization

๐Ÿ“ฑ Modern Web Features

  • ๐Ÿ“ฑ Progressive Web App (PWA) - Native app experience
  • ๐ŸŽฏ Liveblocks - Realtime collaboration
  • ๐Ÿ“ก Ably - Realtime messaging
  • โšก Performance optimized - Best practices included

๐ŸŽฎ Interactive Setup

Our CLI guides you through every decision with intelligent defaults:

    โ•”โ•โ•—โ”ฌโ”€โ”โ”Œโ”€โ”โ”Œโ”€โ”โ”Œโ”ฌโ”โ”Œโ”€โ”  โ•ฆ  โ”ฌโ”Œโ”€โ”โ”ฌ โ”ฌโ”Œโ”ฌโ”  โ•”โ•โ•—โ”Œโ”ฌโ”โ”Œโ”€โ”โ”Œโ”€โ”โ”ฌโ”Œโ”€
    โ•‘  โ”œโ”ฌโ”˜โ”œโ”ค โ”œโ”€โ”ค โ”‚ โ”œโ”ค   โ•‘  โ”‚โ”‚ โ”ฌโ”œโ”€โ”ค โ”‚   โ•šโ•โ•— โ”‚ โ”œโ”€โ”คโ”‚  โ”œโ”ดโ”
    โ•šโ•โ•โ”ดโ””โ”€โ””โ”€โ”˜โ”ด โ”ด โ”ด โ””โ”€โ”˜  โ•ฉโ•โ•โ”ดโ””โ”€โ”˜โ”ด โ”ด โ”ด   โ•šโ•โ• โ”ด โ”ด โ”ดโ””โ”€โ”˜โ”ด โ”ด
    
    ๐Ÿš€ A powerful CLI tool to scaffold modern SaaS applications
       with best practices and popular technology choices
    
    โœจ Features: Turborepo/Nx/NPM โ€ข Next.js/Vite/Astro โ€ข shadcn/ui
       TypeScript โ€ข tRPC โ€ข Neon/Supabase โ€ข Auth โ€ข Stripe
       Docker โ€ข CI/CD โ€ข Testing โ€ข Storybook โ€ข PWA & more
    
                                       ๐Ÿ’œ made with love by Lightbear

? What's your project name? โ€บ my-awesome-saas
? ๐Ÿ“ฆ Choose your package manager: โ€บ ๐ŸฅŸ bun (blazing fast)
? ๐Ÿ—๏ธ  Choose your monorepo tool: โ€บ ๐Ÿš€ Turborepo (recommended - fast builds & caching)
? โš›๏ธ  Choose your frontend framework: โ€บ โ–ฒ Next.js (App Router) / ๐Ÿ“„ Next.js (Pages) / โšก Vite + React / ๐Ÿš€ Astro
? ๐Ÿ”Œ Choose your backend / API layer: โ€บ ๐Ÿ”— tRPC (type-safe APIs)
? ๐Ÿงฉ Choose your UI components: โ€บ ๐ŸŽจ shadcn/ui (beautiful, accessible components)
? ๐ŸŽจ Choose a base color for shadcn/ui: โ€บ Slate (Default)
? ๐Ÿ—„๏ธ  Choose your ORM / Database layer: โ€บ ๐Ÿ”ท Prisma (popular, feature-rich)
? ๐ŸŒ Choose your database provider: โ€บ โšก Neon (serverless Postgres)
? ๐Ÿ” Choose your authentication: โ€บ ๐Ÿ‘ค Clerk (complete auth solution)
? ๐Ÿ’ณ Choose your payments: โ€บ ๐Ÿ’ฐ Stripe (payment processing)
? ๐Ÿงช Select testing tools: โ€บ ๐Ÿƒ Jest (unit testing), ๐ŸŽญ Playwright (e2e testing)
? ๐Ÿ”„ Select CI/CD & DevOps tools: โ€บ ๐Ÿ”„ GitHub Actions (CI/CD automation)
? ๐ŸŽจ Choose your code quality tools: โ€บ ๐Ÿ”ฅ Biome (fast, all-in-one)
? ๐Ÿ› ๏ธ  Select developer experience tools: โ€บ ๐Ÿช Husky (Git hooks)
? ๐Ÿ“š Choose UI development tools: โ€บ ๐ŸŽฏ Complete UI Suite (Storybook + Chromatic + DevTools)
? ๐Ÿ“ฑ Enable Progressive Web App (PWA) support? โ€บ Yes
? ๐Ÿ”„ Choose realtime / collaboration features: โ€บ ๐ŸŽฏ Liveblocks (realtime collaboration)

๐Ÿ“ Generated Project Structure

my-awesome-saas/
โ”œโ”€โ”€ ๐Ÿ“ฆ apps/
โ”‚   โ”œโ”€โ”€ ๐ŸŒ web/                 # Next.js / Astro / Vite frontend
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ฑ mobile/              # React Native (optional)
โ”‚   โ””โ”€โ”€ ๐Ÿ”ง admin/               # Admin dashboard
โ”œโ”€โ”€ ๐Ÿ“š packages/
โ”‚   โ”œโ”€โ”€ ๐ŸŽจ ui/                  # Shared UI components
โ”‚   โ”œโ”€โ”€ ๐Ÿ”— api/                 # tRPC API definitions
โ”‚   โ”œโ”€โ”€ ๐Ÿ’พ database/            # Database schema & migrations
โ”‚   โ”œโ”€โ”€ ๐Ÿ”ง config/              # Shared configuration
โ”‚   โ””โ”€โ”€ ๐Ÿ› ๏ธ utils/               # Shared utilities
โ”œโ”€โ”€ ๐Ÿณ docker/                  # Container configurations
โ”œโ”€โ”€ ๐Ÿ”„ .github/workflows/       # CI/CD pipelines
โ”œโ”€โ”€ ๐Ÿ“– docs/                    # Documentation
โ””โ”€โ”€ ๐Ÿงช tests/                   # E2E tests

๐ŸŒ Environment Setup

Your project comes with comprehensive environment configuration:

# ๐Ÿ—„๏ธ Database Configuration
DATABASE_URL="postgresql://user:password@localhost:5432/mydb"
DIRECT_URL="postgresql://user:password@localhost:5432/mydb"

# ๐Ÿ” Authentication
CLERK_SECRET_KEY="sk_test_..."
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_..."

# ๐Ÿ’ณ Payments
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_..."

# ๐Ÿ”„ Realtime
LIVEBLOCKS_SECRET_KEY="sk_..."
NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY="pk_..."

๐ŸŒŸ Key Features Included

  • โœ… TypeScript First - Full type safety across the stack
  • โœ… Multiple Frontend Options - Next.js, Vite, or Astro for different use cases
  • โœ… Responsive Design - Mobile-first UI components
  • โœ… Dark Mode - Built-in theme switching
  • โœ… Internationalization - Multi-language support ready
  • โœ… SEO Optimized - Meta tags, sitemaps, and more
  • โœ… Performance - Bundle optimization and caching
  • โœ… Security - CSRF protection, secure headers
  • โœ… Monitoring - Error tracking and analytics ready
  • โœ… Documentation - Auto-generated API docs

๐Ÿค Contributing

We love contributions! Check out our Contributing Guide to get started.

# Clone the repository
git clone https://github.com/lightbearco/create-lightbear-app.git

# Install dependencies
bun install

# Start development
bun dev

# Run tests
bun test

๐Ÿ“š Learn More

  • ๐Ÿ“– Documentation - GitHub README
  • ๐Ÿ”œ Video Tutorials - Coming soon
  • ๐Ÿ”œ Discord Community - Coming soon
  • ๐Ÿฆ Follow Updates - Creator's Twitter

๐Ÿ’œ Made with Love

Created by the Lightbear Team

๐Ÿ‘จโ€๐Ÿ’ป Developer: dawar.pro
๐Ÿ”œ Website: Coming soon
๐Ÿ”œ Sponsor: GitHub Sponsors - Coming soon


โญ Star us on GitHub โ€” it motivates us a lot!

โญ Star โ€ข ๐Ÿ› Report Bug โ€ข ๐Ÿ’ก Request Feature

๐Ÿ“„ License

MIT ยฉ Lightbear

About

Build production-ready SaaS applications in minutes, not months

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors