fiberx is a CLI-first Fiber project generator repository.
The repository is intentionally focused on the generator mainline itself: assets, planning rules, validation, rendering, upgrade inspection, build automation, and regression coverage.
v0.1.0: completedv0.1.1: completedv0.1.2: completedv0.1.3: completedv0.1.4: next
- Docs index
- Usage guide
- Release process
- Build hook safety
- Generator architecture
- Template boundaries
- Repository rules
- Contributing
- Changelog
- Roadmap
medium: stable production baseline with Swagger and embedded UI by defaultheavy: production-oriented track with Swagger, embedded UI, metrics, scheduler jobs, and optional Redislight: lightweight HTTP service with SQLite-first CRUD and optional Swagger or embedded UIextra-light: minimal startable base with SQLite startup, health endpoints, and recover-only middleware- default stack:
Fiber v3 + Cobra + Viper - compatibility stack:
Fiber v2 + native-cli - runtime options on
medium / heavy / light:--logger,--db,--data-access - generated projects include config profiles, runtime metadata, upgrade inspection, and project-level build automation
go run ./cmd/fiberx new demo --preset medium
cd demo
go run . serveCompatibility example:
go run ./cmd/fiberx new demo-legacy --preset medium --fiber-version v2 --cli-style nativeRuntime options example:
go run ./cmd/fiberx new demo-data --preset medium --logger slog --db pgsql --data-access sqlxBuild automation example:
go run ./cmd/fiberx build
go run ./cmd/fiberx build --dry-run
go run ./cmd/fiberx build --profile prodsample/: reference snapshots and test-facing examples, not the maintained generator mainlineoutput/: local scratch space for generated artifacts and local binaries; ignored by Git except for.gitkeep
v0.1.3 closes the current CLI and scaffold-hardening pass:
- generation plan preview with
new/init --print-plan [--json] - build safety switches such as
--no-hooksand--yes - layered
doctoroutput for generator, project, and standalone modes explain matrixfor preset and capability visibility- improved verbose output separators for
validate,doctor, andexplain matrix - safer default error responses in generated projects
- full timeout coverage for multi-handler business routes
- explicit-false config loading fixes
- lightweight explicit service initialization in generated business modules
- SQLite parent directory creation for default database paths
The next milestone focuses on long-term scaffold maintainability and low-coupling optional capabilities:
- continue refining the shared error and response layer
- evaluate low-coupling additions such as
pprof,rate-limit, andcors-profile - further reduce brittle template replacement points
fiberx buildmay execute project-defined hooks.- Only run hooks in trusted repositories.
- Use
fiberx build --dry-runto inspect planned commands before execution.
This project is licensed under the MIT License. See LICENSE for details.