Skip to content

brepjsCAD modeling for JavaScript.

Exact B-Rep geometry, type-safe at compile time, browser-native via WASM.

brepjs hero shape

Build a part in five lines

typescript
import { box, cut, cylinder, fillet, edgeFinder, exportSTEP, unwrap } from 'brepjs/quick';

const drilled = unwrap(cut(box(30, 20, 10), cylinder(5, 15, { at: [15, 10, -2] })));
const part = unwrap(fillet(drilled, edgeFinder().inDirection('Z').findAll(drilled), 1.5));
const step = unwrap(exportSTEP(part));

Drill a hole, fillet the vertical edges, export to STEP. The full code-CAD loop in five lines. Want to see it run? Hover the snippet above and click Open in Playground.

Where to go next

Released under the Apache 2.0 License.