Tom Petit®
Dev tooling·Self-hosted
Ticketing
Multi-site bug reporting: a 2-line widget, automatic context capture, central admin.
Internal tool (self-hosted)
BUG
Cart no longer updates
New

I built a 2-line widget that records on its own the last 20 errors and network requests, before the user even clicks "Submit".

6 900
lines of code
704
lines of JS widget
9
tables
13
migrations
0
dependency
From business need to shipped product
The need
An agency managing several sites receives bugs by email, WhatsApp or word of mouth: no technical context, no priority, no traceability.
The delivery
A widget pasted in 2 lines on each site, which captures technical context automatically, and a central admin with Kanban, duplicate detection and team notifications.
What the platform actually does

Embeddable widget (704 lines, vanilla)

Auto-capture of the URL, the last 20 console errors, the last 20 failed network requests, and a screenshot via getDisplayMedia. Honeypot + rate-limit.

Auto site detection

By hostname, created on first submission, zero manual configuration.

Decoupled CORS API

Allowed origins managed in the database with multi-level wildcards, .env fallback.

Full admin

Stackable filters, MySQL fulltext search, Kanban view, duplicate detection, inline assignment, CSV export.

Custom SMTP client (~165 lines)

EHLO / STARTTLS / AUTH LOGIN, BCC, header injection protection, log of each send.

Webhooks & changelog

Slack / Discord (color-coded embed by severity) + public changelog of resolved tickets.

Under the hood
Monkey-patch fetch/XHR : circular buffer of failed requests.
Screenshot via browser API : getDisplayMedia, no third-party library.
Idempotent migrations : schema_migrations table, /migrate endpoint.
Isolated document root : framework convention on shared hosting.
Solid security : CSRF, bcrypt, upload whitelist.
Zero dependency : no Composer, no npm, no CDN.
Stack & technical details
BackendPHP (PDO)Custom SMTP client
DatabaseMySQL (fulltext)
Widget & frontJS vanillagetDisplayMedia
IntegrationsWebhooks Slack/Discord
InfraApacheOVHzero dependency