A modeling kernel for architecture based on paper surfaces: flat, ruled and developable faces that can be cut from sheet and laid flat exactly. It is written in TypeScript and runs in a browser or in Node, with no native code, no WebAssembly and no server.
It is two packages, and a server that lets an AI agent use them:
@commonplace-technologies/kernel(src/kernel/): the model, the verbs that edit it, its history, the read side, display tessellation, save and load.@commonplace-technologies/kernel-step(src/kernel-step/): STEP reading and writing, an interop add-on. Import places manufactured parts bought from a catalog (fixtures, furniture) in a model for context; export sends parts to fabrication.@commonplace-technologies/kernel-mcp(src/kernel-mcp/): an MCP server, so an agent such as Claude can build a model with the kernel's verbs, look at it, check it, and export it as STEP, STL, OBJ or a flat paper pattern.
- The developer guides and API reference: every function, type and refusal code the two packages export, with the guides alongside. Start with Build your own modeler.
- How the kernel works, in plain language: what it is and what it is for, with no code. Start here if you will not program against it.
- Build models with an AI agent: connect Claude or another agent to the kernel and describe the model you want.
- Testbed: try it in your browser. The testbed runs a script against both packages and draws the result, with flat patterns beside the model.
src/kernel/README.md: what the kernel is and is not, and a first edit.examples/kernel/: runnable scripts and a testbed.docs/KERNEL_ARCHITECTURE.md: how the packages are laid out and how an edit moves through them.docs/limitations/: what is known not to work, each entry with the regression test that pins it.REFERENCES.md: the published work the kernel builds on, andTHIRD_PARTY_NOTICES.md: the code, packages, standards and test data it uses that others made.
Pre-release. Everything in 0.1 is experimental: names and signatures can
change between releases. On npm as
@commonplace-technologies/kernel
and
@commonplace-technologies/kernel-step.
Licensed under the Apache License, Version 2.0: see LICENSE.
Node 20 or later.
npm ci
npm run check:kernel-package # the package boundary and both type checks
npm run build:kernel # dist-kernel/, dist-kernel-step/ and dist-kernel-mcp/
npm run test:kernel-package # the built packages, used as a consumer uses them
npm test # the kernel's testsmanifold-3d in devDependencies is a test oracle only: some tests check
a solid's volume against it. Neither package depends on it, and neither
ships WebAssembly.
npm run example:kernel, npm run example:kernel:step and
npm run testbed:kernel run the examples.
Development before publication was private; the history here starts at publication. The kernel was built with the help of agentic coding tools, under a test discipline you can read in the tree: every verb either commits a model the validator accepts or refuses with a code, and every known limitation is pinned by a test.