runeforge-25.8.0 is not a library.
🔥 Runeforge - Part of Rune* Ecosystem
Blueprint to optimal stack JSON converter
Runeforge v3 is a CLI tool that takes a Blueprint (requirements specification) and returns an optimal technology stack as JSON. The generated plan.json can be directly passed to RuneWeave v2 and later versions.
Features
- ✅ Blueprint YAML/JSON → Optimal Stack JSON
- ✅ Deterministic plan generation with seeds
- ✅ Schema validation with JSON Schema
- ✅ Cost, latency, and compliance constraints
- ✅ Rust 2021 Edition, MSRV 1.80
- ✅ Ready for Rust 2025 Edition migration
Installation
Usage
Basic Usage
CLI Options
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Blueprint schema validation failed |
| 2 | Stack schema validation failed |
| 3 | No stack matches constraints |
Blueprint Schema
project_name: "my-app"
goals:
- "high-performance"
- "low-cost"
constraints:
monthly_cost_usd_max: 100.0
coldstart_ms_max: 50.0
persistence: "both" # kv | sql | both
region_allow:
- "us-east-1"
- "eu-west-1"
compliance:
- "audit-log"
- "sbom"
traffic_profile:
rps_peak: 1000.0
global: true
latency_sensitive: false
prefs: # Optional preferences
frontend:
backend:
database:
ai:
single_language_mode: "rust" # rust | go | ts | null
Generated Stack Schema
Examples
The repository includes three test cases:
Baseline (Low Cost)
Latency Optimized
Compliance Heavy
Selection Algorithm
- Normalize - Fill in Blueprint defaults
- Filter - Remove candidates that don't meet constraints
- Score - Calculate weighted scores:
- Quality: 30%
- SLO: 25%
- Cost: 20%
- Security: 15%
- Operations: 10%
- Select - Choose highest scoring candidates
- Validate - Ensure output matches schema
Development
Prerequisites
- Rust 1.80+
- Standard development tools
Build
Test
Run Examples
# Test baseline scenario
# Test with strict validation
# Output to file
Architecture
src/
├── main.rs # CLI interface (clap)
├── selector.rs # Stack selection logic
├── schema.rs # Schema validation & types
└── util.rs # Utilities (hash, random, etc.)
resources/
└── rules.yaml # Candidate definitions & weights
schemas/
├── blueprint.schema.json
└── stack.schema.json
examples/
├── baseline.yaml # Low cost scenario
├── latency.yaml # Ultra-low latency
└── compliance.yaml # Enterprise compliance
Contributing
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Ensure
cargo testpasses - Submit a pull request
License
MIT License - see LICENSE for details.
Changelog
v3.0.0 (2025-08-06)
- Initial release
- Blueprint → Stack JSON conversion
- Deterministic selection with seeds
- Schema validation support
- Rust 2021 Edition, MSRV 1.80