x-klikit-event-id, and
fast 2xx acknowledgement.
Run it
:8080 and exposes POST /webhooks/klikit.
Source
server.js
Hardening for production
The reference above runs as-is, but two things need real-world replacements before you put it in production:seenEventIDsis in-memory. Replace with Redis (SET key NX EX 86400) or a Postgres unique index. An in-memory set evaporates on every restart, letting duplicates back in.setImmediateis a single-process queue. For real throughput, push to a durable queue (SQS, Pub/Sub, RabbitMQ, BullMQ) and process from a separate worker so an OOM in your processor can’t drop events.