wrong-nebula/forma
#1Rust mesh modeling with a declarative language and MCP for 3D automation.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Forma is a Rust 2021 workspace that separates geometry (forma-core) and language evaluation (forma-lang) from the CLI, MCP, HTTP worker, and WASM packages. Forma-Pipe scripts describe operations as declarative pipelines and select edges or faces semantically. The kernel works on double-precision polyhedral meshes; transaction snapshots support iterative edits without having to reconstruct the whole interaction as a Blender bpy script.
The stdio MCP surface is deliberately small: eval, inspect, tx, and export, with a combined schema budget of 789 o200k tokens. Agents can also invoke the CLI or use the supplied GBNF grammar for constrained decoding. The forma-3d npm package exposes direct JS/TS calls such as evalPipe, exportMesh, and renderPng; the separate forma-server crate is an opt-in HTTP/1.1 worker, not an HTTP transport for the MCP server.
Key Capabilities & Differentiators
The kernel uses BVH-localized constructive solid geometry with automatic chunking and fallback for multi-hole booleans. It also provides beveling, shelling, subdivision, lofts, sweeps, and linear and radial patterns. For imported GLB, OBJ, and STL meshes, topology-preserving QEM decimation provides a way to reduce mesh density before export.
The same workflow can emit a PBR GLB, a 3MF or STL for print workflows, or a faceted STEP solid for interchange. The CPU renderer produces front, right, top, and isometric PNG views; forma draw outputs a dimensioned 1200×900 SVG. In the reported 12-task, 144-trial suite, Forma-Pipe had a median of 115 code tokens versus 644 for bpy, and mean volumetric IoU was 0.9814 versus 0.8421. Those results characterize the tested parts, not arbitrary 3D workloads.
Trade-offs & Limitations
Forma narrows the problem compared with headless Blender: a compact DSL and CPU previews reduce startup and scripting overhead for repeatable mesh jobs, at the cost of Blender's broader scene and scripting capabilities. The supplied cold-start evaluation plus GLB export measurement is 16.9 ms for Forma versus 1,306.8 ms for Blender 5.3, but it is a workload-specific result. Use your own meshes and boolean sequences when sizing a service.
The principal compatibility limit is the geometry representation. STEP export carries planar faces, not analytic cylinders or NURBS; a file that opens in CAD is not necessarily suitable for downstream editing as an analytic solid. Strict manifold checking is useful as an export gate, but does not establish dimensional correctness or printability. Native .blend export also requires the optional Blender bridge. Forma itself is MIT-licensed.
Hardware & Deployment Guide
For local evaluation and export, use the native Rust build (cargo build --release) or the forma-3d npm package on Node.js 18 or newer. An MCP client can launch forma-mcp directly or run npx -y -p forma-3d forma-3d-mcp. Neither geometry evaluation nor preview needs a GPU or a hosted inference API. The measured native peak RSS was about 6–14 MB; size workers on representative inputs and concurrency rather than treating that range as a memory cap.
The Dockerfile builds and strips static forma-server and forma binaries with rust:1.83-alpine, then copies them into scratch. It starts /forma-server at 0.0.0.0:8080; keep the listener private or put it behind appropriate access controls. v0.4.1 makes manifold verification strict by default across CLI, MCP, and npm/WASM (--no-strict or strict: false to opt out). It also defaults pattern operations to union=true, adds radial axis=x|y|z, and raises max_statements to 4096 and the segs ceiling to 128.
eval, inspect, tx, export) with a measured schema budget of 789 o200k tokens..blend export requires the optional Blender bridge.scratch image that starts /forma-server on port 8080.Agent-driven generation of dimensioned mesh parts, local batch conversion, and CPU-only previews, particularly when GLB, 3MF, STL, or faceted STEP is an acceptable handoff.
You need editable analytic CAD geometry, Blender's broader scene workflow, or native .blend export without a Blender dependency.
Quick Start & Installation
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
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/wrong-nebula/forma.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about forma
Should I integrate Forma through MCP, the CLI, or HTTP?
forma-mcp over stdio. Its four tools are eval, inspect, tx, and export. Use the CLI for file-oriented pipelines or the npm/WASM API for direct JavaScript or TypeScript integration. The optional forma-server is a separate HTTP/1.1 worker, not the stdio MCP endpoint.Does Forma require a GPU or dedicated VRAM?
Can we self-host Forma in a commercial product?
.blend export, review Blender's license obligations separately.When should we keep headless Blender or use a CAD kernel instead?
.blend tooling. If the handoff requires editable analytic surfaces, use a CAD kernel that preserves them: Forma's STEP output contains planar faces, not analytic cylinders or NURBS.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy