@paramrig/core
Shared ParamRig parameter and rig contracts, validation, binding transforms, expressions and animated values. ESM with TypeScript declarations. No React, browser storage or rendering engine.
npm install @paramrig/core
import { evaluateExpression, normalizeValue } from '@paramrig/core'
const value = evaluateExpression('width * 2', id => id === 'width' ? 12 : 0)
The individual types, extended-types, binding, sanitize, expression, values, parameter-values, drivers, fonts and font-value entries expose the same implementation used by the application. Importing a contract does not initialize a renderer or read storage. Node 22 and modern ESM browsers are supported.
Validation preserves the application’s existing limits and fallback rules. Callers retain ownership of documents, history and persistence. Font contracts describe carried data; this package does not fetch or register fonts.
Supported environment and dependencies
| Environment | Dependencies |
|---|---|
| Node and browser | None |
Run the complete example
Copy the Core example into a directory of its own. Its README lists the commands and resource setup. It imports only public packages; no repository aliases, editor sources or development dependencies from ParamRig are required.
Choose the boundary
The packages ship ESM JavaScript and TypeScript declarations. A sub-entry selects the code your bundler loads. A separate package changes what npm installs. The complete editor is part of the application; this SDK exposes its engine or controls.
Compare packages · Build a selective application distribution