Sub-50 ms restore
Binary snapshots with MessagePack encoding and SHA-256 integrity checks restore the full design system graph in under 50 ms.
A persistent kernel that serves your design system graph to every tool in your stack — tokens, rules, components, and entropy — over a fast local IPC transport.
The Design System Runtime (DSR) is a long-lived Node.js daemon that holds the complete design system graph in memory. It is the authoritative source of truth for:
Tools such as design-lint, LSP servers, MCP servers, and CI scripts connect to the kernel over the Kernel Wire Protocol (KWP) and use DSQL to query or mutate state. The kernel broadcasts all mutations as typed events to all connected clients.
DSR ships three connection environments out of the box:
DSQL is a fluent, in-memory query API that speaks the same language whether the underlying executor is local (in-process) or remote (over KWP):
import { NodeEnvironment } from '@lapidist/dsr/environments/node';
const env = new NodeEnvironment();
await env.connect();
// Find the closest token match for a raw CSS value
const matches = await env.dsql.tokens('color').closest('#3B82F6', 'color');
// List all enabled, fixable rules in the "tokens" category
const fixable = await env.dsql.rules('tokens').fixable();