v1.0 · Now Available

Scaffold full-stack
projects instantly

Foundation CLI generates production-ready full-stack applications using a modular architecture. Pick your stack, configure your modules — project ready in seconds.

$ npm install -g @systemlabs/foundation-cli
30+
Built-in Modules
7
Stack Categories
<5s
Project Generation

Everything you need to
ship faster

🧩

Modular Architecture

Every stack component is an isolated module. Mix and match frontend, backend, database, and auth layers with zero conflicts.

composable tree-shaking
🔌

Plugin Ecosystem

Extend Foundation with community plugins published to npm. Install, validate, and sandbox third-party modules safely.

npm registry sandboxed

Dependency Resolution

Automatic conflict detection and topological sort ensures modules are installed in the right order without breaking changes.

DAG resolver conflict-free
🏗️

Full-Stack Scaffolding

Generates complete project structures: directory layout, config files, environment variables, and boilerplate — all wired up.

ejs templates config-merge
🚀

Deployment Ready

First-class support for Docker, Vercel, Render, and AWS. CI/CD pipelines included in the generated output.

Docker GitHub Actions
🪝

Extensible Hooks

14 lifecycle hooks let modules run custom logic before and after file writes — post-processing, validation, or dynamic config patching.

beforeWrite afterWrite onFinalize

Code Generation

Generate ORM-aware models and full CRUD scaffolds interactively. Works across all four ORM providers with relation support.

generate model generate crud
🤖

AI Assistant

Describe your app in plain English. The CLI installs modules, generates models, and scaffolds CRUD automatically via Anthropic or OpenAI.

Anthropic OpenAI
🔁

Stack Switcher

Swap your ORM, backend, or database without touching config files. The CLI re-composes only affected files and updates the lockfile.

switch orm switch backend
🩺

Project Health

Run diagnostics on Node version, env vars, module compatibility, and ORM validity. Get a full project snapshot with one command.

doctor info validate
🗂️

Project Archetypes

Start with battle-tested presets for SaaS, AI App, E-commerce, API Backend, and more — with all module defaults pre-selected.

--preset saas 7 archetypes
🔒

Atomic File Writes

All file operations are staged to a temp directory and committed atomically. Any failure rolls back completely — no partial scaffolds, ever.

stage → commit rollback

Your perfect stack,
generated in seconds

Foundation reads your selections and produces a fully-wired monorepo with all config files, shared types, and deployment targets ready to go.

No manual wiring — everything is pre-configured
Shared TypeScript types across frontend & backend
.env files with the right variables for your stack
foundation.config.json
// Generated stack configuration
{
"projectName": "my-app",
"selections": {
"frontend": "nextjs",
"backend": "express",
"database": "postgresql",
"auth": "jwt",
"ui": "shadcn",
"deployment": "docker"
}
}

See it in action

Interactive prompt-driven project generation

bash — foundation

All the pieces of your stack,
ready to compose

⚛️
Frontend
Next.jspopular React + Vite Vue 3 Svelte
⚙️
Backend
Express NestJS FastAPI Django
🗄️
Database
PostgreSQL MySQL MongoDB Supabase SQLite
🗂️
ORM
Prismapopular TypeORM Mongoose SQLAlchemy
🔐
Auth
JWT OAuth Clerk Auth0 Session
🎨
UI Systems
Tailwind CSS ShadCN/UI Material UI Chakra UI Bootstrap
🔄
State Mgmt
Zustand Redux Toolkit TanStack Query
🚀
Deployment
Docker Vercel Render AWS ECS
Add-ons
OpenAI Redis Stripe + community plugins

Every command you
need, built in

🏗️
Create
foundation create [name]
foundation create my-app --preset saas
npx @systemlabs/foundation-cli
🔌
Modules
foundation add stripe
foundation switch orm prisma
foundation search <query>
Generate
foundation generate model Post
foundation generate crud Post
foundation generate --list
Dev Automation
foundation dev
foundation test
foundation upgrade --dry-run
🗄️
Database
foundation db migrate
foundation db seed / reset / studio
foundation db push
🩺
Inspect & Tooling
foundation info / doctor / validate
foundation eject [module-id]
foundation create-plugin [name]
🤖
AI Assistant requires API key
foundation ai "create a blog system with posts, comments, and JWT auth"