@eidentic/sqlite
v0.2.2
Published
SQLite store adapter for Eidentic — durable agent memory, sessions, facts, and durable-execution state over better-sqlite3 (Node/Bun).
Maintainers
Readme
@eidentic/sqlite
SQLite store adapter for Eidentic — durable agent memory, session records, temporal knowledge
graph facts, and durable-execution checkpoints over better-sqlite3. Implements StorePort,
GraphPort, and DurablePort from @eidentic/types. Best for Node.js and Bun; for
serverless/edge use @eidentic/libsql instead.
Install
pnpm add @eidentic/sqlitebetter-sqlite3 is a peer dependency and must be installed separately:
pnpm add better-sqlite3Usage
import { SqliteStore } from "@eidentic/sqlite";
import { Agent, AIModel } from "eidentic";
import { anthropic } from "@ai-sdk/anthropic";
const store = new SqliteStore("./eidentic.sqlite");
// or in-memory:
const memStore = new SqliteStore(":memory:");
const agent = new Agent({
id: "assistant",
model: new AIModel(anthropic("claude-sonnet-4-5")),
store,
});
for await (const ev of agent.query("Hello", { sessionId: "s-1" })) {
if (ev.type === "stream.delta") process.stdout.write(ev.delta.text);
}Links
Apache-2.0
