Browser-first CAD: reSHape Script (2D sketches + 3D parts, JavaScript) over brep-rs, an independent B-rep kernel written in Rust and compiled to WebAssembly. One kernel, no fallback: a shape brep-rs cannot build yet is refused per feature, in a sentence, alongside everything that did build.
packages/brep-rsthe kernel: Rust B-rep, wasm-bindgen;pkg/is build outputpackages/brep-adaptertheEngineAdapterseam and the brep-rs implementation of itpackages/scriptreSHape Script: interpreter, ModelDoc, round-trip emitterpackages/sketch2D sketch solver (constraints, arcs, outlines)packages/studioReact UI (editor, viewport, timeline) -- a library, not an apppackages/sandbox-devVite harness that mounts studio; the only runnable appscripts/lead-owned gates, run on demand (see below)bench/yardstick tasks, record.json, measurement scriptsdocs/specs, device log, kernel campaign ledger
npm run build # dependency order: sketch -> script -> kernel -> studio
npm run dev:sandbox # http://localhost:5173
npm test # check-record, then the workspace suites
The kernel wasm is not in git. Build it before anything that loads it:
cd packages/brep-rs && wasm-pack build --release --target web --out-dir pkg
The four gates under scripts/ are lead-owned and run on demand, never from
npm test. Three of them measure brep-rs against OpenCascade, which is a
referee, not a dependency: every fixture is built twice and compared, so a
kernel whose signature failure is the wrong answer rather than the missing one
has an independent oracle. replicad-opencascadejs is a devDependency for
that reason and only that reason -- nothing OCCT ships or loads in the app.
node scripts/brep-parity-gate.mjs # volume/bbox/face count vs OCCT
node scripts/brep-mesh-gate.mjs # tessellation: watertight, bounded
node scripts/brep-step-gate.mjs # STEP export, read back by OCCT
npm run gate:occt # ModelDoc semantics, script text -> solid