Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

Make forma-server opt-in via default-members and separate server-v* release workflow

wrong-nebula69e4c99fad20
diff --git a/.github/workflows/server-release.yml b/.github/workflows/server-release.yml
new file mode 100644
index 0000000..cbd3d1d
--- /dev/null
+++ b/.github/workflows/server-release.yml
@@ -0,0 +1,30 @@
+name: Release Optional forma-server
+
+on:
+ push:
+ tags:
+ - "server-v*"
+ workflow_dispatch:
+
+jobs:
+ build-server:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ targets: x86_64-unknown-linux-musl
+ - run: sudo apt-get update && sudo apt-get install -y musl-tools
+ - name: Build standalone static forma-server
+ run: |
+ RUSTFLAGS="--remap-path-prefix=$HOME=/home -C target-feature=+crt-static" \
+ cargo build --release --target x86_64-unknown-linux-musl -p forma-server
+ strip target/x86_64-unknown-linux-musl/release/forma-server
+ tar -czf forma-server-linux-x86_64-musl.tar.gz -C target/x86_64-unknown-linux-musl/release forma-server
+ - name: Upload Release Asset (on server-v* tags)
+ if: startsWith(github.ref, 'refs/tags/server-v')
+ uses: softprops/action-gh-release@v2
+ with:
+ files: forma-server-linux-x86_64-musl.tar.gz
diff --git a/Cargo.toml b/Cargo.toml
index 9905d63..ac8f1a4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,12 @@ members = [
"crates/forma-server",
"crates/forma-wasm",
]
+default-members = [
+ "crates/forma-core",
+ "crates/forma-lang",
+ "crates/forma-cli",
+ "crates/forma-mcp",
+]
[workspace.package]
version = "0.4.0"
diff --git a/README.md b/README.md
index c98b3ab..e9e028b 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ Forma rewrites headless Blender's 3D modeling, boolean, and studio-preview workf
- **Spatial Constraints & Queries:** Relational placement (`| on(base)`, `| align(axis, min|center|max, val)`), exact 3D `clearance(a, b)`, 2D `section(part, z)` loop/area queries, and Euler genus (`g`) diagnostics.
- **Zero-GPU Rendering & Blueprints:** Built-in 4-view (`Front / Right / Top / Iso`) studio PNG renderer with SSAO-lite + depth silhouettes + pure-Rust Deflate compression (`~20–75 KB` PNG in ~4 ms), plus dimensioned 1200×900 vector SVG technical blueprints (`forma draw`).
- **Universal Import, Decimation & Export:** Pure-Rust `.glb`, `.obj`, and `.stl` importers (`load("item.glb")`), topology-preserving QEM mesh decimation (`| decimate(0.5)`), native `.glb` (PBR + triplanar UVs), ISO 10303-21 `.step`, `.3mf`, `.stl`, `.obj`, `.svg`, `.png`, and `.blend` (via optional Blender bridge).
-- **Headless Server Microservice (`forma-server`):** Zero-dependency multi-threaded HTTP/1.1 worker pool (`1.4 MB` binary, `< 5 MB` scratch `Dockerfile`) with multi-tenant DoS bounds, `/v1/eval` (in-memory base64 assets, zero host FS access), and `/v1/process` (`>1,300 req/s` on Apple M1).
+- **Optional Headless Server (`forma-server`):** Separate opt-in HTTP/1.1 worker crate (`cargo build --release -p forma-server`, `1.4 MB` binary, `< 5 MB` scratch `Dockerfile`) with zero impact on the core `forma` CLI, `forma-mcp`, or `forma-3d` npm/WASM bundle.
---