Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

wrong-nebula/forma

Media & Design

A pure-Rust 3D B-rep engine with a pipe scripting language, CLI, and MCP server for AI agents to build CAD models.

This project ships 1 agent skillsSkill list and install →
1,315
96
Rust
MIT
new today
+1,315 stars in 10h

What it does

Forma is a compact 3D modeling engine written in pure Rust, positioned as a headless alternative to Blender's bpy scripting workflow for agents that build and export CAD-style models. Instead of integer vertex indices, it uses Forma-Pipe, a declarative pipe language with semantic selectors (vertical, top_rim, sides), so a model can be expressed as chains such as box | bevel | shell | cut.

The kernel provides a double-precision polyhedral B-rep, booleans aimed at watertight results, bevel/shell/subsurf operations, and patterns, threading, sweep, and text primitives. It also includes relational placement (| on(base), | align(...)) and spatial queries such as clearance(a, b) and section(part, z). Output paths cover .glb, .obj, .stl, .step, .3mf, .svg, .png, and optional .blend through a Blender bridge; rendering is CPU-only, producing 4-view studio PNGs and dimensioned SVG blueprints.

The project is aimed at AI-agent workflows, not at interactive modelers: integration is offered through an MCP server with four tools (eval, inspect, tx, export), a CLI, an Agent Skill, and a GBNF grammar for constrained decoding (integration guide, grammar).

Quickstart

To try it without installing anything, run the npm/WASM package with a pipe script on standard input:

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

This writes flange.glb, a rendered flange.png, and a vector blueprint flange.svg. To build the native binary instead, clone the repository, run cargo build --release, and invoke ./target/release/forma eval --strict --out flange.glb --render flange.png --draw flange.svg script.forma with a script file, as described in the quickstart.

For agent use, configure an MCP client with npx -y forma-3d-mcp as the server command, or call forma spec to get a short language reference before writing scripts. The npm package forma-3d also exposes evalPipe, exportMesh, and renderPng for JavaScript/TypeScript use (npm package).

Constraints

  • The tool is a scripting/CLI engine, not a GUI modeler; geometry is authored in Forma-Pipe syntax.
  • The optional forma-server HTTP worker is a separate crate built with cargo build --release -p forma-server and is not part of the core CLI, MCP server, or WASM bundle.
  • .blend export requires the optional Blender bridge; other formats are handled natively.
  • Rendering is CPU-based by design, so preview output is a studio-style raster image and SVG blueprint rather than an interactive viewport.
  • The project is MIT licensed (LICENSE).

Performance claims

The README reports benchmarks against stock headless Blender 5.3 with bpy: a 16.9 ms cold-start eval plus GLB export, 1.2 MB binary versus 953 MB, roughly 2.16 MB peak memory, and higher pass rates on a 12-model agent suite (full benchmark report, verification report). These are the maintainers' own measurements and methodology; they are not independently reproduced here.

HotRepo's take

Forma appeared on the new-project feed on 2026-12-02, recording 150 stars and 11 forks within roughly three hours of the measured window. That is a single new-period snapshot, with no all-language daily rank recorded, so it shows early attention rather than a sustained trend. The more notable technical point is the positioning: a 1.2 MB Rust binary with an MCP interface and constrained-decoding grammar targets agent-driven geometry work, a niche where Blender scripting is the incumbent. Whether the benchmark gains hold outside the maintainers' task set is the question to watch.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. earthtojake/text-to-cadLets coding agents generate manufacturable 3D CAD parts and export STEP, STL or 3MF files locally.Python22,882
  2. Sandflow-ai/sand3dPython library for building parametric, articulated 3D models as short programs, designed for LLMs to write and humans to read.HTML131
  3. f3d-app/f3dA fast, minimalist 3D viewer for many mesh, CAD and scientific formats, with CLI control and a C++/Python/Java/JS rendering library.C++5,040
  4. ahujasid/mcp-for-blenderLets an LLM drive Blender through MCP so you can build and edit 3D scenes with prompts instead of manual modeling.Python32,221
  5. islandmed/SculptForgeOpen-source digital sculpting for Linux, macOS and Windows, with game-ready LODs, Unreal and Blender links, and built-in AI brush and 3D model generation.C++181