@ntnkit/sqlite
v0.1.2
Published
SQLite durable outbox and runtime state for ntnkit (Node)
Downloads
220
Readme
@ntnkit/sqlite
Node SQLite durable outbox and runtime state for @ntnkit/sdk
(openSqliteStore). Survives process restarts with at-least-once delivery
semantics; use dedupKey for idempotency.
Install
pnpm add @ntnkit/sqliteRequires Node.js 24+. Native dependency: better-sqlite3 (build tools may
be needed on first install).
Usage
import { connect, httpTransport } from "@ntnkit/sdk";
import { openSqliteStore } from "@ntnkit/sqlite";
const store = await openSqliteStore({ path: "./outbox.db" });
const client = await connect({
store,
transport: httpTransport({ url: "https://example.com/ingest" }),
autoFlush: true,
});Single-writer (one process) in v1. Budget day boundaries are UTC.
Docs
Full guide: ntnkit README
License
Apache-2.0
