JSPM

@llm-workbench/runtime

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q73685F
  • License MIT

Headless, model-agnostic runtime for LLM workflows — records state, artifacts, rules, human-review gates, traces, cost telemetry, and tamper-evident run bundles.

Package Exports

  • @llm-workbench/runtime
  • @llm-workbench/runtime/host/demoSchemas
  • @llm-workbench/runtime/persistence
  • @llm-workbench/runtime/protocol
  • @llm-workbench/runtime/telemetry

Readme

@llm-workbench/runtime

MIT-licensed — the headless, model-agnostic core of LLM Workbench. Records workflow state, artifacts, rules, human-review gates, traces, and cost telemetry, and exports tamper-evident run bundles. No React or framework dependency — runs in the browser, Node, or edge-style runtimes.

npm install @llm-workbench/runtime

API surface

Export Role
WorkbenchRuntime / WorkbenchSession start runs; drive steps and gates; write & patch artifacts; log model I/O and tool calls
SchemaRegistry register JSON Schemas and Ajv-validate artifacts before they become run state
MemoryRunRepository, IndexedDB, HTTP adapters pluggable persistence behind one RunRepository interface
parseRunBundleJson / verifyRunBundleIntegrity import/verify SHA-256-signed, canonical-JSON run bundles
summarizeModelTelemetry typed cost/usage ledger grouped by provider, model, step, user, tenant, plan
WorkbenchError structured errors with stable codes across package boundaries

Quick start

A complete, runnable example lives in the repository root README.md. It imports the package and exercises gates, artifacts, model-I/O telemetry, and a signed bundle export under plain Node.

Docs

Overview, architecture, scope, and non-goals: repository root README.md and PROJECT.md.