rapidkit
v0.12.9
Published
Create RapidKit projects with a single command - The official CLI for RapidKit framework
Maintainers
Readme
rapidkit
⚠️ PRE-RELEASE VERSION - This is a companion tool for RapidKit framework.
The stable production version of RapidKit Python will be released soon on PyPI.
🚀 The easiest way to create FastAPI and NestJS projects with RapidKit templates!
💡 Tip: Use the RapidKit VS Code Extension for a visual interface!
Quick Start
Create a FastAPI Project
npx rapidkit my-api --template fastapi
cd my-api
npx rapidkit init # Install dependencies
npx rapidkit dev # Start dev server at http://localhost:8000Create a NestJS Project
npx rapidkit my-api --template nestjs
cd my-api
npx rapidkit init # Install dependencies
npx rapidkit dev # Start dev server at http://localhost:8000Your API will be available at http://localhost:8000 with Swagger docs at /docs
Two Modes of Operation
1. Direct Project Creation (with --template)
Create a standalone project directly:
npx rapidkit my-api --template fastapi # Create FastAPI project
npx rapidkit my-api --template nestjs # Create NestJS project2. Workspace Mode (without --template)
Create a workspace to organize multiple projects:
npx rapidkit my-workspace # Create workspace
cd my-workspace
npx rapidkit my-api --template fastapi # Create FastAPI project
npx rapidkit admin-api --template nestjs # Create NestJS projectNote: The same
npx rapidkit <name> --template <type>command works everywhere - in any directory or inside a workspace!
Templates
| Template | Framework | Description |
|----------|-----------|-------------|
| fastapi | FastAPI | Python async web framework with automatic API docs |
| nestjs | NestJS | TypeScript Node.js framework with modular architecture |
CLI Options
npx rapidkit [project-name] [options]Arguments
project-name- Name of project/workspace directory to create
Options
-t, --template <template>- Template to use:fastapiornestjs(creates direct project)--skip-git- Skip git initialization--skip-install- Skip installing dependencies (for NestJS)--debug- Enable verbose debug logging--dry-run- Preview what would be created without creating it--no-update-check- Skip checking for newer versions--help- Display help information--version- Show version number
Project Commands
After creating a project, use these commands:
cd my-api
npx rapidkit init # Install dependencies (auto-activates environment)
npx rapidkit dev # Start dev server with hot reload (port 8000)
npx rapidkit start # Start production server
npx rapidkit build # Build for production
npx rapidkit test # Run tests
npx rapidkit lint # Lint code
npx rapidkit format # Format code
npx rapidkit --help # Show all commandsNote:
npx rapidkitautomatically detects when you're inside a RapidKit project and delegates to the local CLI. Works everywhere without any setup!
💡 Tip: Install globally with
npm i -g rapidkitto userapidkitdirectly withoutnpx.
Alternative: Direct Commands
You can also run commands directly:
./rapidkit dev # Using the wrapper script
make dev # Using Makefile (FastAPI)
poetry run dev # Using Poetry directly (FastAPI)
npm run start:dev # Using npm directly (NestJS)Project Structure
FastAPI Project
my-api/
├── .rapidkit/
│ ├── activate # Activation script
│ ├── cli.py # Python CLI module
│ └── rapidkit # Bash wrapper
├── rapidkit # Main CLI entry point
├── src/
│ ├── main.py # FastAPI application
│ ├── cli.py # CLI commands
│ ├── routing/ # API routes
│ └── modules/ # Module system
├── tests/ # Test suite
├── pyproject.toml # Poetry configuration
├── Makefile # Make commands
└── README.mdNestJS Project
my-api/
├── .rapidkit/
│ ├── activate # Activation script
│ └── rapidkit # Bash CLI wrapper
├── rapidkit # Main CLI entry point
├── src/
│ ├── main.ts # Application entry point
│ ├── app.module.ts # Root module
│ ├── config/ # Configuration
│ └── examples/ # Example module
├── test/ # Test files
├── package.json # Dependencies
├── tsconfig.json # TypeScript config
└── README.mdRequirements
- Node.js: 18+ (for running npx)
- For FastAPI: Python 3.11+ with Poetry
- For NestJS: Node.js 20+ with npm/yarn/pnpm
Development
# Clone the repository
git clone https://github.com/getrapidkit/rapidkit-npm.git
cd rapidkit-npm
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Watch mode
npm run devRelated Projects
- RapidKit Python - The core framework (coming soon to PyPI)
- RapidKit Docs - https://rapidkit.top
- GitHub: https://github.com/getrapidkit
License
MIT
Support
- 🐛 Report issues: GitHub Issues
- 📚 Docs: https://rapidkit.top
v0.12.4 - Friendly shell activation UX with green headers and robust fallback logic
v0.12.2 - Simplified CLI: rapidkit init now handles environment activation automatically
v0.12.0 - Added NestJS template, workspace mode, and unified CLI
