@contractspec/lib.presentation-runtime-core
v3.9.2
Published
Core presentation runtime for contract-driven UIs
Maintainers
Readme
@contractspec/lib.presentation-runtime-core
Website: https://contractspec.io
Core presentation runtime for contract-driven UIs.
What It Provides
- Layer: lib.
- Consumers: presentation-runtime-react, presentation-runtime-react-native.
- 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.presentation-runtime-core
or
bun add @contractspec/lib.presentation-runtime-core
Usage
Import the root entrypoint from @contractspec/lib.presentation-runtime-core, 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/metro.cjsis part of the package's public or composition surface.src/next.mjsis part of the package's public or composition surface.src/table.tsis part of the package's public or composition surface.src/visualization.echarts.tsis part of the package's public or composition surface.src/visualization.model.builders.tsis part of the package's public or composition surface.src/visualization.model.helpers.tsis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./tableresolves through./src/table.ts. - Export
./visualizationresolves through./src/visualization.ts. - Export
./visualization.echartsresolves through./src/visualization.echarts.ts. - Export
./visualization.modelresolves through./src/visualization.model.ts. - Export
./visualization.model.buildersresolves through./src/visualization.model.builders.ts. - Export
./visualization.model.helpersresolves through./src/visualization.model.helpers.ts. - Export
./visualization.typesresolves through./src/visualization.types.ts. - Export
./visualization.utilsresolves through./src/visualization.utils.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run lint— bun run 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 --noEmit -p tsconfig.jsonbun 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.
- Add data visualization capabilities.
- Add table capabilities.
Notes
- Core runtime interface is consumed by all presentation runtimes — changes here affect both web and mobile.
- Must remain platform-agnostic; no React or React Native imports allowed.
- API surface changes require coordinated updates in both downstream runtimes.
