@contractspec/lib.overlay-engine
v3.7.24
Published
Runtime overlay engine for ContractSpec personalization and adaptive UI rendering.
Downloads
7,345
Maintainers
Readme
@contractspec/lib.overlay-engine
Website: https://contractspec.io
Runtime overlay engine for ContractSpec personalization and adaptive UI rendering.
What It Provides
- Layer: lib.
- Consumers: personalization, example-shared-ui, bundles.
- Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/lib.overlay-engine
or
bun add @contractspec/lib.overlay-engine
Usage
Import the root entrypoint from @contractspec/lib.overlay-engine, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.src/merger.tsis part of the package's public or composition surface.src/react.tsis part of the package's public or composition surface.src/registry.tsis part of the package's public or composition surface.src/runtime.tsis part of the package's public or composition surface.src/signer.tsis part of the package's public or composition surface.src/spec.tsis part of the package's public or composition surface.src/types.tsis shared public type definitions.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./mergerresolves through./src/merger.ts. - Export
./reactresolves through./src/react.ts. - Export
./registryresolves through./src/registry.ts. - Export
./runtimeresolves through./src/runtime.ts. - Export
./signerresolves through./src/signer.ts. - Export
./specresolves through./src/spec.ts. - Export
./typesresolves through./src/types.ts. - Export
./validatorresolves through./src/validator.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun test --pass-with-no-testsbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Overlay spec schema is a contract — changes are breaking for all consumers.
- Signer must preserve cryptographic integrity; do not alter signing algorithm without migration.
- Merger logic must be idempotent — applying the same overlay twice must produce identical results.
