JS-Stack CLI

Examples & Use Cases

Real-world examples, use cases, and project templates you can create with JS-Stack CLI

Examples & Use Cases

Real-world examples of projects you can create with JS-Stack CLI. Each example includes the complete command and what you'll get.

SaaS Application 💼

A complete SaaS application with authentication, database, and production-ready setup:

npx create-js-stack@latest my-saas \
  --frontend nextjs \
  --database postgres \
  --orm prisma \
  --auth better-auth \
  --addons docker,testing,biome \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ Next.js 15 full-stack application with App Router
  • ✅ PostgreSQL database with Prisma ORM
  • ✅ Better Auth for authentication (sessions, OAuth)
  • ✅ Docker configuration for deployment
  • ✅ Testing setup (Vitest + Testing Library)
  • ✅ Biome for linting and formatting
  • ✅ Git repository initialized
  • ✅ Dependencies installed

Perfect for: SaaS platforms, web applications, dashboards

E-Commerce Platform 🛒

Complete e-commerce platform with React frontend and Express API:

npx create-js-stack@latest my-store \
  --frontend react \
  --backend express \
  --database postgres \
  --orm prisma \
  --auth jwt \
  --addons docker,testing,biome \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ React frontend with Vite
  • ✅ Express REST API backend
  • ✅ PostgreSQL database with Prisma
  • ✅ JWT authentication
  • ✅ Docker for containerization
  • ✅ Testing framework
  • ✅ Biome for code quality

Perfect for: Online stores, marketplaces, product catalogs

Blog Platform 📝

Content-focused blog with Next.js and SQLite:

npx create-js-stack@latest my-blog \
  --frontend nextjs \
  --database sqlite \
  --orm prisma \
  --auth none \
  --addons testing,biome \
  --package-manager pnpm \
  --git

What you get:

  • ✅ Next.js with SSG for fast static pages
  • ✅ SQLite database (no server needed)
  • ✅ Prisma for content management
  • ✅ No authentication (public blog)
  • ✅ Testing and linting setup

Perfect for: Personal blogs, content sites, documentation sites

Enterprise API Backend 🏢

Production-ready API with NestJS and TypeORM:

npx create-js-stack@latest my-api \
  --frontend none \
  --backend nestjs \
  --database postgres \
  --orm typeorm \
  --auth passport \
  --addons docker,testing \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ NestJS enterprise framework
  • ✅ TypeORM with decorators
  • ✅ Passport.js authentication
  • ✅ Docker configuration
  • ✅ Comprehensive testing

Perfect for: Enterprise APIs, microservices, B2B applications

Mobile Application 📱

Cross-platform mobile app with React Native:

npx create-js-stack@latest my-mobile-app \
  --frontend react-native \
  --backend express \
  --database mongodb \
  --orm mongoose \
  --auth jwt \
  --addons testing,docker \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ React Native mobile app
  • ✅ Express API backend
  • ✅ MongoDB with Mongoose
  • ✅ JWT authentication
  • ✅ Testing setup
  • ✅ Docker for backend

Perfect for: Mobile apps, cross-platform applications

Monorepo Setup 📦

Multi-package monorepo with Turborepo:

npx create-js-stack@latest my-monorepo \
  --frontend react vue \
  --backend express \
  --database postgres \
  --orm prisma \
  --addons turborepo,testing,biome \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ Multiple frontends (React + Vue)
  • ✅ Shared backend API
  • ✅ Turborepo for build orchestration
  • ✅ Shared packages structure
  • ✅ Fast incremental builds

Perfect for: Large projects, multiple products, shared codebases

High-Performance API ⚡

Fast API with Fastify and PostgreSQL:

npx create-js-stack@latest my-fast-api \
  --frontend none \
  --backend fastify \
  --database postgres \
  --orm prisma \
  --auth jwt \
  --addons docker,testing \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ Fastify (2x faster than Express)
  • ✅ PostgreSQL with Prisma
  • ✅ JWT authentication
  • ✅ Optimized for performance

Perfect for: High-traffic APIs, real-time applications, microservices

Quick Prototype 🚀

Rapid prototyping with minimal setup:

npx create-js-stack@latest my-prototype \
  --frontend react \
  --backend express \
  --database sqlite \
  --orm prisma \
  --package-manager bun \
  --yes

What you get:

  • ✅ React + Express stack
  • ✅ SQLite (no database server)
  • ✅ Fast Bun package manager
  • ✅ Quick setup with --yes flag

Perfect for: Prototypes, MVPs, proof of concepts

Full-Stack with Nuxt 🟢

Vue-based full-stack application:

npx create-js-stack@latest my-nuxt-app \
  --frontend nuxt \
  --database postgres \
  --orm prisma \
  --auth better-auth \
  --addons testing,biome,docker \
  --package-manager pnpm \
  --git \
  --install

What you get:

  • ✅ Nuxt 3 full-stack framework
  • ✅ PostgreSQL with Prisma
  • ✅ Better Auth integration
  • ✅ Complete tooling setup

Perfect for: Vue-based applications, content sites, full-stack apps

Using Presets

Instead of typing all flags, use presets:

# Optimal full-stack setup
npx create-js-stack@latest my-app --preset optimal-fullstack

# Next.js application
npx create-js-stack@latest my-app --preset nextjs-app

# Express API
npx create-js-stack@latest my-api --preset express-api

# MERN stack
npx create-js-stack@latest my-app --preset mern-stack

See all available presets in the interactive builder or run:

npx create-js-stack@latest presets