JSPM

@flowrag/storage-json

1.1.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q51674F
  • License MIT

📄 JSON file KV storage for FlowRAG - documents, chunks, and cache as Git-friendly files

Package Exports

  • @flowrag/storage-json
  • @flowrag/storage-json/package.json

Readme

@flowrag/storage-json

KV storage implementation using JSON files on disk. Git-friendly, human-readable.

Installation

npm install @flowrag/storage-json

Usage

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 indexing

License

MIT