Package Exports
- @flowrag/storage-json
- @flowrag/storage-json/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@flowrag/storage-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@flowrag/storage-json
KV storage implementation using JSON files on disk. Git-friendly, human-readable.
Installation
npm install @flowrag/storage-jsonUsage
import { JsonKVStorage } from '@flowrag/storage-json';
const kv = new JsonKVStorage({ path: './data/kv' });
await kv.set('doc:readme', { content: 'Hello world' });
const doc = await kv.get('doc:readme');
const keys = await kv.list('doc:');
await kv.delete('doc:readme');
await kv.clear();Storage Layout
data/kv/
├── doc:readme.json
├── chunk:readme:0.json
├── extraction:a1b2c3.json # LLM cache
└── docHash:doc:readme.json # Incremental indexingLicense
MIT