● jevcache · v0.1 · ◑ local-first, no api dependency
◆ JEVCACHE — the decision ledger for jev
your key · your data · your machine
what
a jev decision is a pure function of (model, schema, state), so it's memoizable.
jevcache caches it locally, replays it in CI, and can recall from a shared commons.
publish a schema and charge per call.
›private state is redacted + canonicalized before it's hashed. nothing leaves your machine.
›offline replay every fingerprint you've seen. zero network.
›any backend typesafe jev · openrouter · any local model. your key, your bill.
the hot path · app.ts
import { Jevcache } from "jevcache"
const jev = new Jevcache()
const d = await jev.decide({ schema: "support.route.v3", state: ticket })
// → { choice: "billing", confidence: 0.91, cached: false, source: "jev" }
const again = await jev.decide({ schema: "support.route.v3", state: ticket })
// → { choice: "billing", cached: true } 0ms $0.00
how · cache → local → frontier
app / agent / CI
│
SDK or CLI
│
local ledger ◄ hit → 0ms, $0.00
│
├─ opt-in → commons recall a decision someone published
└─ miss → decider local model · typesafe jev · openrouter
keyed by sha256(model ⊕ schema ⊕ canonical(redact(state))) — a hit is a jev call you never pay for.
marketplace · publish a schema, charge per call
support.route.v3 28-way ticket routing · by @acme$0.0004 / recall
fraud.triage.v2 risk 0–5 · ECE 0.03 · by @ledgerlabs$0.0011 / recall
mod.policy.en.v5 12 labels · by @trustkit$0.0007 / recall
metered per recall, paid in fractional micropayments. you keep the difference over your jev cost. only fingerprints and decisions cross the wire — never raw state.
sdk · cli · api
SDK decide() / recall() on the hot path
CLI publish fixtures · replay evals · inspect hits · stats
API hosted commons: recall · publish · schema registry · payouts
$ jevcache stats
decisions 4,812 hit rate 73% spend saved $18.44
$ jevcache publish --schema support.route.v3 --price 0.0004
listed · 4 subscribers · earning $1.20/day
$ jevcache replay --schema eval.triage.v1 # deterministic CI, no jev calls
install
$ npm i jevcache
$ curl -fsSL jevcache.sh/install | sh