bugsnap blog
Why visitors never click "Report Bug" (and how an 18 KB script catches silent bugs)
Most visitors close the tab instead of reporting a bug. Here is how a hidden 18 KB script catches the silent ones for you.
Most visitors do not report bugs. When a checkout button stops responding, an API call returns a 500, or an image fails to load, they do not look for a feedback button, open DevTools, or write you an email. They close the tab and leave.
Even if you have a "Report Bug" button on your site, it sits there waiting for a user to be generous enough to do QA for you. Usually, they are not.
That is why I built BugSnap (getbugsnap.pages.dev · GitHub), an open-source, 18 KB script (~8 KB gzipped) with zero dependencies that stays invisible until something actually breaks.
Why traditional "Report Bug" buttons miss most real issues
A static feedback button assumes three things that rarely happen in practice:
- The visitor knows something is broken. Often, a button simply does nothing—a dead click or an unhandled promise rejection—and the user assumes the page is still loading or that they clicked wrong.
- The visitor wants to spend time explaining it. Writing "I clicked Save and nothing happened" takes effort. Taking a screenshot and copying console errors takes even more.
- The bug is loud enough to notice. Broken assets, failed background
fetchcalls, or brief UI freezes degrade the experience quietly without throwing a visible error screen.
By the time someone finally emails support, you are left guessing what browser they used, what URL they were on, and what failed in the console.
How BugSnap catches silent bugs automatically
BugSnap includes an on-error mode. Instead of showing a permanent floating button on every page, the widget stays completely invisible until it detects a real failure.
When a visitor runs into trouble, BugSnap detects:
- Dead and rage clicks (repeated clicks on an element that does not respond)
- Unresponsive buttons
- Uncaught JavaScript errors and unhandled promise rejections
console.errorcalls- Failed
fetchandXHRAPI calls - Broken images and assets
- UI freezes
Only when one of those triggers fires does BugSnap surface a lightweight prompt asking if something went wrong. The visitor does not have to hunt for a widget or explain the technical context—BugSnap already has it.
What gets captured (without session replay bloat)
Many error and feedback tools pull in heavy session-replay scripts that record every mouse movement and keystroke. BugSnap skips session replay entirely.
The entire widget is 18 KB minified (~8 KB gzipped) with 0 runtime dependencies, isolated inside a Shadow DOM so it never clashes with your site's CSS.
When a report is submitted, BugSnap attaches:
- A masked viewport screenshot (with a Cropped / Full / No screenshot switch for the visitor)
- Recent console errors, failed network requests, and browser/viewport metadata
- The page URL with query strings stripped
Before the screenshot is even captured, BugSnap automatically masks passwords, emails, phone numbers, card/checkout inputs, Stripe/PayPal payment iframes, and any element tagged with data-bugsnap-mask. It also scrubs tokens, Bearer/JWTs, emails, and card numbers from logs.
Where the bug reports go
Once captured, reports route straight to where you already work:
- BugSnap Inbox (included in the hosted tier and self-hosted app)
- Auto-opened GitHub Issues (prefixed with
[BugSnap] ...) - Slack, Discord, or any custom webhook
- 1-click Copy as Markdown, formatted so you can paste the full context directly into Cursor, Claude Code, Copilot, or Factory Droid to start fixing immediately
Free forever, MIT-licensed, and self-hostable
BugSnap is MIT open-source and $0 free forever:
- Free hosted tier: Up to 5 projects and 100 reports/month at getbugsnap.pages.dev.
- Self-hosted: Deploy on Cloudflare Workers + D1 or Node 24 with no project or report limits.
If you want to stop losing visitors to silent bugs without adding another $50/month SaaS bill or a heavy session-replay script, you can drop BugSnap into your site in 30 seconds.