# Repository Briefing: permitzip/mutinybim
> Source: https://repoforai.com/repo/permitzip/mutinybim (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/permitzip/mutinybim
- **Official Docs / Website**: https://mutinybim.com
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.2.164 (2026-12-03) — https://github.com/permitzip/mutinybim/releases
- **Review Snapshot**: 2026-12-03 (Note: v0.2.164 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 153 ★ total (+0 24h / +23 7d) · 37 forks
- **Topics**: `aec`, `architecture`, `bim`, `engineering`, `ifc`, `mcp`, `mep`, `typescript`
- **When to Use**: Best for: AEC teams and tool builders piloting human-reviewed model automation, multi-trade collaboration, or an embedded BIM editor with a shared command model. Skip if: You need a drop-in production authoring suite, verified round-trip interoperability, or permit-ready calculations without independent professional review.

## Overview
```text
### Architecture & Core Mechanics
MutinyBIM is a layered TypeScript workspace. Typed units, a pure formula language and solid geometry underpin `packages/bim-kernel`; `manifold-3d` converts solid programs into triangle meshes backed by a mesh cache. The kernel owns generic elements, connected networks, validation and commit policy, while trade semantics enter through versioned add-on contracts. Tests enforce import direction and reject dependency cycles. The browser editor uses a small host contract, so it can run in the standalone host or be embedded in another application that implements it.

An editor previews an intent such as `route_run` locally. The authoritative server reruns it against the current model, checks for conflicts with edits since the client's base revision, commits a changeset to PostgreSQL and distributes it over WebSocket. `packages/bim-sync` separates the wire protocol and sequencing from storage and authorization contracts. `packages/bim-mcp` exposes a small, script-first tool surface over stdio or HTTP; domain tool families live in `packages/bim-mcp-packs`. Humans and agents use the same command path and validation rules.

### Key Capabilities & Differentiators
The editor supports plan, 3D and sheet views, element placement, routing and sizing, levels, spaces, schedules, branches and versions. First-party add-ons cover architecture, structural, civil, site and development work, plus electrical, mechanical, plumbing, gas and fire protection. The calculation interface is deterministic and unit-typed, uses versioned design criteria and identifies a clause or method for each result. Revision-scoped coordination lint is read-only and checks clashes, placement and drawing issues.

`packages/bim-ifc` exports IFC 4.3 as STEP Part 21 using the add-on registries, and `packages/bim-sheets` produces vector PDF sheets. Release v0.2.157 added high-detail GLB, OBJ and STL export for full models and individual objects. For automation, `mutinybim-script run | check | pack` works independently of MCP. In a connected assistant workflow, an agent can script walls, routes, circuits, schedules and sheets, preview the result without mutating the shared model, and submit it after human approval.

### Trade-offs & Limitations
Against a mature BIM authoring suite, the main reason to adopt MutinyBIM is its shared command path for people, scripts and assistants: teams can test the same model operations interactively and in automation without maintaining a second editing path. The trade-off is product maturity. Treat it as an engine with an editor, not a proven drop-in replacement for established authoring and delivery workflows. Check trade coverage, drawing conventions and exchange fidelity on representative projects; IFC export alone does not establish round-trip compatibility.

Local previews make edits inspectable before submission, but as the authoritative model advances, a preview can still encounter a conflict at commit time. Persistent deployment also means operating a model authority, a database and a sign-in boundary rather than just serving the editor. Browser load will depend on geometry and view complexity; server and storage sizing should account for concurrency and revision history. Built-in calculations do not replace professional judgment, and licensed reference data such as fitting-loss tables is not bundled.

### Hardware & Deployment Guide
Start with Node.js 22.13 or newer, `npm install` and `npm run demo`. The browser demo needs no database, accounts or keys, and all edits disappear when the process stops. For a persistent collaboration trial, use Docker with Compose v2 and run `docker compose up --build`. The sample editor is at `http://localhost:3095/m/demo?view=plan`, the model authority uses port 8080, and PostgreSQL 17 persists commits in a named volume. The local demo sign-in is loopback-only and should not be exposed; `docker compose down -v` deletes the model data.

`docker compose -f compose.native.yml up --build -d` starts the separate browser sign-in and model-membership workflow. It uses a separate volume, shares the same loopback ports, and needs an operator to provision the first model owner. A hosted option is available at `https://app.mutinybim.com`, including `/mcp`. For local MCP, `npm run mcp` uses stdio and `npm run mcp:http` uses HTTP. Recent releases added the prototype `mutiny` model-file CLI in v0.2.158 and corrected clash checks for mounted parts and zero-clearance cases in v0.2.156.
```

## Key Capabilities
```text
- Model authority: Browser previews and server commits use the same intent commands, with revision-aware conflict checks before changeset broadcast.
- Extension boundary: A trade-neutral kernel exposes versioned add-on contracts; tests check import direction and cycles.
- Agent workflow: MCP over stdio or HTTP runs checked scripts with non-mutating previews and human approval before commit.
- Engineering checks: Unit-typed calculation results identify their clause or method, while read-only lint checks coordination at a model revision.
- Deliverables: IFC 4.3 STEP Part 21, vector PDF sheets and high-detail GLB, OBJ and STL exports.
- Local collaboration: The in-memory demo needs no database; the Compose stack persists commits in PostgreSQL 17 and syncs edits over WebSocket.
```

## Quick Start / Clone
```bash
npm install
npm run demo
```
