Forma swaps 953 MB of headless Blender for a 1.7 MB Rust binary
For two years, “let an LLM model a 3D part” has meant headless Blender: install a 953 MB desktop stack, then have the model write bpy scripts. The bill arrives as 1.3-second cold starts, tens of thousands of completion tokens per task, and broken meshes whenever the model miscounts a vertex index.
Forma takes a different route. It is a pure-Rust kernel that does solid modeling and nothing else: a 1.7 MB binary, a declarative pipe language, and an MCP server. The repo opened on 2026-12-02 and had 1005 stars and 74 forks when this was written (2026-12-03), at v0.4.2.
The numbers that matter
| Metric | Headless Blender 5.3 (bpy) | Forma | Gap |
|---|---|---|---|
| Cold start + GLB export | 1306.8 ms | 16.9 ms | 77–89× |
| Completion tokens (12 models) | 294,661 | 84,551 | 3.49× (up to 15.5×) |
| Pass@3 (12 models / 10 labs) | 79.1% | 95.5% | +16.4 pp |
| Install footprint | 953 MB | 1.7–1.8 MB native / 0.8 MB WASM | ~530× |
| Peak RSS | 223 MB | 6–14 MB | 16–36× |
The speed is nice. The tokens are the point. Cutting completion tokens to a third means the same budget buys two or three more correction loops, and a 17 ms round trip means an agent can fail twenty times inside one conversation without timing out.
Forma-Pipe: semantic selectors instead of vertex indices
bpy forces models to name integer indices — to bevel a rim, the model has to guess which ring of vertices is the top edge. Forma replaces that with named selectors:
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)EOFChains read as box | bevel | shell | cut, with selectors like vertical, top_rim, bottom_rim, outer_rim, top, sides. at=[...] stamps four bolt holes in one op, and section(flange, 0.0) queries the result.
One command emits three artifacts: the .glb, a four-view PNG preview, and a dimensioned SVG drawing. That matters more than it sounds — semantic names are hard to hallucinate, and --strict rejects the ones that are wrong before you ever load the mesh.
What the agent interface looks like
- Four MCP tools —
eval,inspect,tx,export— totaling 789o200ktokens of schema, deliberately under 800. - A 355-token language reference:
forma specprints it, cheap enough to keep in a system prompt. - ~100-token spatial diff:
evalreturns changed positions, dimensions and interferences, not thousands of lines of mesh data. - Transactional snapshots:
forma txrolls back a failed edit instead of leaving half a solid behind. - Constrained decoding:
grammar/forma_pipe.gbnffromforma spec --gbnf, so a small model can only emit legal syntax. - Wiring docs in the repo root:
SKILL.md,AGENTS.md,llms.txt.
Determinism is covered too: 11,000 fuzz operations in 2.46 s with zero panics, zero NaNs, and byte-identical .glb output. For pipelines that diff artifacts, that property is worth more than the benchmark speedup.
Three ways to run it
# 1. Zero install (WASM, cross-platform)npx -y forma-3d eval --strict --out part.glb script.forma
# 2. Native binary (~1.7 MB)git clone https://github.com/wrong-nebula/forma.git && cd formacargo build --release
# 3. MCP server inside any client# {"mcpServers":{"forma":{"command":"npx","args":["-y","-p","forma-3d","forma-3d-mcp"]}}}There is also an optional forma-server (a separate HTTP/1.1 worker crate, cargo build --release -p forma-server) for long-running services; it has no effect on the CLI, the MCP server, or the npm bundle. TypeScript projects can import { evalPipe, exportMesh, renderPng } from "forma-3d".
The kernel is not a toy
- Geometry: double-precision polyhedral mesh, strict manifold CSG booleans with BVH localization and batch chunking for multi-hole patterns, ring-preserving bevels, shell/solidify,
loft(8–128 segments), helicalthread,sweep,text3d, linear and radial patterns, Catmull-Clark subdivision. - Spatial queries:
| on(base)relational placement,| align(axis, min|center|max, val), exact 3Dclearance(a,b), 2Dsection(part, z)area, Euler genus diagnostics. - Zero-GPU rendering: built-in front/right/top/iso studio view, SSAO-lite plus depth silhouettes, pure-Rust Deflate, ~4 ms for a 20–75 KB PNG;
forma drawproduces a 1200×900 dimensioned vector blueprint. - I/O: GLB, OBJ and STL import with QEM decimation; export to GLB (PBR with LSCM/triplanar UVs), STEP, 3MF, STL, OBJ, SVG, PNG, and
.blendthrough an optional Blender bridge.
Model plus preview plus drawing from one command is what lets an agent check its own work: it can look at the PNG, and it can read dimensions out of the SVG.
Where it falls short
The benchmarks are self-run. Verification used trimesh and scipy independently (Chamfer, Hausdorff-99, volumetric IoU, watertight and non-manifold checks, 16-layer sliceability), and the method is in docs/VERIFICATION_REPORT.md. But the task set is six exact-dimension parts — flange plate, pipe tee, beveled enclosure, hex nut, subdivided mug, pedestal bowl. Freeform organic shapes are not covered.
Not every model improves. Per-model, GLM-5.4 drops from 5/6 to 3/6 on Pass@1, grok-4.7 from 5/6 to 4/6, and deepseek-v4.1-flash still lands at 0.661 mean IoU — the worst in the table. The aggregate +16.4 pp is a Pass@3 figure; Pass@1 only moves from 55.2% to 67.2%.
STEP output is faceted. It writes ISO 10303-21 watertight planar-face solids. There are no analytic cylinders and no NURBS surfaces, so bringing a part back into SolidWorks or Fusion to edit parametric features will disappoint.
The license is GPL-3.0-or-later. v0.4.2 (2026-12-03) switched to it. Embedding Forma in a closed-source product needs a careful look at copyleft boundaries.
The project is one day old. Created 2026-12-02, still v0.4.x, with API and grammar churn ahead. And it only does solid modeling: no rendering pipeline, no animation, no sculpting, no material authoring.
Repo: https://github.com/wrong-nebula/forma · npm: https://www.npmjs.com/package/forma-3d
Not affiliated with the Forma project. Star count, version, license and benchmark numbers were read from the GitHub API, the npm registry and the official README on 2026-12-03. The project is iterating fast — check the repo for the current state.