BOMWiki/partmode

View on GitHub ↗

Open-source, local-first parametric CAD in the browser for people and permissioned typed agents, powered by OpenCascade WASM.

477 ★24 forksJavaScriptUpdated 18d ago

What you need to know

Open-source, local-first browser parametric CAD (OpenCascade WASM + three.js) for people and permissioned typed agents, with hosted MCP tools letting agents edit the same canonical document model and exact kernel as humans.

Install

git clone https://github.com/BOMWiki/partmode.git && cd partmode && npm ci && npm run build && npm start

Usage

  • Open http://127.0.0.1:4401 — browser-local CAD requires no account or external service (needs Node.js 22.13+).
  • Create a revocable key at partmode.com/account, then register the hosted MCP: codex mcp add partmode --url https://partmode.com/mcp --bearer-token-env-var PARTMODE_AGENT_KEY.
  • Call cad_capabilities before constructing a transaction; use a browser-approved session for visible approval or a headless-granted edit key for unattended server projects.
  • Run the contributor gate with npm run ci:gate.

Key features

  • Constrained sketches, editable feature history, exact B-rep via OpenCascade, assemblies, drawings, and STEP/DXF/STL/AMF/3MF exchange.
  • One shared document model and exact kernel for both human and agent edits.
  • Hosted MCP tools for capabilities, inspection, queries, detached previews, revision-safe commits, browser artifacts, and opt-in server-headless STEP.
  • Anonymous browser CAD with project/recovery history kept in browser storage; headless documents are account-owned and durable.

Best for

People plus permissioned AI agents collaboratively building parametric CAD with exact geometry, exported to STEP.

Caveats

  • GNU AGPL v3; hosted browser-agent access requires an account, revocable agent key, signed-in PartMode tab, and visible approval.
  • The relay is not end-to-end encrypted and has no offline queue; live headless sessions expire within one hour and do not survive restarts.
  • No engineering simulation, CAM, native DWG authoring, or general standards-certified GD&T/PMI workbench; imported STEP doesn't reconstruct native history/mates/PMI.
  • No individual project-delete control yet for committed headless documents.
Platforms: Web · Local · RemoteClients: Codex

Reviewed 2026-08-18

Topics

3d-modelingai-agentsbrepbrowser-cadcadlocal-firstmodel-context-protocolopencascadeparametric-cadparametric-modelingsolid-modelingwebassembly
Stars
477★
Forks
24
Language
JavaScript
License
AGPL-3.0
Created
2026-08-06
Last push
2026-08-17