value-graph 0.1.0: JSON-free, bigint-free binary snapshot layer
CI / test (push) Successful in 20s
CI / publish (push) Has been skipped

- src/snapshot.js: compact portable wire (VGST store / VGGP graph), binary maps for
  params/pattern/objects (no JSON), buffer values (no JS bigint), CRC-32 guarded.
- createFileStore: binary per-key files (encodeEntryBytes/decodeEntryBytes).
- ValueGraph snapshot/snapshotFile/restore/loadFile; keys base64url(params-bytes).
- 60 tests (node:test + rigor incl. 'flip ANY byte never decodes silently').
This commit is contained in:
2026-08-04 17:37:00 -07:00
commit 1da6bc7842
12 changed files with 5228 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
"name": "@arbiter/value-graph",
"version": "0.1.0",
"description": "Lazy, TTL-cached, version-invalidated store of derived values — the second graph for measures and ARRA value lookups. ARRA (or any value source) registers compute functions; policies read fresh values through measures.",
"license": "ISC",
"type": "module",
"main": "src/index.js",
"exports": {
".": "./src/index.js",
"./package.json": "./package.json"
},
"files": [
"src/"
],
"scripts": {
"test": "node --test --test-force-exit \"test/**/*.test.js\"",
"test:rigor": "node --test --test-force-exit \"test/value-graph.rigor.test.js\"",
"bench": "node bench/hotpath.js"
},
"dependencies": {
"@push-stream-std/push-pushable": "*",
"@push-stream-std/push-stream-base": "*",
"@rigor/probe": "^0.0.8"
},
"devDependencies": {
"@rigor/core": "^3.1.2"
}
}