Chrome extension/Developer tools/Working
Dev Kit - tools a dev daily uses
A resizable developer sidebar that works on any page: storage and cookie editors, a network monitor, a request builder and a dozen everyday utilities.
§ 01
What it is
A toolbox that opens as a sidebar on the page you are working on. It shows that page's storage and cookies and lets you edit them, watches its network requests, and bundles everyday utilities - JSON, JWT, regex, Base64, hashes, timestamps, UUIDs, colours and QR codes - with a command palette to jump between them.
The problem
Small debugging jobs - changing a cookie, clearing a localStorage key, decoding a token, replaying a request - are spread across DevTools panels and one-off websites, and pasting tokens into random sites is a risk.
Runtime
- SidebarExtension page in an iframe
- Content scriptpostMessage bridge
- Service workercookies · fetch
- PagePatched fetch / XHR
§ 02
Screenshots


Real screenshots of the extension's own interface; some show sample content.
§ 03
How it works
- 01
Press Cmd/Ctrl+Shift+K or click the toolbar icon. The sidebar slides in from the right; drag its edge to resize it between 340 and 760 px.
- 02
The dashboard summarises the current page: protocol, page size, cookie and storage counts, viewport, timezone and load time.
- 03
Pick a tool from the rail or the command palette (Cmd/Ctrl+K). Storage and cookie changes apply to the page straight away.
- 04
Presets, snippets, notes and environment variables are saved in the extension. Storage, cookies, variables and settings can be exported as JSON.
§ 04
Architecture
- 01
Sidebar iframe
The UI is an extension page loaded into a fixed iframe, so it runs with extension privileges and none of the page's styles or scripts leak in.
- 02
Content script bridge
Reads page context (URL, storage, viewport, timing), writes localStorage and sessionStorage, and relays the sidebar's requests to the service worker over postMessage with request IDs.
- 03
Service worker
Handles what a page cannot: reading and writing cookies through chrome.cookies, and sending Request Builder calls with fetch so they are not blocked by the page's CORS rules. It returns status, headers, body and duration.
- 04
Main-world monitor
A script injected into the page's own JavaScript world wraps fetch and XMLHttpRequest and reports each request's method, URL, status, size and duration to the Network Monitor.
§ 05
Key features
- Edit localStorage, sessionStorage and cookies for the current page; save and apply storage presets.
- Network Monitor for the page's fetch and XHR calls.
- Request Builder with response status, headers, body and timing; header presets.
- JSON, JWT, regex, URL, Base64, hash, timestamp, UUID, colour and QR tools.
- Snippets, notes and environment variables (values can be masked).
- Command palette, light and dark themes, accent colour, collapsible navigation.
§ 06
Technical implementation
A QR encoder written from scratch
The QR tool builds the code itself: byte-mode encoding, Reed-Solomon error correction over GF(256), finder and timing patterns, drawn to a canvas. It covers QR versions 1 and 2 and rejects input that will not fit.
Hashes with Web Crypto
Digests come from crypto.subtle, so nothing is sent anywhere and no hashing library is bundled.
Two JavaScript worlds
Content scripts cannot see the page's own fetch, so the monitor runs with world: "MAIN" and hands results back to the isolated content script through a DOM event.
§ 07
Permissions & browser APIs
- cookies
- Lists, creates, edits and deletes cookies for the current site.
- <all_urls>
- Opens on any page and lets the Request Builder call any URL.
- scripting + activeTab + tabs
- Injects the sidebar into a tab that was open before install and finds the active tab for the shortcut.
- clipboardWrite
- Copy buttons throughout the tools.
- storage
- Saves presets, snippets, notes, variables and appearance settings.
§ 08
Hard parts & limits
- The network monitor only sees requests made through fetch or XMLHttpRequest after it loads; other resource loads are out of its reach.
- Messages cross three contexts - sidebar, content script and worker - so every request carries an ID and the answer is routed back to the call that asked.