On December 2, a repository appeared on GitHub with a deliberately provocative premise: headless Blender, rewritten in pure Rust, shrunk from 953 MB to about 1.7 MB, and rebuilt so that a coding agent — not a human clicking through a GUI — is the primary user. By the next morning it had gained 4,325 stars in 24 hours, the fastest-rising AI repository of the day, with 1,940 stars and 155 forks in total. The project is Forma, and the premise is less absurd than it sounds: agents that model in 3D today usually drive Blender through its Python API, which is slow to start, verbose to prompt, and brittle to debug. Forma replaces that stack with a single binary, a small declarative pipe language, and a four-tool MCP server.

That is the claim. This tutorial tests it the way a reader would — no install beyond npx, three parts built from scratch (a bolted flange, a hex nut, and a shelled mug with a handle), exports to GLB, STL, and STEP, a rendered preview and a dimensioned blueprint, and the MCP server started and interrogated over stdio. Every command below was executed in a sandbox on December 3, and every output is quoted verbatim. The benchmark table in the middle is the project's own; the timings and volumes are mine.

What you'll need#

  • Node.js, any recent version. Verified with Node 24. The whole tutorial runs through npx; there is nothing else to install.
  • A terminal. macOS, Linux, or Windows — the npm package ships a WebAssembly build, so the commands below are identical everywhere.
  • About 10 MB of disk and 20 minutes. The package downloads in seconds. No model weights, no GPU, no accounts, no API keys. Total spend: zero.
  • Optional: a Rust toolchain (cargo) if you want the native binary instead of the WASM build, and an MCP client (Claude Code, Cursor, or any MCP host) for the final step.

What Forma actually is, in sixty seconds#

The problem Forma attacks is concrete. An agent building a 3D part with Blender today writes a long Python script against bpy, waits over a second for Blender to start, and debugs by re-running the whole script and squinting at the result. Forma's answer has four pieces. A pure-Rust kernel: double-precision polyhedral meshes, watertight manifolds, BVH-localized booleans. A pipe language, Forma-Pipe, in which a part is one expression — box | bevel | shell | cut — with semantic selectors (top_rim, outer_rim) instead of fragile vertex indices. Transactional evaluation: a failed eval rolls back instead of leaving a half-built part. And a built-in renderer that draws four studio views in about four milliseconds with no GPU.

The README backs this with a head-to-head against stock headless Blender 5.3 across six tasks and twelve models. These are the project's own numbers — I did not reproduce the twelve-model evaluation — but they explain why the repo took off:

MetricStock headless Blender 5.3 (bpy)Forma
Cold-start eval + GLB export1,306.8 ms16.9 ms
Completion tokens (12-model avg)294,661 total84,551 total (3.49× fewer)
Pass rate (12 models / 10 labs)79.1%95.5% – 100%
Install footprint953 MB~1.7 MB native (~0.8 MB WASM)
Peak memory223 MB~6–14 MB
MCP tool schema budget—789 tokens (4 tools)

The token figure is the one that matters for agents. A bpy script for a flange runs to hundreds of tokens of API calls; the equivalent Forma-Pipe is one line. Shorter programs mean fewer chances for the model to go wrong, and the pass-rate column is the project's evidence that it works that way in practice.

1. Run it with zero install#

No clone, no build. The npm package forma-3d ships the WASM engine, the CLI, and the MCP server together, so npx is the entire install. This is the README's own quickstart example — a bolted flange — run verbatim:

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

Three flags do the work. --strict fails the run if the result is not a watertight manifold, so a broken boolean can never silently produce a bad mesh. --render writes a four-view studio PNG. --draw writes a dimensioned vector SVG blueprint. The script itself reads like the part: a 4×2×0.4 box, a brushed-steel material, a half-metre centre bore, four quarter-metre bolt holes at the corners, and a section query at z=0. The output, quoted verbatim:

OK [85.67ms] parts=1
- flange: V=330 F=676 WT=ok NM=0 B=0 g=5 vol=2.576 bbox=[-2.00,-1.00,-0.20]..[2.00,1.00,0.20] size=[4.00,2.00,0.40]
  tags: back(2) bottom(174) front(2) left(2) right(2) side(320) top(174)
diff: +flange (vol=2.576)
query: section(part, z=0.000): loops=6 area=6.4393 perim=21.4096 xy=[-2.000,-1.000]..[2.000,1.000] size=[4.000,2.000]

Read the diagnostics the way an agent would. WT=ok NM=0 means watertight with zero non-manifold edges. g=5 is the Euler genus: one body with five holes, exactly the bore plus four bolt holes. The section query confirms six loops at the mid-plane — the outer outline plus five holes — with area 6.4393. Three files land on disk: flange.glb (74,100 bytes, verified to start with the glTF magic bytes), flange.png (20,260 bytes), and flange.svg (76,933 bytes). The whole thing took 85 milliseconds, including process start.

Forma's built-in four-view render of the flange: front, right, top, and isometric views showing the centre bore and four bolt holes
Forma's built-in four-view render of the flange from step 1, produced by the --render flag in the sandbox run. No Blender, no GPU. Credit: rendered by Forma (wrong-nebula/forma).

2. A hex nut: selectors and bevels#

The second part tests the two features that make the language usable by an agent: semantic selectors and bevels. A hex nut is a six-sided cylinder with a hole and a chamfered rim:

npx -y forma-3d eval --strict --out hexnut.glb --render hexnut.png <<EOF
nut = cyl(1, 0.8, segs=6)
  | cut(cyl(0.5, 1))
  | bevel(top_rim, 0.08)
EOF
OK [32.57ms] parts=1
- nut: V=266 F=342 WT=ok NM=0 B=0 g=1 vol=1.449 bbox=[-1.00,-0.87,-0.40]..[1.00,0.87,0.40] size=[2.00,1.73,0.80]
  tags: bevel(152) bevel_corner(38) bottom(38) side(76) top(38)

Two details are worth noting. segs=6 turns the cylinder into a hexagon, with vertices at multiples of 60 degrees — the same parameter that would give a smooth 32-segment cylinder by default. And bevel(top_rim, 0.08) names an edge by what it is, not by an index. In bpy, selecting the top rim means finding edge indices that change with every edit; here the selector survives any change to the part upstream of it. That is the whole design bet: names instead of numbers, so a model generating the script has less to get wrong. The result is watertight (genus 1, one through-hole), 1.449 cubic units of volume, in 32 milliseconds.

3. A real part end to end: the mug#

The flange and the nut are single primitives with holes. A mug needs three operations an agent has to get right together: hollowing, a curved handle, and a boolean union that joins them without breaking the manifold.

npx -y forma-3d eval --strict --out mug2.glb --render mug2.png <<EOF
mug = cyl(1, 2)
  | shell(0.12)
  | bevel(top_rim, 0.05)
handle = torus(0.55, 0.12) | rot(90, 0, 0) | move(1.0, 0, 0)
cup = mug | add(handle)
EOF
OK [107.08ms] parts=3
- cup: V=881 F=1766 WT=ok NM=0 B=0 g=2 vol=1.838 bbox=[-1.00,-1.00,-1.00]..[1.67,1.00,1.00] size=[2.67,2.00,2.00]
- handle: V=512 F=512 WT=ok NM=0 B=0 g=1 vol=0.151 bbox=[0.33,-0.12,-0.67]..[1.67,0.12,0.67] size=[1.34,0.24,1.34]
- mug: V=448 F=572 WT=ok NM=0 B=0 g=0 vol=1.697 bbox=[-1.00,-1.00,-1.00]..[1.00,1.00,1.00] size=[2.00,2.00,2.00]
diff: +cup (vol=1.838); +handle (vol=0.151); +mug (vol=1.697)

shell(0.12) hollows the cylinder into a cup with 0.12 walls, open at the top by default. The handle is a torus rotated into the vertical plane and moved to the side of the cup, then unioned in with add. The genus of 2 on the finished cup is the check that the union worked: one for the hollow interior, one for the handle loop.

This step also produced the run's one honest failure, and it is instructive. My first attempt rotated the torus with rot(0, 90, 0) — about the Y axis — and the handle landed underneath the mug, spanning z −1.67 to −0.33. The eval still passed: the geometry was valid, just wrong. Rotating about X with rot(90, 0, 0) puts the ring in the vertical XZ plane, centred on the mug's mid-height. The lesson generalises to agent-driven modelling: Forma verifies watertightness, not intent. The render flag exists precisely so the agent — or you — can look at the part and catch the difference between valid and right.

With the part built, export it for making. STL for a 3D printer, STEP for CAD interchange:

npx -y forma-3d eval --strict --out mug.stl mug2.forma
npx -y forma-3d eval --strict --out flange.step flange.forma

Both succeed. The STL is the mug as a triangle mesh; the STEP file is 478,260 bytes. One caveat from the README, worth knowing before you send a STEP file to a machinist: Forma's STEP export is faceted — a watertight planar-face solid, with no analytic cylinders or NURBS surfaces. It is fine as a reference solid and for printing, but it is not a parametric solid you can edit feature-by-feature in a CAD kernel. The same limitation applies to the .blend export, which goes through an optional Blender bridge rather than natively.

4. Learn the language in one command#

Before writing a longer script, print the reference. forma spec dumps the whole language in about 355 tokens — small enough to paste into any model's context window, which is the point:

npx -y forma-3d spec
Forma-Pipe (Z-up meters, watertight 3D):
`name = expr | op | op` (multi-line `|`, math `+ - * / sqrt sin cos pi`, last assigned part exports).
Primitives (`at=(x,y,z)` or `[(x,y,z),...]`; `z0=Z` sets bottom):
- `box(sx,sy,sz, at=, z0=)` | `cyl(r,h, segs=32, axis=z, at=, z0=)` (`segs=6`: verts k*60deg)
- `cone(r0,r1,h)` | `sphere(r)` | `torus(R,r)` | `revolve([(r,z),...], segs=32)` (auto-closes r=0)
- `arc_tube(center=(x,y,z), rx=, rz=, start=-90, end=90, r=0.08)` | `tube([(x,y,z),...], r=0.08)`
- `extrude2d([(x,y),...], z0, z1, holes=)` | `pipe(ro,ri,h)` | `loft([(z,[(x,y),...]),...])` | `thread(r0,r1,pitch,turns)`
Ops (`|` or `op(m,...)`; `add`/`cut` take `at=(x,y,z)` or `[...]`):
- `add(b, at=)` | `cut(b, at=)` | `intersect(b)` | `mirror(x|y|z)` | `array(n,step)` | `radial(n,r=,axis=z)` | `shell(t, open_top=true)` | `subsurf(levels=1, crease=false)`
- `bevel(edges, w, segs=1)` (vertical|top_rim|bottom_rim|outer_rim|sharp|all) | `extrude(faces, d)` | `inset(faces, amt, depth=0)`
- `move(x,y,z)` | `rot(rx,ry,rz)` | `scale(sx,sy,sz)` | `align(x|y|z, min|center|max, val)` | `on(base)` | `align_z0(z)`
- `mat(name, color=(r,g,b), metallic=0.1, roughness=0.5)` | `color(r,g,b)` | `clearance(a,b)` | `section(p,z)`
More: `inspect(topic="deform|curves|uv|remesh|scene")`

Units are Z-up metres throughout, and the last assigned part is the one that exports — which is why the mug script ends with cup. The same reference is available as a constrained-decoding grammar (forma spec --gbnf), and the repo ships a SKILL.md, an llms.txt index, and an AGENTS.md integration guide for agents that consume those directly. The standalone commands follow the same pattern: forma render --out preview.png script.forma for a preview without re-evaluating, and forma draw --out blueprint.svg script.forma for the blueprint alone.

5. Hand it to your coding agent#

Workflow loop diagram: a script file feeds the Forma engine, which produces a 3D part, a rendered preview and a blueprint, feeding back into the script
The agent loop Forma is built for: script in, part and preview out, iterate on the diff. Credit: AI Frontier Post.

The CLI is the fallback. The intended interface is MCP: four tools, 789 tokens of schema, no other surface. Add it to any MCP client with the config from the README:

{
  "mcpServers": {
    "forma": {
      "command": "npx",
      "args": ["-y", "-p", "forma-3d", "forma-3d-mcp"]
    }
  }
}

I verified the server end of that config directly. Piped an MCP initialize handshake and a tools/list request into its stdio transport, it answered as forma-mcp 0.4.2 and listed the four tools: eval (run Forma-Pipe transactionally, auto-rollback on error), inspect (bounding box, volume, manifold invariants, face tags), tx (checkpoint, rollback, undo, reset), and export. The design is visible in what eval returns: not a mesh dump, but a compact diff — bounding box, volume, and manifold flags, the same lines you saw in the flange output above. That is how the whole interaction stays under 800 tokens of schema and a few hundred tokens per turn. The agent writes a one-line script, gets back a one-paragraph diff, and iterates. What I did not do is run a full agent session driving it — that needs an agent client with a model key, which the sandbox does not have — so treat the session behaviour as documented, not observed.

If you would rather skip npm and run the native binary, the README path is git clone https://github.com/wrong-nebula/forma.git followed by cargo build --release, producing a ~1.7 MB binary at ./target/release/forma. I did not run that build here — the sandbox has no Rust toolchain — so the native numbers in this article are the README's, and everything I measured is the WASM build. That is also a useful data point in itself: the 85-millisecond flange time above is the WASM build, not the native one.

When to use Forma vs alternatives#

ToolWhat it isReach for it when
Forma1.7 MB Rust engine, pipe language, MCP serverAn agent is generating parametric parts and you want millisecond iteration with a tiny footprint
Blender (bpy)The full 3D suite, scripted in PythonYou need organic modelling, sculpting, animation, or production rendering — or existing .blend assets
build123d / CadQueryPython CAD on a real kernel (OCCT)You need true CAD semantics: analytic solids, fillets that survive editing, a mature ecosystem
OpenSCADScripted CSG, huge communityYou want scripted parts with a decade of shared models and do not need agent-first design
SolidCraftParametric CAD via MCP, also in RustYou want the closest cousin to Forma, aimed at CAD-style parametric modelling rather than replacing Blender
MCP-for-BlenderAn MCP addon that drives real BlenderYou need Blender itself — its renderer, its modifiers, its file format — under agent control

The honest summary: Forma replaces the headless-Blender workflow for mesh modelling, booleans, and previews. It does not replace Blender. Anything involving sculpting, rigging, animation, or photoreal rendering stays in Blender, and anything needing analytic CAD solids stays with a real kernel. What Forma is for is the loop an agent runs a hundred times a day: write a short script, check the diff, look at the render, fix the script.

Reading the results honestly#

  • The project is about a day old. It was created on December 2, has 26 commits, and its API can change under you. Pin the version ([email protected] is what this tutorial ran) and expect rough edges.
  • The benchmark table is the project's own. Twelve models, ten labs, six tasks, verified with trimesh and scipy according to the README — but self-reported, and not reproduced here. My numbers are the sandbox ones: 85 ms for the flange, 33 ms for the nut, 107 ms for the mug, all on the WASM build.
  • Forma checks watertightness, not intent. The misplaced handle in step 3 passed every invariant. The render flag is the real verification step: look at the part.
  • STEP export is faceted. No analytic cylinders or NURBS. Fine for printing and reference; not a parametric solid for a CAD kernel.
  • Licence: GPL-3.0. No cost and no restriction for personal use, tutorials, or internal tooling. Check the terms before embedding the engine in a commercial product.
  • The native build is documented, not verified here. Everything measured in this tutorial is the npm/WASM path. If you build from source, expect the same commands and the same outputs, but verify the binary size and timings yourself.

The takeaway#

You now have a 3D modelling engine that fits in 1.7 MB, starts in milliseconds, and speaks a language short enough to fit in a model's working memory — installed with a single npx command, no toolchain, no GPU, no account. You have built a bolted flange, a hex nut, and a shelled mug with a handle; exported all three as GLB, STL, and STEP; rendered a four-view preview and a dimensioned blueprint; and started the MCP server that lets a coding agent do the same loop on its own. The reason 4,325 people starred it in a day is not the size. It is that the loop — script, diff, render, fix — is the loop agents actually run, and Forma is the first headless modeller built for it from the ground up. The project is a day old, so treat it as a fast-moving tool, not a finished one. But the parts it produced in this tutorial are real, watertight, and sitting on disk.