JSPM

@flowrag/storage-sqlite

1.4.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q74507F
  • License MIT

🗃️ SQLite graph storage for FlowRAG - knowledge graph with traversal and path finding

Package Exports

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

Readme

@flowrag/storage-sqlite

Graph storage implementation using SQLite. Embedded, fast, versionable.

Installation

npm install @flowrag/storage-sqlite

Usage

import { SQLiteGraphStorage } from '@flowrag/storage-sqlite';

const graph = new SQLiteGraphStorage({ path: './data/graph.db' });

await graph.addEntity({ id: 'auth', name: 'Auth Service', type: 'SERVICE', description: '...', sourceChunkIds: [] });
await graph.addRelation({ id: 'r1', sourceId: 'auth', targetId: 'postgres', type: 'USES', description: '...', keywords: ['db'], sourceChunkIds: [] });

const entity = await graph.getEntity('auth');
const relations = await graph.getRelations('auth', 'out');
const path = await graph.findPath('auth', 'dashboard');
const neighbors = await graph.traverse('auth', 2);

License

MIT