Knowby, 2022 to now
Knowby Capture: a Chrome extension that turns a web workflow into a step-by-step guide.
Knowby Capture is a Chrome browser extension. Click "Start capture", do the task in any web app, and every click and typed entry becomes a step with a cropped, annotated screenshot. Press Done and it becomes a Knowby guide, ready to edit. We designed, architected and developed the Knowby platform, from the mobile apps to the backend services, and the extension is part of it.
- Owner
- Knowby
- Industry
- Work instructions for manufacturing, logistics and utilities
- Services
- Browser extensions, web apps, SaaS platform integration
- Platforms
- Chrome (Manifest V3), React 19, TypeScript, Vite, Tailwind CSS, Fabric.js, Firebase Auth
- Our role
- We designed, architected and developed the Knowby platform, from the mobile apps to the backend services. We built the extension as its primary author.
The challenge
Much of the work Knowby's customers document happens in a browser: an ERP screen, a booking system, a safety portal. Writing those guides by hand is slow. Take a screenshot, paste it, crop it, draw a circle, type the step, repeat forty times. Guides written that way are out of date by the time they're finished, so people stop writing them.
A capture tool has to be both invisible and exact. It can't slow the page down or break the web app being documented. It has to work inside iframes, across tab switches and navigations, at any zoom level and on high-density screens. And the result has to drop straight into the Knowby editor as a real guide, not a folder of images.
Our approach
We built it as a Chrome Manifest V3 extension with three parts that each do one job. A content script watches the page. A background service worker coordinates capture and takes screenshots. A React side panel shows the steps as they arrive. They talk only through messages and shared storage, which is how MV3 wants it: the service worker can be stopped at any time, so nothing important lives in its memory.
We also chose to share the platform rather than copy it. The extension uses Knowby's shared TypeScript package for its data types and image helpers, signs in through the Knowby web app, and uploads through the same Pro API and media service as every other client. A guide made in the browser is the same as one made on an iPad. That's how we approach every SaaS platform: many clients, one model.
What we built
Automatic step capture
When capture starts, a three-second countdown appears, then the content script listens for clicks (using pointer events, so mouse, touch and pen all work) and for typing in form fields. Each interaction sends a message to the service worker, which captures the visible tab. A minimum interval between captures stops a double-click turning into two steps. Navigations the person starts, such as typing a URL or using a bookmark, become steps too; navigations a click causes don't, so you don't get a duplicate.
Exact click positions, even inside iframes
Each click is stored as a percentage of the viewport, scaled by the device pixel ratio including browser zoom, so the red highlight lands in the same place on any screen. Web apps often nest content in iframes, sometimes from another origin. For same-origin frames the script walks up the frame tree to add the offsets. For cross-origin frames it asks the service worker, which asks each parent frame in turn to locate the child, nested as deep as it goes.
Screenshots you can crop and annotate
Right-click "Capture Screenshot" opens a crop overlay drawn with Fabric.js, and "Send Selected Text to Knowby" turns highlighted text into a step. When a guide is saved, the extension draws the click indicator as a transparent overlay, sized against a fixed reference width so it looks the same at any resolution. The crop and annotation are saved as editor state, not burned into the pixels. Authors can still adjust them later in the Knowby editor.
Steps that survive a crash
Screenshots are large, and browser storage quotas are small. Steps are kept in IndexedDB as binary blobs rather than base64 strings, and the session (title, description, cover image, capture state) is saved alongside them. Capture state survives tab switches and browser restarts, and abandoned sessions are cleaned up after a week. The side panel watches storage for changes, so new steps appear in real time with no polling.
PDFs and playback
Open a PDF and the extension switches to PDF mode: automatic capture pauses and you add steps by right-click capture, or upload a PDF from the side panel. Every captured click also stores an element fingerprint, with an XPath, a CSS selector, key attributes, visible text and its position among its siblings. During playback, the extension finds that element again with eight fallback strategies in order of reliability, from the exact XPath to matching by test ID, ARIA label, form name, text, and finally structure. That makes guided walk-throughs possible even after the page has changed a little.
Architecture
Three MV3 parts, talking only by message and storage.
- Content scriptDetects clicks, typing and frame offsets on the page
- Service workerCaptures the tab, builds steps, handles menus and navigation
- IndexedDB and chrome.storageSteps as blobs; state shared across the extension
- Side panelReact app to edit, reorder and preview steps
- Knowby Pro APIUploads media, creates the guide and opens the editor
The service worker keeps no state in memory, so Chrome can stop it at any time without losing a step.
Results
- 8fallback strategies to find a captured element again during playback
- 14interface languages, with translations generated from one English source
- 1data model shared with Knowby's web and mobile apps
Under the hood
A modern MV3 stack, sharing types with the rest of the platform.
- Chrome Manifest V3
- Service workers
- Content scripts
- Side Panel API
- React 19
- TypeScript
- Vite
- Tailwind CSS 4
- shadcn/ui
- Fabric.js
- IndexedDB (idb)
- Firebase Auth
- i18next
What we'd do now
Assume the worker will die. Manifest V3 service workers stop whenever Chrome likes. Teams porting MV2 extensions lose data because they kept state in memory. Our rule: every piece of state that matters is in storage before you act on it, and every message handler can run cold.
Store intent, not pixels. Saving the crop and the click as editable editor state, not as a flattened image, means the author can fix things later and the guide looks right on a phone and on a 4K monitor. It's a small decision that decides whether a capture tool feels like a draft or a dead end.
Plan for the DOM to change. Any tool that replays steps on someone else's web app will meet a redesign. One selector is brittle. Layered fingerprints, tried from most to least exact, degrade gracefully. If we were starting again we'd add stable-selector hints for app owners and a confidence score shown to the user, and we'd keep sensitive inputs such as passwords out of captures by default, with an allow-list for fields that are safe to record.
Why it matters now
Browser extensions are a fast way to put your product inside the tools people already use: capture, automation, assistance or compliance checks, right on the page. We build them as part of a web and SaaS platform, sharing its model and APIs, and we connect them to other systems through integration work.
The extension is one of several ways into Knowby: self-hosted AI that turns a narrated video into a guide is another, and finished guides can go out as a PDF.
Questions
What does the Knowby browser extension do?
It records clicks and typing as you work in any web app, captures a cropped and annotated screenshot for each step, and turns the result into a Knowby guide you can edit. It can also add steps from PDFs.
Is it built on Manifest V3?
Yes. It's a Chrome Manifest V3 extension with a content script, a background service worker and a React side panel, written in TypeScript.
How does it handle iframes and high-density screens?
Click positions are stored as viewport percentages scaled by the device pixel ratio. For iframes, it adds each frame's offset, asking parent frames through the service worker when the frame is cross-origin.
Can you build a browser extension for our product?
Yes. We build MV3 extensions that share your platform's data model and APIs, with sign-in through your web app and storage designed for MV3's short-lived service workers.
Related
The services behind this work, and more stories like it.
Services
Case studies
KnowbyFilm the task once. Get the guide in minutes. Offline-first apps, self-hosted AI that turns a narrated video into a guide, and an MCP server for AI assistants.
KnowbyFrom a guide on a phone to a PDF on file. A .NET and QuestPDF job that turns guides and completed forms into print-ready, branded PDFs.
KnowbyReady for the enterprise security review. SSO, SCIM 2.0 provisioning, an OAuth 2.1 server with hashed tokens, and SOC 2 Type II experience.
Bring us the hard problem.
A 45-minute discovery call with the engineer who'll build it.