@ntnkit/sdk
v0.1.2
Published
NTN-aware client SDK with outbox and pluggable transports
Readme
@ntnkit/sdk
NTN-aware client: store-and-forward outbox, pluggable Transport, HTTP helper,
optional ntn-in-a-box link-state, and autoFlush.
Install
pnpm add @ntnkit/sdkRequires Node.js 24+ (ESM). Pulls in @ntnkit/core.
For a durable outbox on Node, also add
@ntnkit/sqlite.
Usage
import { DeliveryMode, Priority } from "@ntnkit/core";
import { connect, httpTransport } from "@ntnkit/sdk";
const client = await connect({
budget: { dailyBytes: 50_000 },
autoFlush: true,
transport: httpTransport({ url: "https://example.com/ingest" }),
});
await client.send({
payload: new TextEncoder().encode('{"ok":true}'),
priority: Priority.Normal,
delivery: DeliveryMode.Immediate,
});
await client.close();Docs
Full guide: ntnkit README
Shaped CI with ntn-in-a-box.
License
Apache-2.0
