An npm-workspaces monorepo of four packages. Business rules live in pure TypeScript that cannot import Prisma, cannot reach a framework, and can be tested with the Node test runner alone.
{{ p.body }}
Click any node to inspect what the ledger writes at that step.
{{ sel.body }}
Pick a machine, then click a state to attempt a transition. Illegal moves are refused at the domain boundary — the same guard the server actions run behind.
{{ c.body }}
Middleware only checks that a cookie is present — the Edge runtime cannot run Prisma, so it is never trusted with authorisation.