@ntnkit/core
v0.1.2
Published
Core types, policy, and budget logic for ntnkit
Readme
@ntnkit/core
Pure application-layer logic for NTN-aware apps: message model, send policy
(shouldSend), full-jitter backoff, and daily ByteBudget.
No I/O, no fetch, no filesystem — safe to use from any JS runtime.
Install
pnpm add @ntnkit/coreRequires Node.js 24+ (ESM).
Usage
import { DeliveryMode, Priority, shouldSend } from "@ntnkit/core";
const decision = shouldSend({
priority: Priority.Normal,
delivery: DeliveryMode.NextWindow,
linkState: "satellite_window_open",
payloadBytes: 120,
budgetRemaining: 50_000,
});Most apps should depend on @ntnkit/sdk
instead and let the client drive policy.
Docs
Full guide: ntnkit README
License
Apache-2.0
