English | 简体中文

ConfigForge
ConfigForge is an AI-driven, schema-first game configuration export tool built in Rust. It provides end-to-end configuration workflow for game projects: define schemas declaratively, validate designer-authored data, and generate type-safe runtime artifacts for 7+ languages and platforms out of the box.
Designed for AI-assisted development, you can build custom validators, exporters, code generators, or runtime adapters in minutes with the provided architecture context and AI tooling.
✨ Core Features
- 📋 Schema-Driven Workflow: Define tables, fields, types, indexes, foreign keys, and constraints using declarative TOML meta files as a single source of truth.
- ✅ Deterministic Validation: Catch data errors (type mismatches, missing references, invalid values, broken asset paths) before export, never ship malformed configurations to production.
- 📦 Multi-Format Data Export: Supports JSON, MessagePack, optimized binary, Lua embedded tables, CSV, POT (i18n), and validation reports out of the box; easily extend to custom formats.
- 🔌 Multi-Language Code Generation: Generates type-safe, IDE-friendly data access code for Rust, C++ (including Unreal Engine), C#, Java, TypeScript, Lua, with more languages coming soon.
- 🛡️ Built-in Validators: Common game development validators included: regex, range, string length, foreign key, asset reference, field sum, monotonic sequence, conditional required, and more.
- 🎮 Game Pipeline Friendly: Native support for Unreal/Unity project structure, asset reference validation/path completion, asset manifest generation, target-aware configuration filtering (client/server/region-specific builds).
- 🤖 AI-First Extensibility: Modular architecture with clear boundaries; feed the provided AI context documents to your preferred AI assistant to build custom extensions without reading the full codebase.
🚀 5-Minute Quick Start
1. Install
# Install via cargo
cargo install config-forge
# Or download prebuilt binaries from the [Releases page](https://github.com/watsonsong/ConfigForge/releases)
2. Run the full demo
git clone https://github.com/watsonsong/ConfigForge.git
cd ConfigForge/examples/full_game_demo
config-forge export
3. Check outputs
Generated artifacts will be available in the out/ directory, including:
- Runtime data files (JSON/MessagePack/binary/Lua)
- Type-safe access code for all supported languages
- Validation reports (HTML/Markdown/JSON/CSV)
- Auto-generated schema documentation
- Asset manifest and i18n POT files
📚 Documentation
🤝 Contributing
Contributions are welcome! Please read CONTRIBUTING.md (coming soon) for development environment setup, contribution guidelines, and how to use AI tooling to contribute efficiently.
📄 License
ConfigForge is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.