JSPM

@flowrag/storage-json

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q51774F
  • License MIT

FlowRAG core - placeholder package

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-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