falkordblite
raw JSON → 0.2.0 verified Fri May 01 auth: no javascript
Embedded FalkorDB for Node.js/TypeScript, version 0.2.0. Spins up a local redis-server with the FalkorDB module over a Unix socket — zero-config, no system dependencies. Ships TypeScript types, requires Node >=20, and depends on falkordb ^6.0.0 as a peer for the Graph client API. Differentiators: automatic binary download per platform, seamless migration to remote FalkorDB by changing import, and advanced exports for custom embedding.
Common errors
error TypeError: FalkorDB.open is not a function ↓
cause Using default import instead of named import.
fix
Use: import { FalkorDB } from 'falkordblite'
error Error: Cannot find module 'falkordb' ↓
cause Missing peer dependency.
fix
Install the missing package: npm install falkordb
error Error: ENOENT: no such file or directory, stat '/tmp/falkordblite-XXXXXX/redis.conf' ↓
cause Startup timeout or binary not found.
fix
Increase timeout option or check binary download logs.
error Error: Node.js version must be >=20. Current version: v18.x.x ↓
cause Node.js version too old.
fix
Upgrade Node.js to version 20 or higher.
Warnings
breaking Requires Node >=20; runtime error on older versions. ↓
fix Upgrade Node.js to version 20 or higher.
gotcha Unix socket path length must not exceed the system limit; version 0.2.0 fixes a bug allowing paths at exact limit. ↓
fix Update to 0.2.0 or ensure socket path is within limits.
gotcha Automatically downloads FalkorDB binary on first run; requires internet connectivity and disk write access. ↓
fix Ensure network access or provide custom binary paths via options.
deprecated Insecure temporary file handling in versions before 0.2.0 (fixed in PR #8). ↓
fix Update to 0.2.0 or later.
gotcha peer dependency 'falkordb' must be installed separately for Graph API usage. ↓
fix Run 'npm install falkordb' alongside falkordblite.
Install
npm install falkordblite yarn add falkordblite pnpm add falkordblite Imports
- FalkorDB wrong
const FalkorDB = require('falkordblite')correctimport { FalkorDB } from 'falkordblite' - FalkorDB (opening connection) wrong
const db = new FalkorDB()correctconst db = await FalkorDB.open() - Graph wrong
import { Graph } from 'falkordblite'correctimport { Graph } from 'falkordb' - ConfigGenerator, ServerManager, BinaryManager wrong
import { ConfigGenerator } from 'falkordblite/dist'correctimport { ConfigGenerator } from 'falkordblite'
Quickstart
import { FalkorDB } from 'falkordblite';
async function main() {
const db = await FalkorDB.open();
const graph = db.selectGraph('quickstart');
const result = await graph.query('RETURN 1');
console.log(result);
await db.close();
}
main().catch(console.error);