This jet engine is one TypeScript file: 237 lines of brepjs that build 1,897 solids. It is a 1:10 display model, not an engineered design. Boolean cuts open the casings, a change to one parameter rebuilds the engine in about half a second, and the result exports to STEP. A coding agent (Claude Code) wrote the file, and brep verify checked it.
For a full agent session, watch an agent design a Raspberry Pi 5 case from the official drawing.
Parts are plain TypeScript files, and the checker is a CLI, so any coding agent can use them. These two commands work in an empty folder:
npx -y -p brepjs-cad brep init bracket # writes a starter part
npx -y -p brepjs-cad brep verify bracket/bracket.brep.ts # builds it on a real kernel and reports
To use it in a project, run npm i -D brepjs brepjs-cad occt-wasm. Then run npx brep verify part.brep.ts. MCP clients and Claude Code have their own setup. See Authoring CAD with AI.
An agent rebuilt the 46 parts in our example gallery from their descriptions, and all 46 passed brep verify. How we measured it.
Or write it yourself
▶ Try the live playground · Examples · Getting Started · Cheat Sheet · Docs
Shapes are exact mathematical boundaries (not triangle meshes), so booleans are precise, measurements are real, and you can export to STEP. TypeScript types prove that the geometry is valid at compile time.
// Drill a hole, fillet the vertical edges, write a STEP file
import { writeFile } from 'node:fs/promises';
import { box, cut, cylinder, fillet, edgeFinder, exportSTEP, unwrap } from 'brepjs/quick';
const b = box(30, 20, 10);
const hole = cylinder(5, 15, { at: [15, 10, -2] });
const drilled = unwrap(cut(b, hole));