linear-capture
- personal
- 2026
- role: everything
- solo
An in-page bug reporter for Linear: point at an element, draw on its screenshot, and file an issue with its selector, component, console errors and failed requests attached.

results
- Published on npm as @stfrigerio/linear-capture, one script, no framework
- Every issue carries a screenshot, the CSS selector, the component name and the page’s recent errors
- The Linear key can stay on your server: a proxy forwards only the exact queries the widget sends
- Nothing is patched until it is turned on, and secrets in URLs are redacted from reports
the story
A bug report is only as good as what it lets a developer find again: which element, on which page, with which error in the console. linear-capture collects that while you look at the bug, and files it in Linear.
On a dev or staging build, you click the button (or press Ctrl+Shift+K), click the broken thing and give it a title. The issue gets a screenshot of the element, which you can draw on with a pen, arrows and boxes before sending, plus its CSS selector, the nearest component name (React, Vue and Svelte, or a data-component attribute on it or around it), the page's recent console errors and failed requests, and the viewport and browser. It's one script with no framework, published on npm, and it works with mouse, touch and keyboard.
Safe on a real site
Making it safe to put on a real site. A Linear API key in a page can be read by anyone who loads it, so the widget can send its queries to your own backend instead, and the package exports the exact queries it sends, so the proxy can refuse anything else. Nothing is patched until the widget is turned on, and query parameters that look like secrets are redacted before they reach an issue. The screenshots needed work too: html2canvas painted an element's own drop shadow across the capture, tinting every card and button grey, until the clone it renders from drops that shadow.
built with
JavaScript
esbuild
- html2canvas
Linear API