rapidkit
v0.25.2
Published
Official CLI for RapidKit, an open-source workspace platform that standardizes how teams build, scale, and deploy backend services.
Maintainers
Readme
RapidKit NPM CLI
RapidKit is an open-source workspace platform that standardizes how teams build, scale, and deploy backend services.
FastAPI, NestJS, Go/Fiber, and Go/Gin scaffolding with production-ready defaults.
27+ plug-and-play modules are available for FastAPI & NestJS projects.
Clean architecture • Zero boilerplate • Instant deployment.
Official CLI for creating and operating RapidKit workspaces and projects.
- Workspace-first lifecycle (
create workspace→bootstrap→setup→create project) - Multi-runtime support (Python, Node.js, Go)
- Profile + policy enforcement (
warn/strict) - Cache and mirror lifecycle commands for stable environments
Part of the RapidKit Ecosystem
RapidKit NPM CLI is the developer entrypoint layer of the platform.
| Layer | Repository | |---|---| | Ecosystem Hub | getrapidkit/rapidkit | | IDE | getrapidkit/rapidkit-vscode | | Core Engine | getrapidkit/rapidkit-core | | Examples | getrapidkit/rapidkit-examples |
Requirements
- Node.js
>= 20.19.6 - Python
>= 3.10(for Python/Core workflows) - Go (optional, for Go projects)
Install
npm install -g rapidkitOr run directly with npx:
npx rapidkit --helpAll three commands above render the same root help output.
Quick Start (Recommended)
1) Create a workspace
npx rapidkit create workspace my-workspace --yes --profile polyglot
cd my-workspace2) Bootstrap and setup runtimes
npx rapidkit bootstrap --profile polyglot
npx rapidkit setup python
npx rapidkit setup node --warm-deps
npx rapidkit setup go --warm-deps3) Create projects
npx rapidkit create project fastapi.standard my-api --yes --skip-install
npx rapidkit create project nestjs.standard my-nest --yes --skip-install
npx rapidkit create project gofiber.standard my-fiber --yes --skip-installCore Commands
Workspace lifecycle
npx rapidkit create # Prompts: workspace | project
npx rapidkit create workspace <name> [--profile <profile>] [--author <name>] [--yes]
npx rapidkit bootstrap [--profile <profile>] [--json]
npx rapidkit setup <python|node|go> [--warm-deps]
npx rapidkit workspace policy show
npx rapidkit workspace policy set <key> <value>
npx rapidkit doctor workspace [--fix]
npx rapidkit workspace list # Display all workspaces created on this systemProject lifecycle
npx rapidkit create project <kit> <name> [--yes] [--skip-install]
npx rapidkit init
npx rapidkit dev
npx rapidkit test
npx rapidkit build
npx rapidkit startOperations
npx rapidkit cache <status|clear|prune|repair>
npx rapidkit mirror <status|sync|verify|rotate>Profiles
minimal— baseline workspace scaffoldingpython-only— Python-focused workspacenode-only— Node.js-focused workspacego-only— Go-focused workspacepolyglot— Python + Node.js + Goenterprise— polyglot + governance-oriented checks
Policy Modes
mode in .rapidkit/policies.yml controls enforcement:
warn(default): report violations, continuestrict: block incompatible operations
Workspace Policy Management
Manage .rapidkit/policies.yml via CLI (recommended, avoids manual YAML edits):
npx rapidkit workspace policy show
npx rapidkit workspace policy set mode strict
npx rapidkit workspace policy set dependency_sharing_mode shared-runtime-caches
npx rapidkit workspace policy set rules.enforce_toolchain_lock trueSupported keys:
modedependency_sharing_moderules.enforce_workspace_markerrules.enforce_toolchain_lockrules.disallow_untrusted_tool_sourcesrules.enforce_compatibility_matrixrules.require_mirror_lock_for_offline
Setup and Warm Dependencies
setup <runtime> validates toolchain and updates .rapidkit/toolchain.lock.
--warm-deps adds optional dependency warm-up:
- Node: lock/dependency warm-up in Node project directories
- Go: module warm-up in Go project directories
- Python: accepted, currently reports node/go scope
Warm-deps behavior is non-fatal by design and reports explicit outcome (completed / failed / skipped).
VS Code Extension
Use the RapidKit VS Code extension for visual workflows and workspace operations.
- Extension repository: https://github.com/getrapidkit/rapidkit-vscode
CI Workflow Ownership Map
Use this map to avoid overlap when editing CI:
.github/workflows/ci.yml- Build/lint/typecheck/tests/coverage matrix
- General quality and contract gates
.github/workflows/workspace-e2e-matrix.yml- Cross-OS workspace lifecycle smoke
- Setup (
--warm-deps) + cache/mirror ops - Chaos/non-fatal warm-deps behavior (Ubuntu job)
.github/workflows/windows-bridge-e2e.yml- Native Windows bridge/lifecycle checks
.github/workflows/e2e-smoke.yml- Focused bridge regression smoke (fast, narrow scope)
.github/workflows/security.yml- Security scanning and policy checks
Documentation Index
Primary docs live under docs/:
- General docs index: docs/README.md
- Setup details: docs/SETUP.md
- Doctor command: docs/doctor-command.md
- Workspace marker spec: docs/WORKSPACE_MARKER_SPEC.md
- Config file guide: docs/config-file-guide.md
- Package manager policy: docs/PACKAGE_MANAGER_POLICY.md
- Security: docs/SECURITY.md
- Development: docs/DEVELOPMENT.md
Development
npm ci
npm run build
npm run test
npm run lint
npm run typecheckLink local CLI globally for manual testing:
npm run install:local
npx rapidkit --versionTroubleshooting
- If setup output looks stale, run
npx rapidkit setup <runtime>again to refresh.rapidkit/toolchain.lock. - If dependency warm-up is skipped, verify you are inside the corresponding project directory (
package.jsonfor Node,go.modfor Go). - For strict-mode blocks, inspect
.rapidkit/policies.ymland workspace profile in.rapidkit/workspace.json.
License
MIT — see LICENSE.
