| Crates.io | scaffold-gen |
| lib.rs | scaffold-gen |
| version | 0.0.8 |
| created_at | 2025-10-11 08:28:19.196459+00 |
| updated_at | 2025-12-12 06:52:50.928122+00 |
| description | A modern scaffolding generator for creating project templates |
| homepage | https://github.com/sunerpy/scaffold-gen |
| repository | https://github.com/sunerpy/scaffold-gen |
| max_upload_size | |
| id | 1877988 |
| size | 461,484 |
English | ็ฎไฝไธญๆ
A modern, extensible scaffolding generator for creating project templates across multiple frameworks and programming languages.
| Language | Framework | Status |
|---|---|---|
| Go | Gin | โ |
| Go | Go-Zero | โ |
| Rust | CLI App | โ |
| Rust | Tauri | โ |
| TypeScript | Vue 3 | โ |
| TypeScript | React | โ |
| Python | Basic | โ |
cargo install scaffold-gen
git clone https://github.com/sunerpy/scaffold-gen.git
cd scaffold-gen
make release
Download pre-built binaries from the Releases page.
scafgen new my-project
The CLI will guide you through:
# Create a Gin project
scafgen new my-gin-app --framework gin
# Create a Go-Zero project
scafgen new my-gozero-app --framework go-zero
# Create a Tauri project
scafgen new my-tauri-app --framework tauri
# Create a Vue3 project
scafgen new my-vue-app --framework vue3
# Create a React project
scafgen new my-react-app --framework react
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GeneratorOrchestrator โ
โ (Coordinates all generators) โ
โโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โผ โผ โผ
โโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโ
โ Project โ โ Language โ โ Framework โ
โGeneratorโ โGenerator โ โ Generator โ
โโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
LICENSE Go/Rust/ Gin/Tauri/
Git/README Python/TS Vue3/React
Handles common project files:
Sets up language-specific environment:
Generates framework-specific code structure:
The generator uses a hierarchical template system:
templates/
โโโ frameworks/ # Framework-specific templates
โ โโโ go/
โ โ โโโ gin/ # Gin framework templates
โ โ โโโ go-zero/ # Go-Zero framework templates
โ โโโ rust/
โ โ โโโ tauri/ # Tauri framework templates
โ โโโ typescript/
โ โโโ vue3/ # Vue 3 framework templates
โ โโโ react/ # React framework templates
โโโ languages/ # Language-specific templates
โ โโโ go/
โ โโโ rust/
โ โโโ python/
โ โโโ typescript/
โโโ licenses/ # License templates
โโโ MIT.tmpl
โโโ Apache-2.0.tmpl
โโโ GPL-3.0.tmpl
{{project_name}} - Project name{{author}} - Project author{{license}} - License type{{year}} - Current year{{host}} - Server host (default: localhost){{port}} - HTTP port (default: 8080){{grpc_port}} - gRPC port (Go-Zero specific){{enable_swagger}} - Enable Swagger documentation{{enable_database}} - Enable database support# Debug build
make build
# Release build
make release
# Run tests
make test
# Run linter
make lint
# Format code
make fmt
# Run all CI checks
make ci
src/
โโโ commands/ # CLI command implementations
โโโ generators/ # Generator modules
โ โโโ core/ # Core generator traits and utilities
โ โโโ project/ # Project-level generator
โ โโโ language/ # Language-level generators
โ โโโ framework/ # Framework-level generators
โ โโโ orchestrator.rs # Generator orchestrator
โโโ scaffold.rs # Core scaffolding system
โโโ template_engine.rs # Template processing engine
โโโ utils/ # Utility modules
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.