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.
Learn the Workspace Intelligence architectureOpen Workspai.dev for concepts, contracts, architecture maps, guides, and reference material.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 ~/.workspai/workspaces/my-workspacenpx workspai create project nextjs my-web --yes
npx workspai create project fastapi.standard my-api --yesnpx workspai workspace intelligence run --for-agent generic --strict --jsonnpx workspai pipeline --json --strict --no-agent-syncOr 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
11 contract-ordered stages — one authoritative run result
Model
Stage 1Diff
Stage 2Impact
Stage 3Doctor Evidence
Stage 4Contract Evidence
Stage 5Analyze Evidence
Stage 6Readiness Evidence
Stage 7Verify
Stage 8Agent Context
Stage 9Agent Grounding
Stage 10Explain
Stage 11Start or connect a workspace
npx workspai workspace intelligence run --for-agent generic --strict --jsonThe commands below are targeted inspection and recovery tools, not a replacement execution loop.
npx workspai my-workspace --yes --profile polyglotnpx workspai bootstrap --profile polyglotcd /path/to/project && npx workspai adopt .Adopt keeps source in place and writes a portable project lens for users and agents. The absolute workspace binding remains in a gitignored local file, so workspace-aware commands can still run from the project directory.
npx workspai create project nextjs my-web --yesnpx workspai create project fastapi.standard my-api --yesnpx workspai create project rust.axum my-api --yesnpx workspai create project desktop.tauri my-desktop --yes
npx workspai create project extension.vscode editor-tools --yesUnderstand and govern changes
Workspai first reconciles the canonical Workspace Model. It then derives and enriches the Knowledge Graph only from the projects and topology that model authorizes. A stable structural hash binds the two artifacts, and consumers reject stale identity, topology, or hash mismatches.
npx workspai workspace model --json --writenpx workspai workspace graph search "authentication endpoint" --limit 12 --jsonnpx workspai workspace graph evidence "GET /users" --json
npx workspai workspace graph path frontend-api "GET /users" --jsonnpx workspai workspace graph overlay --from previous-graph.json --jsonnpx workspai workspace graph benchmark "authentication endpoint" --limit 12 --jsonnpx workspai workspace graph jsonld --output workspace-graph.jsonldnpx workspai workspace eval report --jsonnpx workspai project coverage --run --target 80 --strict --jsonnpx workspai workspace eval compare baseline.json candidate.json --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 .workspai/reports/workspace-model-diff-last-run.json --json --writeCreate planner
RapidKit chooses the safest path — native create, official generator handoff, or existing project adoption
| Lane | Use when | Result |
|---|---|---|
native | Workspai owns the scaffold contract, marker, registry, doctor, bootstrap, and workspace model path. | Create the project with a first-class kit or supported generator |
official | A stable ecosystem generator exists. Available entries run the official generator and then register the project; planned entries fall back to adopt/import. | Use the ecosystem generator, then adopt into Workspace Intelligence |
existing | 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, rust.axum. Official generator paths: 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, desktop.tauri, desktop.electron, extension.vscode, php.laravel. Planned official handoffs: wordpress-site, wordpress-block, 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
cd ./legacy-api && npx workspai adopt .npx 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
│ ├── .workspai/ # Project metadata
│ ├── app/ # App Router
│ └── package.json
├── my-api/ # FastAPI project
│ ├── .workspai/ # Project metadata
│ ├── 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
├── .workspai/ # 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/
├── .workspai/ # Workspai project metadata
│ ├── 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