Why we built our own CAD kernel
Every robot starts as a CAD model, and every CAD model is built on a geometry kernel. Today we’re open-sourcing our own. springrep is an exact B-rep kernel in safe Rust that handles the operations mechanical CAD relies on, from booleans and fillets to exact measurement and reading and writing STEP files. We’re also sharing brep-conformance, the conformance suite of more than 3,000 tests we used to check springrep’s geometry, which any other kernel can run too. Both are under an MIT license, so anyone can use and build on them. We’d love your feedback.
We didn’t set out to write a kernel. We’d been designing robot parts in Python using existing kernels, and they kept falling short on accuracy and speed, so we decided to build one.
Why the kernel matters
Builders tell us again and again that a robot that works in sim often behaves differently on the bench. Our mission is for robots to start in software, long before any hardware arrives, so what’s built in sim has to hold up on the real robot too. That begins with the geometry kernel, the math engine underneath most CAD tools. A part’s mass and how its weight is spread come from its shape and material, so if the kernel gets the shape wrong, the sim is wrong before anything else happens. That’s why springrep works out mass and inertia straight from the exact geometry.
Getting the geometry right matters even more with vibe CAD, where people describe a part and let AI design it. The AI builds on whatever the kernel returns, often with no engineer checking along the way. So we made sure springrep either returns a valid solid or says it couldn’t build one, so the AI knows to try again instead of quietly building on a broken shape.
Building and testing springrep
As we built springrep, the edge cases became overwhelming, and our internal tests weren’t catching them all. What got us past that was a conformance suite. It’s a large set of tests for the everyday work a kernel does, like building shapes, cutting one from another, rounding edges, and measuring volume, with the right answer for each worked out from the math. The suite caught hundreds of bugs and slow spots, and with help from Claude Code, we fixed them one by one. That made springrep both more correct and faster, until it passed every case in our suite.
A shared test suite for every kernel
Once we had the suite, we realized it could help far more than springrep. Kernels often test themselves, sometimes by checking their answers against another kernel, but if both get the same thing wrong, neither one catches it. Browsers had a similar problem with web pages. A page could look right in one browser and broken in another, until they agreed on a shared set of tests that every browser runs.
So we made brep-conformance a shared suite any kernel can run, with every kernel checked the same way, including ours. The results page starts with springrep and other open-source kernels, and we’d like every kernel to have a row.
Why we're building in the open
At Springcraft, we want builders to design and train their machines in sim. Then when the parts arrive, they go together easily and the robot already knows its job. Geometry is the foundation for all of that, so that’s where we started. Building it ourselves means the sim behind every part we make rests on geometry we understand, and building it in the open means anyone can check our work.
springrep is still early, and since we built it against our own suite, it’s only as good as that suite. This first version likely has mistakes in the tests or in the adapters we wrote for other kernels, so we’d welcome corrections, pull requests, and new kernels to compare. The more kernels run against the suite and the more builders push on it, the better it gets for everyone.
Try it
springrep is a Rust library, so if you model parts in code, try it on your own and tell us what breaks. If you maintain a kernel, plug it into the conformance suite and see how it scores, or take over the starter adapter we wrote for yours.
springrep: https://springcraft-ai.github.io/springrep/
brep-conformance: https://springcraft-ai.github.io/brep-conformance/
Curious what we’re building next? Follow the build.