Bug report button

Install feedbackWidget options, reportButton(), openReport() and attachReport()

Every web page that runs the Blipit browser SDK gets a Report a bug button. A visitor clicks it, marks up a screenshot, points at the broken element, can record the screen, says what happened and sends it; you get the report with the console, network requests, clicks, browser and page. This guide shows the button as it ships, every way to change it, and how to open the same reporter from your own button.

Copy a prompt for your AI assistantPaste it into Claude Code, Cursor or any AI coding assistant. It carries the steps and the code. In app.blipit.io, API keys, the same prompt comes with your key filled in.

1Set up the key

The button needs only the public key (blipit_pk_), the same one that sends errors. Sign in at app.blipit.io and open API keys in the sidebar, then your project. The secret key (blipit_sk_) never goes in a web page: the SDK refuses it with a console error. Put the public key where the guide for your framework says: NEXT_PUBLIC_BLIPIT_KEY in .env.local for Next.js, VITE_BLIPIT_KEY in .env for Vite, or written into the script tag.

API keys in app.blipit.io: the public key (blipit_pk_) for browser code and the secret key (blipit_sk_) for servers and Odoo.
API keys in app.blipit.io: the public key (blipit_pk_) for browser code and the secret key (blipit_sk_) for servers and Odoo.
A new secret key is shown once. Copy it now: it is stored hashed and cannot be shown again.
A new secret key is shown once. Copy it now: it is stored hashed and cannot be shown again.

2By default it looks like this

A Report a bug button in the bottom-right corner of every page, in the visitor's language, on light and dark sites alike. It lives in its own shadow DOM, so your CSS cannot change or break it. Below 480 px wide it becomes a round icon so it never covers your content.

js
Blipit.init({ key: "blipit_pk_your_public_key" });
Default button on a light site, desktop.
Default button on a light site, desktop.
Default button on a dark site, desktop.
Default button on a dark site, desktop.
On a phone it is a round icon, bottom right.
On a phone it is a round icon, bottom right.
The phone icon on a dark site.
The phone icon on a dark site.

3What the reporter does

A click opens the reporter over the page. It starts with a screenshot the visitor can mark up with arrows, boxes, text, numbered steps, highlight and blur, while passwords and form values are already hidden. Pick element lets them point at the broken part; Video records the screen with an optional voice-over when recording is on for the project. They add a title and what happened and press Send report. The report lands on Bug reports in app.blipit.io with a reference such as BR-12.

The reporter with a marked-up screenshot, a title and what happened.
The reporter with a marked-up screenshot, a title and what happened.
Pick element: the visitor points at the part of the page that is broken.
Pick element: the visitor points at the part of the page that is broken.
Video: the visitor records the screen, with a voice-over if they want.
Video: the visitor records the screen, with a voice-over if they want.

4Position

bottom-right is the default. bottom-left, middle-right and middle-left put it elsewhere; the middle positions sit halfway down the edge.

js
Blipit.init({
  key: "blipit_pk_your_public_key",
  feedbackWidget: { position: "bottom-left" },
});
position: "bottom-right" (default)
position: "bottom-right" (default)
position: "bottom-left"
position: "bottom-left"
position: "middle-right"
position: "middle-right"
position: "middle-left"
position: "middle-left"

5Icon only or icon and text

style: "label" (default) shows the icon and the text. style: "icon" shows a round icon; the text stays as its tooltip and its screen-reader label.

js
feedbackWidget: { style: "icon" }
style: "icon"
style: "icon"

6Your own text

text replaces Report a bug in every language. Leave it out to keep the translated default.

js
feedbackWidget: { text: "Report Issue" }
text: "Report Issue"
text: "Report Issue"

7Colour and font

By default the button and the report form match your site: they use your page's font and its main colour, read from a CSS variable such as --primary or --brand, your primary button or your links. color takes any CSS colour (a hex value, rgb() or a gradient) and font takes a CSS font family; both apply to the button and the form and win over what was read from the page. match: false keeps the Blipit look. The dashboard has the same switch, Match my site.

js
feedbackWidget: { color: "#E11D48", font: "Inter, sans-serif" }
Prompt for your AI assistant
Make the Blipit Report a bug button and report form match this site's theme.

1. Find where Blipit starts in this project: Blipit.init({ ... }), the <Blipit /> component or the blipit.js script tag.
2. Check the installed version of @blipit/browser or @blipit/nextjs. From 0.3.22 the button and the form take the site's font and main colour by themselves. If the version is older, update it. A script tag that loads https://blipit.io/sdk/blipit.js is already up to date.
3. Find this site's main brand colour and font: a CSS variable such as --primary or --brand, the Tailwind theme, or the style of the primary button.
4. If the site already exposes that colour as --primary, --brand, --color-primary or on its primary button, change nothing else: Blipit reads it.
5. If it does not, set both in code: feedbackWidget: { color: "<brand colour>", font: "<font family>" }. In Next.js: <Blipit feedbackWidget={{ color: "<brand colour>", font: "<font family>" }} />. color takes any CSS colour, font takes a CSS font family.
6. Do not write CSS for the button. It lives in a shadow DOM and page CSS cannot reach it. Do not set match: false and do not pass feedbackWidget: false.

Then tell me which file you changed, the values you used, and how to see the result.
color: "#E11D48"
color: "#E11D48"
With no options, the button and the form take the site's own colour and font.
With no options, the button and the form take the site's own colour and font.

8Keyboard shortcut

shortcut opens the reporter from the keyboard: modifiers ctrl, shift, alt and meta joined with + and a key. It is set in code only.

js
feedbackWidget: { shortcut: "ctrl+shift+b" }
Ctrl+Shift+B opened the reporter without a click.
Ctrl+Shift+B opened the reporter without a click.

9The same settings in the dashboard

In app.blipit.io, open Project settings, then Bug report widget: Show the bug report button, Position, Theme, Button style, Colour and Button text, with a live preview. They apply to every site that uses the project's key, without a deploy; the SDK keeps them for up to an hour, so test in a private window. Options passed in code win over the dashboard. The same panel turns screen recording on or off and sets who is emailed about new reports.

Project settings, Bug report widget in app.blipit.io, with the live preview.
Project settings, Bug report widget in app.blipit.io, with the live preview.

10The official Report a bug button

To put a Report a bug button inside your own pages, in a header, a menu or a help panel, use the official one. It shows the Blipit icon and Report a bug in the visitor's language, opens the same reporter, shows a spinner while the reporter loads, and brings its own styles, so your CSS does not change it and it does not change your page. In Next.js, render <BlipitReportButton /> from @blipit/nextjs anywhere, also in server components. Other React apps import it from @blipit/nextjs/react. Without React, Blipit.reportButton(options) returns a <button> to put where you like. <Blipit /> or init must already run on the page.

  • variant: "solid" (default, blue), "outline" (a thin border) or "ghost" (no border or background, for menus).
  • size: "md" (default, 40 px high) or "sm" (32 px high).
  • theme: "auto" (default) follows your page's background; "light" or "dark" fixes it.
  • label: your own words for reporting a bug, used in every language. Leave it out to keep Report a bug, translated.
  • className (React only): set on the wrapper around the button, for spacing and placement.
Next.js: app/header.tsx
import { BlipitReportButton } from "@blipit/nextjs";

export function Header() {
  return (
    <header>
      <a href="/">Acme</a>
      <BlipitReportButton />
    </header>
  );
}
React (npm install @blipit/nextjs)
import { BlipitReportButton } from "@blipit/nextjs/react";

<BlipitReportButton variant="outline" size="sm" className="ms-auto" />
Plain HTML
<nav id="help-menu"></nav>
<script>
  const menu = document.getElementById("help-menu");
  menu.append(Blipit.reportButton({ variant: "ghost" }));
</script>
Vue
<script setup>
import { onMounted, ref } from "vue";
import { reportButton } from "@blipit/browser";

const slot = ref();
onMounted(() => slot.value.append(reportButton()));
</script>

<template>
  <span ref="slot"></span>
</template>
The official button in a site header, light.
The official button in a site header, light.
The same button on a dark site.
The same button on a dark site.
solid, outline and ghost, in md and sm, on light and dark pages.
solid, outline and ghost, in md and sm, on light and dark pages.

12Your own button in Next.js

Put <Blipit /> in app/layout.tsx as the Next.js guide shows, then call openReport from any client component. The file needs "use client" at the top, because it handles a click.

app/report-issue.tsx
"use client";

import { openReport } from "@blipit/nextjs";

export function ReportIssue() {
  return <button onClick={() => openReport()}>Report Issue</button>;
}
app/header.tsx
import { ReportIssue } from "./report-issue";

export function Header() {
  return (
    <header>
      <a href="/">Acme</a>
      <ReportIssue />
    </header>
  );
}
The Report Issue button in a Next.js header.
The Report Issue button in a Next.js header.
Clicking it opens the Blipit reporter.
Clicking it opens the Blipit reporter.

13Your own button in React

Call init once in your entry file, then import openReport anywhere.

src/main.tsx
import * as Blipit from "@blipit/browser";
import { createRoot } from "react-dom/client";
import { App } from "./App";

Blipit.init({ key: import.meta.env.VITE_BLIPIT_KEY });
createRoot(document.getElementById("root")!).render(<App />);
src/ReportIssue.tsx
import { openReport } from "@blipit/browser";

export function ReportIssue() {
  return <button onClick={() => openReport()}>Report Issue</button>;
}
The Report Issue button in a React app.
The Report Issue button in a React app.
Clicking it opens the Blipit reporter.
Clicking it opens the Blipit reporter.

14Your own button in Vue

Call init once in main.ts, then call openReport from a click handler in any component.

src/main.ts
import * as Blipit from "@blipit/browser";
import { createApp } from "vue";
import App from "./App.vue";

Blipit.init({ key: import.meta.env.VITE_BLIPIT_KEY });
createApp(App).mount("#app");
src/components/ReportIssue.vue
<script setup lang="ts">
import { openReport } from "@blipit/browser";
</script>

<template>
  <button @click="openReport()">Report Issue</button>
</template>
The Report Issue button in a Vue app.
The Report Issue button in a Vue app.
Clicking it opens the Blipit reporter.
Clicking it opens the Blipit reporter.

15Your own button in plain HTML

With the script tag, attachReport(element) wires up an element that already exists, and openReport() works from an onclick or from your own code.

html
<script src="https://blipit.io/sdk/blipit.js"></script>
<script>
  Blipit.init({ key: "blipit_pk_your_public_key" });
</script>

<button id="report-issue">Report Issue</button>
<script>
  Blipit.attachReport(document.getElementById("report-issue"));
</script>

<a href="#" onclick="Blipit.openReport(); return false;">Report Issue</a>
The Report Issue button in a plain HTML page.
The Report Issue button in a plain HTML page.
Clicking it opens the Blipit reporter.
Clicking it opens the Blipit reporter.

16Odoo

The Blipit module adds the button to Odoo for you. Under Settings, Blipit, Bug reports, Shown to, choose Internal users, Website visitors, Both or Nobody. Reports carry the Odoo model, record and field, and the signed-in user's name and email are filled in. Position, colour, text and style come from the dashboard settings above.

17Hide the default button

Keep only your own button by turning the floating one off, in code or in the dashboard (Show the bug report button). openReport() and attachReport() keep working either way.

Next.js
<Blipit publicKey={process.env.NEXT_PUBLIC_BLIPIT_KEY!} feedbackWidget={false} />
React, Vue, plain JavaScript
Blipit.init({ key: import.meta.env.VITE_BLIPIT_KEY, feedbackWidget: false });

18Change the button while the page runs

updateWidget changes the floating button without a reload, for example to move it away from a chat bubble on one page. updateWidget(false) removes it. The demo at the top of this page uses it.

js
Blipit.updateWidget({ position: "middle-left", style: "icon" });
Blipit.updateWidget(false);

19Prefill and add context

setUser fills in the reporter's name and email, and they get an email when you reply or change the status. setReportMetadata adds your own fields to every report; the function runs when the report is sent, so the values are current. Never put passwords or tokens in either.

js
Blipit.setUser({ id: "42", username: "Ana Lima", email: "ana@example.com" });

Blipit.setReportMetadata(() => ({
  plan: "pro",
  cartItems: cart.length,
  featureFlags: flags.enabled(),
}));

20Mobile apps

The iOS, Android, Flutter and React Native SDKs have their own Report a bug button, and showReport() opens the reporter from your own menu. In an app, the reporter takes a screenshot to mark up, records the screen (iOS only), or lets the user just describe the problem. Picking an element is on the web and in Odoo only. See the iOS, Android, Flutter, React Native guide.

21Check it works

Reload your site: the Report a bug button appears in the bottom-right corner (or where you put it). Click it, send a test report, and it shows under Bug reports in app.blipit.io within a few seconds.

22If the button does not show up

  • Open the browser console and look for lines that start with [blipit]. Turn on debug (debug: true in init, or debug on <Blipit />) to see whether the button was shown, turned off in code or hidden by the project setting.
  • Next.js only sends variables whose names start with NEXT_PUBLIC_ to the browser, so use NEXT_PUBLIC_BLIPIT_KEY. Vite only sends VITE_ variables, so use VITE_BLIPIT_KEY. With any other name the key is empty in the browser and Blipit does not start.
  • Restart the dev server after you add or change .env or .env.local. It reads them only when it starts.
  • On Vercel or any other host, add the same variable in the project's environment variables and deploy again. NEXT_PUBLIC_ and VITE_ values are written into the build, so a running deployment never sees a value added later.
  • Use the public key (blipit_pk_). A secret key (blipit_sk_) is refused in the browser with a console error; if one was ever on a page, create a new secret key.
  • In Next.js, <Blipit /> belongs in the root app/layout.tsx (or pages/_app.tsx) so it runs on every page. In other apps, call init once in the entry file, before the app renders.
  • Show the bug report button must be on in app.blipit.io, Project settings, Bug report widget, and your code must not pass feedbackWidget: false. The SDK keeps the project settings for up to an hour, so test a change in a private window.
  • Ad blockers and privacy extensions can block in.blipit.io. Try a private window with extensions turned off.
  • If your site sends a Content Security Policy, allow script-src https://blipit.io, connect-src https://in.blipit.io, img-src data: and media-src blob:. The reporter editor loads from blipit.io/sdk on the first click, the screenshot is drawn from a data: image, and screen recordings upload to in.blipit.io too. With debug on, the console says when the policy blocked the screenshot. For voice in screen recordings, the site's Permissions-Policy header must allow microphone=(self), and display-capture=(self) for screen recording; with microphone=() recordings work without sound.
  • Check which version is installed with npm ls @blipit/browser @blipit/nextjs (or pnpm list @blipit/browser @blipit/nextjs) and compare it with the changelog. pnpm 11 waits a day before it installs a new release (minimum-release-age), so on release day pnpm add quietly installs the previous version. To get the new one at once: pnpm add @blipit/browser@<version> @blipit/nextjs@<version> --config.minimum-release-age=0.
  • Still stuck? Email support@blipit.io with the [blipit] lines from the console.

23Microphone and screen recording permissions

  • Before recording, the reporter checks screen sharing and the microphone. If both are fine it starts at once; if not, it says why in plain words and shows the steps for the visitor's own browser and system, with Try again and Record without voice. A recording without voice still works.
  • Chrome, Edge, Brave and Opera: click the icon to the left of the address bar, open Site settings, set Microphone to Allow, then reload the page.
  • Firefox: click the permissions icon in the address bar, clear the blocked microphone, then reload the page.
  • Safari on a Mac: Safari › Settings for This Website › Microphone › Allow. Safari on iPhone and iPad: aA › Website Settings › Microphone › Allow.
  • Chrome on Android: the icon to the left of the address bar › Permissions › Microphone.
  • macOS: System Settings › Privacy & Security › Microphone (and Screen & System Audio Recording for screen capture), turn on the browser, then quit and reopen it. Windows: Settings › Privacy & security › Microphone, turn on Microphone access and Let desktop apps access your microphone.
  • For site owners: a Permissions-Policy header with microphone=() turns the microphone off for every script on the page, Blipit included, and visitors cannot turn it back on. Send Permissions-Policy: microphone=(self), display-capture=(self) to allow voice and screen recording. Firefox does not apply this header.
  • With debug on, the console says once why a recording has no sound.

24Add voice when the site turns the microphone off

  • When the site's Permissions-Policy header turns the microphone off (microphone=()), the permission panel offers Add voice. It opens a small Blipit window from the visitor's click, so pop-up blockers allow it.
  • In the window the visitor clicks Turn on microphone and allows it. The window names the site it records for and shows a level meter and Mute. Back on the page, Start recording begins the screen and the voice together; pause, resume and stop follow the recording bar, and Stop recording in the window stops both.
  • The voice is saved as its own track next to the video and plays in sync with it, with one set of controls, in the reporter's preview and on the report in Blipit, where Download and Download voice give both files. Editing the video in the reporter mixes the voice in.
  • If the browser blocks the window, the panel says to allow pop-ups for the site and try again. If the window is closed during a recording, the video keeps recording and the voice is marked as ending early. The video editor's Add voice-over uses the same window.
  • Phones and tablets get the steps only. Firefox does not apply the microphone policy, so it records the voice directly, and Safari cannot tell that the site blocks the microphone.
  • The window is https://blipit.io/sdk/<version>/voice.html with its own Permissions-Policy: microphone=(self). It talks to the page only through postMessage, with the exact origins checked on both sides and a random code for each recording, and it never receives a key or upload token. Your Content Security Policy needs nothing new. Cross-Origin-Opener-Policy: same-origin cuts the window off from the page; use same-origin-allow-popups to keep Add voice.

25Reporting from a phone

  • On phones and tablets the reporter first asks how to show the problem: Take a screenshot, Record a video, Attach image, or Skip, just describe it.
  • The screenshot opens full screen with the zoom controls above it and the tools below it, so nothing covers the image. Pinch with two fingers to zoom and move, double-tap to zoom in or back out, or use − and +. Marks land exactly where you touch at any zoom.
  • Phone browsers cannot record the screen, so Record a video shows the steps for the phone's own screen recorder: Control Centre › Screen Recording on iPhone and iPad, Quick Settings › Screen record on Android, and how to add that button if it is missing.
  • Hide this and start recording tucks the reporter away and leaves a small bar at the bottom. The visitor records the problem, stops the recording, then taps I've recorded it — choose the video. The video opens in the video editor to trim it, mark it up and add a voice-over, and then the report is sent.
  • What the visitor typed is kept for 30 minutes in that browser tab, so the report is still there if the phone reloads the page while they record.

Good to know

  • The reporter editor (blipit-report.js) loads on the first click from the same folder as blipit.js, or from blipit.io/sdk/<version>/ when the SDK comes from npm, so add https://blipit.io to script-src if your site has a Content Security Policy.
  • Hiding the button in the dashboard hides it on every site that uses the key; openReport() and attachReport() still work there too.
  • Below 480 px wide the button always shows as an icon, whatever the style.

Stuck? Email support@blipit.io. Keys and the project id for each project are under API keys in app.blipit.io.