Modern CLI Tool & Project Scaffolds Collection
Revolutionizing Project Setup with Clean Architecture & Best Practices
🎯 Overview • 🚀 Quick Start • 🛠️ Scaffolds • 💡 Installation • 🚦 Getting Started • 🤝 Contributing
Scaffold2Dev is a powerful CLI tool and collection of project scaffolds/boilerplates that helps developers kickstart new projects faster, easier, and in a more structured way.
No more wasting time on repetitive setup — just install via npm and start coding right away! 🚀
💡 New: Now available on npm! Install globally with
npm install -g scaffold2dev-cli-toolkit
- CLI Tool → Interactive command-line interface for easy project generation
- Multiple Installation Options → Install via npm or clone locally for development
- Fast Start → Spin up projects instantly without long setup
- Multi-Stack → Supports Rust, Python, and Agentic AI applications
- Clean Architecture → All scaffolds follow Clean Architecture and Hexagonal Architecture patterns
- Best Practices → Pre-configured with standard, production-ready structures
- Reusable → Easy to reuse and customize for different projects
# Install the CLI globally
npm install -g scaffold2dev-cli-toolkit
# Use anywhere
scaffold2dev-cli
# or short alias
s2d# Clone the repository
git clone https://github.com/KJ-AIML/Scaffold2Dev.git
cd Scaffold2Dev
# Install dependencies
cd cli
pnpm install
# Run the CLI
node script.js
# or use npm script
npm run cli# After cloning and installing dependencies
cd Scaffold2Dev/cli
pnpm install -g .
# Then you can use anywhere
scaffold2dev
# or short alias
s2dModern Rust backend scaffold with Axum framework, Clean Architecture, and production-ready setup
- Axum Framework - Modern, fast, and ergonomic web framework
- Hot Reload - Automatic restart on code changes during development
- Clean Architecture - Domain-Driven Design (DDD) with clear separation of concerns
- OpenAPI Documentation - Auto-generated API docs with Scalar UI
- Structured Logging - Comprehensive logging with tracing
- CORS Support - Cross-origin resource sharing enabled
- Graceful Shutdown - Proper signal handling for production
your-project/
├── src/
│ ├── adapter/
│ │ ├── inbound/ # API layer
│ │ │ └── api/
│ │ │ └── controller/
│ │ │ ├── router/ # Route definitions
│ │ │ ├── shared/ # Shared DTOs & handlers
│ │ │ ├── v1/ # API v1 endpoints
│ │ │ └── docs/ # OpenAPI docs
│ │ └── outbound/ # External services
│ ├── application/ # Business logic & services
│ ├── domain/ # Core business entities
│ ├── infrastructure/ # Config & external dependencies
│ └── shared/ # Common utilities & middleware
├── Cargo.toml # Dependencies configuration
└── README.md
🚀 Quick Start:
# Install CLI globally
npm install -g scaffold2dev-cli-toolkit
# Create new project
scaffold2dev-cli
# or use short alias
s2d
# Select: Rust → Clean Architecture + Axum- Run development server:
./run.sh
# Server will start at http://localhost:8080- View API documentation:
- Open http://localhost:8080/scalar for Scalar UI
GET /health- Health check endpointGET /scalar- Interactive API documentation (Scalar UI)GET /api-docs/openapi.json- OpenAPI specificationGET /api/v1/info- API version information
Environment variables are loaded from .env file:
CONTAINER_NAME=your-project-container
IMAGE_NAME=your-project
PORT=8080
ENVIRONMENT=development
RUST_LOG=info
DEBUG=true
tower_http=debug- Use
cargo watch -x runfor automatic reload - Run tests with
cargo test - Check formatting with
cargo fmt - Run linter with
cargo clippy
Modern Python backend scaffold with FastAPI framework, Clean Architecture, and production-ready setup
- FastAPI Framework - High-performance, modern Python web framework
- Clean Architecture - Domain-Driven Design (DDD) with Hexagonal Architecture pattern
- UV Package Manager - Ultra-fast Python package installer and resolver
- Docker Ready - Multi-stage Dockerfile with development environment
- Dependency Injection - Clean dependency management with dependency-injector
- Structured Logging - File and console logging with rotation
- Configuration Management - Environment-based settings with Pydantic
- Health Checks - Built-in monitoring endpoints
- GRPC Support - Ready for gRPC communication setup
your-project/
├── src/
│ ├── adapter/
│ │ ├── inbound/ # API layer
│ │ │ ├── api/
│ │ │ │ ├── router/ # Route definitions
│ │ │ │ ├── v1/ # API v1 endpoints
│ │ │ │ └── validators/ # Request validation
│ │ │ └── grpcserver/ # gRPC server setup
│ │ └── outbound/ # External services
│ │ └── mongodb/ # Database adapters
│ ├── application/ # Business logic & services
│ │ ├── mappers/ # Data mappers
│ │ └── usecases/ # Use case implementations
│ ├── domain/ # Core business entities
│ │ ├── dtos/ # Data transfer objects
│ │ ├── entities/ # Domain entities
│ │ ├── services/ # Domain services
│ │ └── repositories/ # Repository interfaces
│ ├── infrastructure/ # Technical concerns
│ │ ├── communication/ # External communication
│ │ ├── config/ # Configuration management
│ │ ├── injectors/ # Dependency injection
│ │ ├── logging/ # Logging setup
│ │ └── persistence/ # Data persistence
│ └── helpers/ # Utility functions
├── env.properties # Environment configuration
├── Dockerfile # Container setup
├── docker-compose.dev.yaml # Development environment
├── pyproject.toml # Python project metadata
└── run.sh # Development script
🚀 Quick Start:
# Install CLI globally
npm install -g scaffold2dev-cli-toolkit
# Create new project
scaffold2dev-cli
# or use short alias
s2d
# Select: Python → Clean Architecture + FastAPI- Install dependencies:
uv sync- Run development server:
# Using UV
uv run src/main.py
# Server will start at http://localhost:3000
# Or using Docker
./run.shGET /health- Health check endpointGET /{project}/api/v1/- Your API routes (based on project name)
Environment variables in env.properties:
# Docker Configuration
IMAGE_VERSION=1.0.0
IMAGE_NAME=your-project
CONTAINER_NAME=your-project
CONTAINER_PORT=10000
# FastAPI Configuration
HOST=0.0.0.0
PORT=3000
DEBUG=true
APP_NAME=your-project
APP_VERSION=1.0.0
PREFIX=/your-project/api/v1- Use
./run.shfor Docker development with hot reload - Run
./run.sh buildto build without starting - Use
./run.sh prodfor production mode - Project follows Clean Architecture principles
- Keep domain logic pure (no external dependencies)
- Use dependency injection for external services
- FastAPI - Modern web framework
- Uvicorn - ASGI server
- Pydantic Settings - Configuration management
- Dependency Injector - DI container
- Python 3.13+ - Latest Python features
Advanced Agentic AI system scaffold with multi-agent architecture, cognitive loops, and real-time monitoring
- Multi-Agent System - Coordinated agent architecture
- Cognitive Loop - Advanced reasoning and decision-making
- Memory System - Persistent and working memory management
- RESTful API - FastAPI-based web interface
- Real-time Monitoring - System health and performance tracking
- Docker Ready - Complete containerization setup
🚀 Quick Start:
# Install CLI globally
npm install -g scaffold2dev-cli-toolkit
# Create new project
scaffold2dev-cli
# or use short alias
s2d
# Select: Python → Agentic AI SystemCombines Agentic AI capabilities with Clean Architecture patterns for enterprise-grade applications
🚀 Quick Start:
# Install CLI globally
npm install -g scaffold2dev-cli-toolkit
# Create new project
scaffold2dev-cli
# or use short alias
s2d
# Select: Python → Hybrid Agentic + Clean-
📦 Install the CLI:
npm install -g scaffold2dev-cli-toolkit
-
🚀 Create your project:
scaffold2dev-cli # or use short alias: s2d -
✨ Follow the interactive prompts to select your stack and start coding!
- 🏗️ Clean Architecture - Domain-driven design patterns
- 📚 Best Practices - Production-ready project structure
- 🚀 Fast Setup - No more boilerplate configuration
- 🔄 Hot Reload - Development server with auto-restart
- 📖 Documentation - Auto-generated API docs
- 🐳 Docker Ready - Containerization setup included
- 🧪 Testing Setup - Unit and integration test structure
| Language | Template | Description | Status |
|---|---|---|---|
| 🦀 Rust | Clean + Axum | Modern web server with Clean Architecture | ✅ Available |
| 🐍 Python | Clean + FastAPI | API server with Clean Architecture | ✅ Available |
| 🐍 Python | Agentic AI | Multi-agent system with cognitive loops | ✅ Available |
| 🐍 Python | Hybrid Agentic + Clean | Enterprise Agentic AI with Clean Architecture | ✅ Available |
# Install globally via npm
npm install -g scaffold2dev-cli-toolkit
# Start creating projects
scaffold2dev-cli
# or use short alias
s2d# For contributors and local development
git clone https://github.com/KJ-AIML/Scaffold2Dev.git
cd Scaffold2Dev/cli
pnpm install
# Run locally
node script.js# Using yarn
yarn global add scaffold2dev-cli-toolkit
# Using pnpm
pnpm add -g scaffold2dev-cli-toolkitWe welcome contributions! Here's how you can help:
- 🏗️ Add new scaffolds for different tech stacks
- ⚡ Improve existing scaffolds and CLI tool
- 📝 Update documentation and examples
- 🐛 Report issues or suggest features
- ✨ Enhance the interactive CLI experience
# 1. Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/Scaffold2Dev.git
cd Scaffold2Dev
# 2. Install CLI dependencies
cd cli
pnpm install
# 3. Test your changes
node script.js- Create your scaffold in
cli/scaffold/[language]/ - Update CLI options in
cli/script.js - Document your scaffold in this README
- Test thoroughly with different project names
- Submit a PR with clear description
- 📋 Issues - Report bugs or request features
- 🔄 Pull Requests - Submit your contributions
- 📖 Wiki - Detailed documentation
- 💬 Discussions - Community chat
This project is licensed under the MIT License - see the LICENSE file for details.