Feature
Edge-safe collector
A Next.js Route Handler that runs on the Edge or Node runtime.
The server entrypoint uses Web Crypto only, with no Buffer and no node:crypto, so the collect handler can run on the Edge runtime. It verifies the token, bounds the batch, deduplicates, rate-limits and hands events to your EventSink.
Rate limiting goes through a Store: UpstashStore in production, and an in-memory store that refuses to run in production without an explicit escape hatch.