indexedDbAgenticMemoryCommittedFactLogBackend()
Create a browser IndexedDB-backed D594 single-writer committed fact-log backend.
The backend implements the D592 adapter contract directly. It appends each canonical D589 committed fact batch as one strict JSON IndexedDB append-log entry so a readable committed stream never exposes a partial batch. Browser transaction completion is treated as a physical adapter durability attempt, not an application acknowledgement, live graph truth, graph commit barrier, fsync promise, or rollback authority. IndexedDB keys and storage cursors are reported only through backend diagnostic DATA; fact-log cursors are computed from committed fact-stream positions and never from IndexedDB keys, row ids, or IDB cursors. The backend serializes calls made through one backend handle, and requires host-enforced single-writer discipline for the same database, object store, and prefix; it does not claim multi-tab or multi-handle writer correctness.
This helper does not materialize records, replay facts into application state, hydrate/restore graphs, refresh subscribers, acknowledge applications, mutate live graph truth, or create a graph commit barrier.
Import
Section titled “Import”import { indexedDbAgenticMemoryCommittedFactLogBackend } from "@graphrefly/ts/solutions/agentic-memory/browser";Signature
Section titled “Signature”function indexedDbAgenticMemoryCommittedFactLogBackend( spec: IndexedDbBackendSpec, opts: IndexedDbAgenticMemoryCommittedFactLogBackendOptions<TJson> = {},): AgenticMemoryCommittedFactLogBackend<TJson>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
spec | IndexedDbBackendSpec | IndexedDB database and object-store specification owned by the host. |
opts | IndexedDbAgenticMemoryCommittedFactLogBackendOptions<TJson> | Optional append-log prefix and diagnostic backend name. |
Returns
Section titled “Returns”A D592 committed fact-log backend.
Example
Section titled “Example”import { indexedDbAgenticMemoryCommittedFactLogBackend } from "@graphrefly/ts/solutions/agentic-memory/browser";
const backend = indexedDbAgenticMemoryCommittedFactLogBackend({ dbName: "agentic-memory", storeName: "committed-facts",});Source
Section titled “Source”packages/ts/src/solutions/agentic-memory/browser.ts