New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@systemlabs/foundation-modules

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@systemlabs/foundation-modules

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

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

@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 IDOptionKey files generated
frontend-nextjsNext.jsApp Router layout, page, globals.css, next.config.mjs
frontend-react-viteReact + Viteindex.html, main.tsx, App.tsx, vite.config.ts
frontend-vueVue 3App.vue, main.ts, vite.config.ts
frontend-svelteSvelteApp.svelte, main.ts, svelte.config.js, vite.config.ts

Backend

Module IDOptionKey files generated
backend-expressExpressserver.ts with CORS, Helmet, health endpoint
backend-nestjsNestJSAppModule, AppController, AppService, main.ts
backend-fastapiFastAPIapp/main.py, requirements.txt, CORS middleware
backend-djangoDjangosettings.py, urls.py, DRF views, requirements.txt

Database

Module IDOptionKey files generated
database-postgresqlPostgreSQLsrc/db/client.ts (node-postgres pool), 001_init.sql
database-mysqlMySQLsrc/db/client.ts (mysql2 pool), 001_init.sql
database-mongodbMongoDBsrc/db/client.ts (native driver), 001_init.js
database-sqliteSQLitesrc/db/client.ts (better-sqlite3, WAL), 001_init.sql
database-supabaseSupabasesrc/db/client.ts (anon + admin clients), init migration

ORM

Module IDOptionKey files generated
orm-prismaPrismaprisma/schema.prisma, src/lib/db.ts (PrismaClient)
orm-typeormTypeORMsrc/data-source.ts, src/entities/User.entity.ts
orm-mongooseMongoosesrc/lib/db.ts, src/models/User.model.ts
orm-sqlalchemySQLAlchemysrc/database.py, src/models.py, alembic.ini

Authentication

Module IDOptionKey files generated
auth-jwtJWTauth.service.ts, auth.middleware.ts, auth.router.ts
auth-oauthOAuth (Google + GitHub)oauth.config.ts, oauth.router.ts (Passport.js)
auth-sessionSession-basedsession.config.ts, session.middleware.ts, session.router.ts
auth-clerkClerkclerk.middleware.ts, clerk.router.ts, AuthProvider.tsx
auth-auth0Auth0auth0.config.ts, auth0.middleware.ts, AuthProvider.tsx

UI

Module IDOptionKey files generated
ui-tailwindTailwind CSStailwind.config.js, postcss.config.js, globals.css
ui-shadcnShadCN/UItailwind.config.ts with CSS variables, components.json, utils.ts
ui-muiMaterial UItheme.ts, MuiProvider.tsx with AppRouterCacheProvider
ui-chakraChakra UIChakraProvider.tsx with extended theme
ui-bootstrapBootstraplayout.tsx with Bootstrap import, custom.scss

State management

Module IDOptionKey files generated
state-zustandZustandsrc/store/index.ts with devtools + persistence
state-reduxRedux Toolkitstore/index.ts, counterSlice.ts, ReduxProvider.tsx
state-tanstack-queryTanStack Queryquery-client.ts, QueryProvider.tsx, example hooks

Deployment

Module IDOptionKey files generated
deployment-dockerDockerMulti-stage Dockerfile, docker-compose.yml with Postgres
deployment-vercelVercelvercel.json with CORS headers, .vercelignore
deployment-renderRenderrender.yaml Blueprint with managed PostgreSQL
deployment-awsAWS ECSECS task definition, GitHub Actions CI/CD workflow

Official add-on plugins

PluginInstall commandWhat it adds
Stripefoundation add stripeStripe client singleton, webhook handler with event routing, type exports
Redisfoundation add redisRedis client with connection helpers
OpenAIfoundation add openaiOpenAI 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.

ArchetypeFrontendBackendDatabaseAuthUIDeploy
saasNext.jsExpressPostgreSQLJWTTailwindDocker
ai-appNext.jsExpressPostgreSQLJWTTailwind + TanStack QueryDocker
ecommerceNext.jsExpressPostgreSQLSessionShadCN + ZustandDocker
api-backendNoneExpressPostgreSQLJWTNoneDocker
internal-toolNext.jsExpressPostgreSQLJWTTailwindNone
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

PackageDescription
@systemlabs/foundation-cliUser-facing CLI — foundation create, add, generate, etc.
@systemlabs/foundation-coreEngine: dependency resolver, composition planner, file transaction
@systemlabs/foundation-modules← you are here — all built-in modules
@systemlabs/foundation-plugin-sdkPlugin contract, types, manifest schema
@systemlabs/foundation-testingTest utilities for module and plugin authors

License

MIT — see LICENSE

Keywords

cli

FAQs

Package last updated on 25 Mar 2026

Related posts