Skip to content

@xtandard/webhooks/storage/memory

In-memory storage: createMemoryStorage(), for tests, development and the demo. Zero dependencies; implements every optional capability (watch, compare-and-swap, native delivery-queue claiming).

import { … } from "@xtandard/webhooks/storage/memory";
Name Summary
createMemoryStorage Create an in-memory WebhooksStorage with every optional capability. watch fires callbacks on the next microtask after a write/remove; compareAndSwap compares structurally; claimDue scans the due index across all applications and claims each delivery with a compare-and-swap.
Name Summary
MemoryStorageOptions Options for createMemoryStorage.
MemoryWebhooksStorage The full capability set the memory adapter implements.