Govern polyglot workspaces
Complete guide to RapidKit's npm CLI, Python Core modules, Next.js and backend kits, workspace intelligence, contracts, archive handoff, and Workspai extension.
Quick Start
Start with a governed workspace, then scaffold kits or adopt existing repos
Start here (recommended)
Install the CLI, create a polyglot workspace, model and verify with shared evidence — aligned with the npm README.
npm install -g workspainpx workspai --helpnpx workspai my-workspace --yes --profile polyglotcd ~/rapidkit/workspaces/my-workspace
npx workspai bootstrap --profile polyglotnpx workspai create project nextjs my-web --yes
npx workspai create project fastapi.standard my-api --yesnpx workspai workspace model --json
npx workspai workspace context --for-agent --json --write
npx workspai pipeline --json --strictnpx workspai workspace agent-sync --write --refresh-context --preset enterpriseOr pick a single framework below for a project-first flow.
Choose Your Framework
Next.js
Official Next.js app with workspace metadata
Choose Installation Method
NPM / Node.js
EasiestQuick start for demos and prototypes
- Node.js 20+
- npm or yarn
Installation Steps for Next.js
npx workspai create project nextjs my-webcd my-webnpx workspai initnpx workspai devYour Next.js app is ready!
Visit http://localhost:3000 to see your app.
Workspace Intelligence
Model, context, impact, verify, and sync — the deterministic CLI layer
Model
workspace model --jsonContext
workspace context --for-agent --writeImpact
workspace impact --from <snapshot>Verify
workspace verify --strict --jsonSync
workspace agent-sync --writeBootstrap a workspace
npx workspai my-workspace --yes --profile polyglotnpx workspai bootstrap --profile polyglotnpx workspai adopt /path/to/projectnpx workspai create project nextjs my-web --yesnpx workspai create project fastapi.standard my-api --yesUnderstand and govern changes
npx workspai workspace model --jsonnpx workspai workspace context --for-agent --json --writenpx workspai workspace agent-sync --write --refresh-context --preset enterprisenpx workspai workspace diff --from git --jsonnpx workspai workspace impact --from <snapshot> --jsonnpx workspai workspace verify --strict --jsonnpx workspai pipeline --json --strictnpx workspai workspace trace --from .rapidkit/reports/workspace-model-diff-last-run.json --json --writeCreate planner
RapidKit chooses the safest path — native create, external adopt, or adopt-only
| Lane | Use when | Result |
|---|---|---|
native-create | Workspai owns the scaffold contract, marker, registry, doctor, bootstrap, and workspace model path. | Create the project with a first-class kit or supported generator |
external-create-adopt | A stable ecosystem generator exists, but Workspai does not yet own the post-create contract. | Use the ecosystem generator, then adopt into Workspace Intelligence |
adopt-only | The project enters Workspace Intelligence through import/adopt, not native create. | Register, model, verify, and govern without scaffolding |
Native create contract: fastapi.standard, fastapi.ddd, nestjs.standard, springboot.standard, gofiber.standard, gogin.standard, dotnet.webapi.clean, frontend.nextjs, frontend.remix, frontend.vite-react, frontend.vite-vue, frontend.vite-svelte, frontend.vite-solid, frontend.vite-vanilla, frontend.nuxt, frontend.angular, frontend.astro, frontend.sveltekit. External create-adopt lanes: wordpress-site, wordpress-block, laravel, symfony, rails. Everything else enters via adopt/import. Full create planner docs
CLI Commands
Workspace, project, module, archive, and runtime-aware commands
npx workspai my-workspaceCreate a governed workspace with shared tooling
npx workspai my-workspacenpx workspai adoptRegister an existing project into a workspace
npx workspai adopt ./legacy-apinpx workspai create projectCreate a new project with interactive wizard
npx workspai create project nextjs webnpx workspai workspace modelMaterialize workspace topology and contracts
npx workspai workspace model --json --writenpx workspai workspace verifyRun strict readiness and doctor checks
npx workspai workspace verify --strictnpx workspai addAdd modules to Core-backed projects
npx workspai add module authnpx workspai devStart development server with hot-reload
npx workspai dev --port 3000npx workspai modulesList available modules and details
npx workspai modules listModule System
Production-ready components for your project
Authentication
JWT, OAuth2, 2FA
Database
ORM, Migrations, Pooling
API
Rate Limit, Validation, Cache
Monitoring
Logging, Metrics, Traces
Deployment
Docker, K8s, CI/CD
Testing
Unit, Integration, E2E
Adding Modules to Your Project
rapidkit add module authrapidkit add module cacherapidkit add module observabilityWorkspace Structure
Organize multiple projects in one workspace
Workspace Layout
my-workspace/
├── web/ # Next.js project
│ ├── .rapidkit/ # Project config
│ ├── app/ # App Router
│ └── package.json
├── my-api/ # FastAPI project
│ ├── .rapidkit/ # Project config
│ ├── src/ # Source code
│ ├── config/ # Configuration
│ ├── tests/ # Test suite
│ ├── pyproject.toml # Poetry config
│ └── Dockerfile # Docker setup
├── my-service/ # NestJS project
├── go-api/ # Go Fiber or Go Gin project
├── spring-api/ # Spring Boot project
├── dotnet-api/ # ASP.NET Core project
├── .rapidkit/ # Workspace intelligence artifacts
│ └── reports/ # model, context, verify outputs
├── .venv/ # Workspace Python environment
├── .rapidkit-workspace # Workspace metadata
├── poetry.lock # Locked Python deps
├── pyproject.toml # Workspace Python deps
├── rapidkit # CLI script (bash)
├── rapidkit.cmd # CLI script (Windows)
├── README.md
└── MakefileShared Environment
All projects in a workspace share a single Python environment (via pyproject.toml)
Project Structure
Clean Architecture with DDD principles
Next.js Project Structure
my-web/
├── .rapidkit/ # RapidKit config
│ ├── project.json # Project metadata
│ └── context.json # Project context
├── app/ # App Router pages
├── public/ # Static assets
├── package.json # npm dependencies
├── next.config.ts # Next.js config
├── tsconfig.json # TypeScript config
└── README.mdCore depends on abstractions
Self-contained modules
Business logic isolated
Ready to Build?
Start building your next project with RapidKit