Skip to content

@genclass/runtime 0.1.0-alpha.0

Pre-release
Pre-release

Choose a tag to compare

@MeharPro MeharPro released this 08 Oct 00:15
· 944 commits to main since this release

First alpha of @genclass/runtime, a client-side AI runtime that runs inside your web app. It records what the app is doing (user actions, async operations, network requests, state changes, errors, timing and causality), and a small local GenClass model decides whether to step in.

npm install @genclass/runtime
import { GenClass } from "@genclass/runtime";
GenClass.init();

In this alpha

  • Observers: fetch, XHR, WebSocket, DOM user actions, errors, navigation, storage, long tasks and timers, with causal links across await.
  • State: stores through atoms, guard, and the React, Redux and Zustand adapters. Writes are versioned per field and can be held.
  • Learning: invariants (e.g. total == sum(price·qty)), per-operation transition profiles, and latency, error and rate baselines.
  • Triage: generic facts decide which situations go to the model; normal traffic never does.
  • Modes and actions: observe, guard (default) and heal, with the summed-probability policy gate and the built-in actions.
  • Observability: console reports, explain(id), undo, and the kill switch ?genclass=off.
  • Model host: a Web Worker running ONNX Runtime on WebGPU or WASM, with Cache Storage and sha256 verification, idle or lazy loading, and the genclass-runtime fetch-model CLI.
  • Devtools overlay: @genclass/runtime/devtools.

Not in this alpha. The runtime-specialist model is still training. Until @genclass/runtime-model is published, the runtime observes and records but does not act yet: every decision takes the passive action. Remaining work is listed in OPEN_TASKS.md.

Docs: package README · API · Architecture