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-modules

v0.3.1

Published

Built-in modules for databases, backends, auth providers, and services.

Readme

@systemlabs/foundation-modules

All built-in modules for Foundation CLI — frontend frameworks, backends, databases, ORMs, auth, UI systems, state management, deployment targets, and official add-ons.

This package contains every first-party module that ships with Foundation CLI. Each module is a PluginDefinition that contributes files, config patches, and lifecycle hooks to the composition engine. You do not import this package directly — it is loaded automatically by @systemlabs/foundation-cli.

# Use Foundation CLI — it loads this package automatically
npx @systemlabs/foundation-cli create my-app

Available modules

Every module below generates real, compile-ready files — not stubs or placeholder comments.

Frontend

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | frontend-nextjs | Next.js | App Router layout, page, globals.css, next.config.mjs | | frontend-react-vite | React + Vite | index.html, main.tsx, App.tsx, vite.config.ts | | frontend-vue | Vue 3 | App.vue, main.ts, vite.config.ts | | frontend-svelte | Svelte | App.svelte, main.ts, svelte.config.js, vite.config.ts |

Backend

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | backend-express | Express | server.ts with CORS, Helmet, health endpoint | | backend-nestjs | NestJS | AppModule, AppController, AppService, main.ts | | backend-fastapi | FastAPI | app/main.py, requirements.txt, CORS middleware | | backend-django | Django | settings.py, urls.py, DRF views, requirements.txt |

Database

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | database-postgresql | PostgreSQL | src/db/client.ts (node-postgres pool), 001_init.sql | | database-mysql | MySQL | src/db/client.ts (mysql2 pool), 001_init.sql | | database-mongodb | MongoDB | src/db/client.ts (native driver), 001_init.js | | database-sqlite | SQLite | src/db/client.ts (better-sqlite3, WAL), 001_init.sql | | database-supabase | Supabase | src/db/client.ts (anon + admin clients), init migration |

ORM

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | orm-prisma | Prisma | prisma/schema.prisma, src/lib/db.ts (PrismaClient) | | orm-typeorm | TypeORM | src/data-source.ts, src/entities/User.entity.ts | | orm-mongoose | Mongoose | src/lib/db.ts, src/models/User.model.ts | | orm-sqlalchemy | SQLAlchemy | src/database.py, src/models.py, alembic.ini |

Authentication

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | auth-jwt | JWT | auth.service.ts, auth.middleware.ts, auth.router.ts | | auth-oauth | OAuth (Google + GitHub) | oauth.config.ts, oauth.router.ts (Passport.js) | | auth-session | Session-based | session.config.ts, session.middleware.ts, session.router.ts | | auth-clerk | Clerk | clerk.middleware.ts, clerk.router.ts, AuthProvider.tsx | | auth-auth0 | Auth0 | auth0.config.ts, auth0.middleware.ts, AuthProvider.tsx |

UI

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | ui-tailwind | Tailwind CSS | tailwind.config.js, postcss.config.js, globals.css | | ui-shadcn | ShadCN/UI | tailwind.config.ts with CSS variables, components.json, utils.ts | | ui-mui | Material UI | theme.ts, MuiProvider.tsx with AppRouterCacheProvider | | ui-chakra | Chakra UI | ChakraProvider.tsx with extended theme | | ui-bootstrap | Bootstrap | layout.tsx with Bootstrap import, custom.scss |

State management

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | state-zustand | Zustand | src/store/index.ts with devtools + persistence | | state-redux | Redux Toolkit | store/index.ts, counterSlice.ts, ReduxProvider.tsx | | state-tanstack-query | TanStack Query | query-client.ts, QueryProvider.tsx, example hooks |

Deployment

| Module ID | Option | Key files generated | |-----------|--------|---------------------| | deployment-docker | Docker | Multi-stage Dockerfile, docker-compose.yml with Postgres | | deployment-vercel | Vercel | vercel.json with CORS headers, .vercelignore | | deployment-render | Render | render.yaml Blueprint with managed PostgreSQL | | deployment-aws | AWS ECS | ECS task definition, GitHub Actions CI/CD workflow |

Official add-on plugins

| Plugin | Install command | What it adds | |--------|----------------|--------------| | Stripe | foundation add stripe | Stripe client singleton, webhook handler with event routing, type exports | | Redis | foundation add redis | Redis client with connection helpers | | OpenAI | foundation add openai | OpenAI client with typed completions helper |


Project archetypes

Pick an archetype with --preset and every module is pre-selected with battle-tested defaults. You can still override any selection interactively.

| Archetype | Frontend | Backend | Database | Auth | UI | Deploy | |-----------|----------|---------|----------|------|----|--------| | saas | Next.js | Express | PostgreSQL | JWT | Tailwind | Docker | | ai-app | Next.js | Express | PostgreSQL | JWT | Tailwind + TanStack Query | Docker | | ecommerce | Next.js | Express | PostgreSQL | Session | ShadCN + Zustand | Docker | | api-backend | None | Express | PostgreSQL | JWT | None | Docker | | internal-tool | Next.js | Express | PostgreSQL | JWT | Tailwind | None |

foundation create my-app --preset saas

Module contract

Every module in this package exports a PluginDefinition and conforms to the ModuleManifest schema defined in @systemlabs/foundation-plugin-sdk. Modules declare capability tokens via provides and requires, enabling the dependency resolver in @systemlabs/foundation-core to detect conflicts and wire modules together without hard-coded pairings.

ORM modules additionally implement ORMProvider.buildSchemaFiles(), which translates portable ORMModelDefinition[] objects (including relation definitions) into provider-specific FileEntry[]. This means any module in any category can register a model and have it rendered correctly regardless of which ORM the user selected.


Adding a custom module

If you want to contribute a new built-in module, see CONTRIBUTING.md in the monorepo. For third-party plugins, use @systemlabs/foundation-plugin-sdk and publish to npm with the foundation-plugin keyword.


Part of the Foundation CLI ecosystem

| Package | Description | |---------|-------------| | @systemlabs/foundation-cli | User-facing CLI — foundation create, add, generate, etc. | | @systemlabs/foundation-core | Engine: dependency resolver, composition planner, file transaction | | @systemlabs/foundation-modules | ← you are here — all built-in modules | | @systemlabs/foundation-plugin-sdk | Plugin contract, types, manifest schema | | @systemlabs/foundation-testing | Test utilities for module and plugin authors |


License

MIT — see LICENSE