# Contributing to Forma Contributions are very welcome! Check [`ROADMAP.md`](ROADMAP.md) or the blueprints in [`contribute/`](contribute/README.md) to see what's planned. *(If you're an AI agent, see [`AGENTS.md`](AGENTS.md) and [`SKILL.md`](SKILL.md).)* ## Build & Test ```bash cargo test # core unit, integration & fuzz-invariant tests cargo build --release # native CLI + MCP binaries npm run build:wasm && npm test # WASM bundle + npm smoke tests ``` Optional crates (excluded from `default-members`): `cargo build --release -p forma-server`. ## Repo Layout - `crates/forma-core` — mesh kernel, booleans, ops, UVs, spatial queries, preview renderer, import/export - `crates/forma-lang` — `Forma-Pipe` DSL, parser, evaluator, GBNF grammar - `crates/forma-cli` / `forma-mcp` / `forma-wasm` — CLI, stdio MCP server, and `forma-3d` WASM package - `crates/forma-server` — opt-in headless HTTP worker - `contribute/` — blueprints and notes for upcoming features and addons ## Four Rules to Keep in Mind 1. **Keep core tiny:** Core `forma` stays ~1.7–1.8 MB native / ~0.8 MB WASM (pure Rust, minimal deps). 2. **Keep MCP compact:** Core `forma-mcp` stays under **800 `o200k` tokens** (currently 789). 3. **Strict watertightness by default:** `--strict` must reject non-manifold, open-boundary, inverted-winding, `NaN`, or zero-volume results and roll back cleanly. 4. **Domain pipelines live in opt-in crates:** Big domain workflows (3D printing, UE5, etc.) go in their own workspace crate excluded from `default-members` (`0` bytes / `0` tokens added to core). Rigging, animation, map baking, and full PBR/EEVEE-class rendering are separate companion apps, not part of core Forma. ## Sending Changes - **Bug fix or small improvement?** Just open a PR with a test covering the change. - **Big new feature, op, or addon crate?** Open a quick GitHub Issue first so we agree on the shape before you spend time building it. - License: `GPL-3.0-or-later` ([`LICENSE`](LICENSE)).