New:Socket for Asana Is Now Available.Learn more
Get Started

@theneuralledger/events

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theneuralledger/events

TNL webhook contracts, delivery service, and verification helpers.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

TNL Events

@theneuralledger/events provides the versioned TNL webhook envelope, HMAC signing and verification, endpoint policy, encrypted subscription lifecycle, outbox and fair-queue reference ports, bounded delivery state machine, control-plane server, and local receiver.

Verify a Delivery

Always verify the exact raw bytes before parsing JSON:

import { InMemoryReplayStore, verifyWebhook } from '@theneuralledger/events';

await verifyWebhook({
  rawBody,
  headers: request.headers,
  keys: { [keyId]: webhookSecret },
  replayStore: new InMemoryReplayStore(),
});

Persist delivery IDs for the documented replay window in production. The in-memory replay store is a local reference adapter.

Local Receiver

export TNL_WEBHOOK_DEV_RECEIVER=1
export TNL_WEBHOOK_SECRET="$(openssl rand -base64 32 | tr '+/' '-_' | tr -d '=')"
tnl-webhook-receiver

The receiver binds to loopback and refuses to start without the explicit development flag. See webhook operations for signing, retry, storage, alerting, rollout, and rollback contracts.

Keywords

webhook

FAQs

Package last updated on 28 Jul 2026

Related posts