HoldSendWrite offline. Publish exactly once.GitHub

@holdsend/core

The platform-independent part of HoldSend: an outbox that keeps what a person writes while offline and sends it when the connection returns, with one idempotency key per item for life.

Exactly once needs the server's half too: the server must store each key with its result and answer a retry with the original. @holdsend/server does that for Postgres; the wire contract is in the protocol.

No runtime dependencies. Under 5 KB minified and gzipped (a CI budget).

ESM only. Load it with import on Node 20 or later, in browsers and in React Native. require() also works on Node 20.19 or later and 22.12 or later; on older Node, use import().

Early: 0.1 is the first release line. The API may change before 1.0, and it is not ready for production yet.

What is in it

See the main README and docs/protocol.md.

Licence

Apache-2.0

Edit this page on GitHub