A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server
Forma Documentation
Forma (v0.4.5) is a headless, pure-Rust 3D polyhedral modeling engine built for AI agents, edge runtimes, CI pipelines, and developers. It runs through a native CLI (forma), a zero-dependency universal npm WASM package (forma-3d for Node.js, Cloudflare Workers, Edge, and browsers), an MCP stdio server (forma-mcp / forma-3d-mcp), an opt-in HTTP microservice (forma-server), and an offline Python sandbox kit (sandbox/forma.py).
flowchart LR
subgraph Callers
A["AI Agent (MCP / CLI)"]
B["JS / Edge / Browser App"]
C["HTTP Client / Sandbox"]
end
subgraph Surfaces["Runtime Surfaces"]
S1["forma-cli / forma-mcp"]
S2["forma-3d (WASM / workerd / edge)"]
S3["forma-server (HTTP / scratch)"]
end
subgraph Core["Shared Pure-Rust Core"]
L["forma-lang (Pipe / DSL / GBNF)"]
K["forma-core (f64 PolyMesh + CoW + Invariants)"]
end
subgraph Outputs["Verified Artifacts"]
O1["GLB / STEP / 3MF / STL / OBJ"]
O2["4-View PNG / 3-View SVG"]
end
A --> S1
A --> S2
B --> S2
C --> S3
S1 --> L
S2 --> L
S3 --> L
L --> K
K --> O1
K --> O2
Choose a starting point
| If you want to... | Start here |
|---|---|
| Let a coding agent install and verify Forma for you | Agent-driven setup runbook (docs/agent-setup.md) |
| Build and verify your first 3D part from scratch | Tutorial: Build your first watertight part |
| Connect Claude Code, Cursor, Codex, ChatGPT VM, or a local LLM | How to connect AI agents (MCP, CLI, GBNF, and Sandboxes) |
Embed forma-3d in Node.js, Cloudflare Workers, Edge, or browsers |
How to embed forma-3d in JS, Edge, and Browsers |
Deploy to AWS, Cloudflare, Docker, boat.dev, or air-gapped VMs |
How to deploy Forma (HTTP, Docker, Cloud, and Sandboxes) |
| Model in millimeters/inches or clean up existing meshes | How to work with units and process existing meshes |
| Look up CLI flags, exit codes, and native vs WASM parity | Reference: CLI (forma and forma-3d) |
Look up Forma-Pipe, Forma-DSL, spec topics, and formats |
Reference: Language, units, and formats |
| Look up MCP tool schemas, JS/TS/Edge API, and HTTP endpoints | Reference: MCP, JS/TS, and HTTP APIs |
| Understand why Forma uses polyhedral invariants and strict budgets | Explanation: Why Forma exists |
| Understand the 6-crate workspace and transactional kernel | Explanation: Architecture |
Agent entry points
These root files are packaged inside the forma-3d npm tarball and tuned for coding agents:
docs/agent-setup.md: Self-contained interactive setup runbook for coding agents (with truncation guard and per-step checks).SKILL.md: Drop-in agent skill with five smoke-testedForma-Piperecipes.AGENTS.md: Compact agent workflow rules and CLI/MCP invocation guide.llms.txt: Self-contained machine-readable language cheat sheet and repository index.grammar/forma_pipe.gbnf: Formal GBNF grammar for constrained local-LLM decoding.
Contributor docs and blueprints
CONTRIBUTING.md: Hard budgets for binary size, MCP tokens, strict manifoldness, and opt-in crates.ROADMAP.md: Project roadmap and milestone status.contribute/README.md: Design blueprints for planned opt-in addons (forma-print,forma-ue, craftsmanship, retopology feasibility).
Archived benchmark and engineering reports
Historical phase reports and verification records remain at their original paths: