- 7KB
- SDK size
- 0
- dependencies
- 10max
- events per page
- 3
- answer languages
The problem
Front-end errors usually surface when a user complains. By then the stack trace is minified, the same bug has been logged hundreds of times, and someone still has to work out what it means.
What I built
-
Capture
A 7 KB script with no dependencies listens for uncaught errors and rejected promises. It never throws itself and sends at most 10 events per page, so a broken loop cannot flood the server.
-
Filter
Tokens, passwords and keys in the URL are replaced before sending, and again on the server. Cookies, form input and page content never leave the browser.
-
Group
A fingerprint built from the message and stack frame ignores line numbers and build hashes, so the same bug stays one row after every deploy.
-
Explain
Only the first occurrence of an error goes to Claude. The answer has to match a JSON schema and is validated before it is saved, in English, Turkish or Azerbaijani.
Details
- Rate limited to 60 requests a minute per project and 20 a minute per IP.
- Payloads are capped at 64 KB; long stacks are cut, not dropped.
- Visitor IPs are hashed for rate limiting and never stored.
- Shipped as an MIT-licensed plugin for October CMS.
Stack
- October CMS
- PHP
- JavaScript
- Claude API