bugsnap

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.

· by the BugSnap team

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:

  1. 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.
  2. 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.
  3. The bug is loud enough to notice. Broken assets, failed background fetch calls, 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.error calls
  • Failed fetch and XHR API 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.

frequently asked questions

How big is the BugSnap script?

BugSnap is 18 KB minified (~8 KB gzipped) with 0 runtime dependencies, isolated in a Shadow DOM.

Does BugSnap show a floating button to every visitor?

Not if you use on-error mode. In on-error mode, BugSnap stays invisible until it detects an issue such as a dead/rage click, unresponsive button, uncaught JS error, unhandled rejection, console.error, failed fetch/XHR call, broken image/asset, or UI freeze.

Does BugSnap use session replay?

No. BugSnap does not record continuous session replays. It captures a masked screenshot and technical context only when a visitor submits a report.

How much does BugSnap cost?

BugSnap is $0 free forever and MIT open-source. The hosted tier supports up to 5 projects and 100 reports/month, or you can self-host on Cloudflare Workers + D1 or Node 24 with no limits.

Can I send BugSnap reports to GitHub or my AI coding editor?

Yes. BugSnap can auto-open GitHub Issues ([BugSnap] ...), notify Slack, Discord, or custom webhooks, and provides a 1-click Copy as Markdown button tailored for Cursor, Claude Code, Copilot, and Factory Droid.

add bugsnap in one line.

Free and MIT open source. Hidden until a real bug, privacy masking always on.

<script src="https://getbugsnap.pages.dev/widget.js" data-project-key="YOUR_PROJECT_KEY" data-trigger="on-error" defer></script>