A 1.7 MB Headless 3D Modeling Engine That Skips Blender Entirely
If you've ever tried to get an AI agent to generate 3D models, you've probably run into the same wall: headless Blender. It works, technically, but you're pulling in a 953 MB desktop stack and asking your agent to write brittle bpy scripts against integer vertex indices. What if the tooling were actually built for the job instead of retrofitted to it? That's the premise behind Forma, a pure-Rust headless 3D modeling engine designed specifically for AI agents.
What It Does
Forma is a compact polyhedral modeling engine that replaces headless Blender's mesh modeling, boolean, and preview workflow with a single native binary — about 1.7 MB native, or roughly 0.8 MB as a WASM bundle. It ships as a CLI, a WASM package, and an MCP server, so agents can drive it through whatever interface fits their context.
Instead of scripting an application, you write in Forma-Pipe, a declarative pipe language where you chain primitives and operations together (box | bevel | shell | cut) and select geometry semantically (vertical, top_rim, bottom_rim, outer_rim, top, sides) rather than by fragile index. Under the hood it's a double-precision polyhedral mesh kernel with watertight manifold geometry, BVH-localized booleans, ring-preserving bevels, Catmull-Clark subdivision, and a zero-GPU studio renderer that produces 4-view PNGs and dimensioned SVG technical blueprints. Import handles .glb, .obj, and .stl; export covers glTF, STEP, .3mf, .stl, .obj, .svg, .png, and .blend via an optional Blender bridge.
Why It's Cool
The numbers are hard to ignore. Against stock headless Blender 5.3, Forma claims a cold-start eval plus GLB export in 16.9 ms versus 1,306.8 ms — roughly 77× to 89× faster. It uses about 6 to 14 MB of peak RSS versus 223 MB, and it's around 530× smaller on disk. Those aren't marginal gains; they're a different category of tool.
Token efficiency is the real story for agents. The README reports 84,551 completion tokens across a 12-model average versus 294,661 for bpy — 3.49× fewer, up to 15.5× in the best case. Pass rates also jump from 79.1% to somewhere between 95.5% and 100%. If you're paying per token or fighting context limits, that difference matters more than anything else on this list.
Semantic selectors kill a whole class of bugs. Asking an agent to reference vertex index 47 is asking for trouble. Chaining | bevel onto a top_rim selector is something a language model can actually reason about reliably — and when it's wrong, it's wrong in a legible way.
The MCP schema stays under budget. Four tools fit in 789 o200k tokens, strictly under 800. That's a deliberate constraint, and it means you're not burning your agent's context on tool definitions before it writes a single line.
Booleans are strict by default. Manifold CSG with automatic batch chunking and fallback for multi-hole patterns means you get watertight results without hand-holding. There are also spatial queries — clearance(a, b), 2D section(part, z) loop and area checks, Euler genus diagnostics — so the agent can verify its own geometry instead of guessing.
It renders without a GPU. The built-in studio renderer does SSAO-lite, depth silhouettes, and pure-Rust Deflate compression, spitting out 20 to 75 KB PNGs in about 4 ms. Technical blueprints come out as 1200×900 vector SVG. No display server, no GPU, no problem.
How to Try It
The fastest path is zero-install via npm, which runs the WASM build cross-platform:
npx -y forma-3d eval --strict --out flange.glb --render flange.png --draw flange.svg <<'EOF'
flange = box(4, 2, 0.4)
| mat("brushed_steel", color=(0.55, 0.68, 0.85), metallic=0.9, roughness=0.25)
| cut(cyl(0.5, 1))
| cut(cyl(0.25, 1), at=[(-1.4,-0.5,0), (-1.4,0.5,0), (1.4,-0.5,0), (1.4,0.5,0)])
section(flange, 0.0)
EOF
If you'd rather build the native binary:
git clone https://github.com/wrong-nebula/forma.git
cd forma
cargo build --release
./target/release/forma eval --strict --out flange.glb --render flange.png --draw flange.svg script.forma
There's also an optional forma-server crate if you want an HTTP worker — it's opt-in and has zero impact on the core CLI, MCP server, or WASM bundle. Start at the repository for the full language reference.
Final Thoughts
Forma is a purpose-built tool, and it shows. If you're wiring up AI agents that need to produce real geometry — CAD-adjacent parts, parametric models, anything where watertightness matters — this is a much better fit than bolting an agent onto Blender and hoping the bpy scripts hold. The tradeoff is scope: STEP export is faceted ISO 10303-21 with no analytic cylinders or NURBS, so don't expect it to replace a full CAD kernel. But for the agent-driven modeling niche, the combination of size, speed, and token efficiency is genuinely compelling. Worth a look if you've been fighting the Blender approach.