npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@systemlabs/foundation-cli

v0.2.1

Published

Foundation CLI — scaffold and configure full-stack applications with modular architecture.

Downloads

108

Readme

@systemlabs/foundation-cli

Scaffold production-ready full-stack projects in under 3 minutes.

npx @systemlabs/foundation-cli create my-app

Foundation CLI is a dependency-aware project assembler. You describe your intent — "I want a SaaS with Next.js, Express, PostgreSQL, and JWT auth" — and the engine resolves the full dependency graph, merges configurations without conflicts, injects integration code, and produces a working project.

It is NOT:

  • A static template copier (like create-next-app or degit)
  • A code scaffolding tool (like Yeoman or Hygen)
  • A deployment tool — it generates deployment config, not deploy artifacts

Quick start

# One-shot, no install needed
npx @systemlabs/foundation-cli

# Or install globally
npm install -g @systemlabs/foundation-cli
foundation create my-app

Example session

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  FOUNDATION CLI  ·  Build your architecture in minutes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

? Project name › my-saas-app
? What are you building?
❯ SaaS Application
  AI Application
  E-commerce
  API Backend
  Internal Tool

? Frontend framework   › Next.js
? Backend             › Express
? Database            › PostgreSQL
? ORM                 › Prisma
? Auth                › JWT
? UI system           › Tailwind + ShadCN
? Deployment          › Docker

✔ Files staged (47 files)
✔ npm packages installed

🎉 my-saas-app is ready.  cd my-saas-app && npm run dev

Commands

Create

foundation create [project-name]        # interactive
foundation new [project-name]           # alias
foundation create my-app --preset saas  # non-interactive / CI mode

Available presets: saas, ai-app, ecommerce, api-backend, internal-tool

Module management

foundation add orm-prisma               # add a built-in module
foundation add stripe                   # add an official add-on
foundation add foundation-plugin-redis  # add a community plugin

foundation switch orm prisma            # swap the active ORM
foundation switch backend nestjs        # swap the active backend
foundation switch database mongodb      # swap the active database

foundation search <query>               # search the plugin registry on npm

Code generation

foundation generate model Post          # interactive field prompts → ORM schema
foundation generate crud Post           # model + service + controller + routes
foundation generate --list              # list all available generators

Project inspection

foundation info                         # stack summary, modules, ORM, plugins
foundation doctor                       # health checks: Node version, env vars, compatibility
foundation validate                     # validate project.lock and foundation.config.json

Dev automation

foundation dev                          # delegates to npm run dev
foundation test                         # delegates to npm run test

foundation db migrate                   # npm run db:migrate / alembic upgrade head
foundation db seed                      # npm run db:seed
foundation db reset                     # npm run db:reset
foundation db studio                    # Prisma Studio (Prisma only)
foundation db push                      # Prisma db push (Prisma only)

Tooling

foundation eject [module-id]            # copy module files into your project
foundation upgrade [--dry-run]          # upgrade modules via the lockfile
foundation create-plugin [name]         # scaffold a new plugin package

AI assistant (optional — requires API key)

foundation ai "create a blog with posts, comments, and JWT auth"

Requires ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment. The CLI sends your prompt to the model with the full module catalogue, receives a structured plan, and runs foundation add + foundation generate automatically.


Available modules

Frontend

Next.js · React + Vite · Vue 3 · Svelte

Backend

Express · NestJS · FastAPI · Django

Database

PostgreSQL · MySQL · MongoDB · SQLite · Supabase

ORM

Prisma · TypeORM · Mongoose · SQLAlchemy

Auth

JWT · OAuth (Google + GitHub) · Session · Clerk · Auth0

UI

Tailwind CSS · ShadCN/UI · Material UI · Chakra UI · Bootstrap

State

Zustand · Redux Toolkit · TanStack Query

Deployment

Docker · Vercel · Render · AWS ECS

Official add-ons

Stripe · Redis · OpenAI


How it works

Every project generation runs through a four-stage pipeline:

  1. Module Registry — loads, validates, and indexes all built-in and plugin modules
  2. Dependency Resolver — builds a DAG of selected modules, detects conflicts, topologically sorts
  3. Composition Planner — merges file trees and config patches before touching disk
  4. Execution Pipeline — renders EJS templates, writes files atomically via FileTransaction, runs 14 lifecycle hooks, installs packages

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


Configuration files

After generation, your project contains:

.foundation/
├── project.lock            ← exact module + CLI versions (read by upgrade, switch, info, doctor)
└── foundation.config.json  ← user selections + installed plugins (read by add, switch, generate, eject)

Requirements

  • Node.js ≥ 18
  • npm, pnpm, or yarn

Part of the Foundation CLI ecosystem

| Package | Description | |---------|-------------| | @systemlabs/foundation-cli | ← you are here — user-facing CLI | | @systemlabs/foundation-core | Engine: dependency resolver, composition planner, file transaction | | @systemlabs/foundation-modules | All built-in modules (frontend, backend, database, auth, …) | | @systemlabs/foundation-plugin-sdk | Plugin contract, types, manifest schema | | @systemlabs/foundation-testing | Test utilities for module and plugin authors |


License

MIT — see LICENSE