devforge

DevForge

A local-first web development workbench that lives in Chrome’s side panel. DevForge sits next to the page you are working on and gives you an inspector, a network layer you can intercept and rewrite, Core Web Vitals profiling, a DOM mutation timeline, storage editing and design-token extraction. Everything runs in your browser. There are no accounts, servers or analytics.

Why DevForge

Chrome DevTools is the reference, and DevForge does not try to replace it. It covers the work that DevTools makes slow: mocking an API response without a proxy, seeing which element caused your LCP, exporting a component with its computed styles, or turning a site’s colours into design tokens. DevForge is a Manifest V3 extension. It asks for access to all sites so it works on any page without a prompt, Settings can limit it to sites you list, and it only injects code into a page when you use a tool on that page.

Install

Install DevForge from the Chrome Web Store and click Add to Chrome. Pin it, then open it with the toolbar icon or Ctrl+Shift+Y (Cmd+Shift+Y on macOS). Press Ctrl+Shift+U to pick an element.

You can also install it from source or from a release ZIP:

  1. Download the latest release ZIP from the Releases page (or clone this repository) and unzip it.
  2. Open chrome://extensions and turn on Developer mode.
  3. Click Load unpacked and select the unzipped folder (the one that contains manifest.json).
  4. Pin DevForge and open it with the toolbar icon or Ctrl+Shift+Y (Cmd+Shift+Y on macOS). Press Ctrl+Shift+U to pick an element.

Chrome 116 or newer is required. Release notes are in CHANGELOG.md.

Panels

The panels are grouped the way you would move through a debugging session.

Start

Panel What it does
Home Shows whether DevForge can work on the current page, status cards (site access, Owner session, this site’s security trend, this page’s performance, stored data), one-click entry points for the common jobs and your recent Workspace items. New installs open here.
Guide A manual inside the panel, written in plain English. It has the first five minutes, one card for every panel (what it does, three steps, what it cannot do), common problems, what stays on your computer, shortcuts and a glossary.

Inspect and style

Panel What it does
Inspect Element picker, DOM tree, selectors, box model and accessibility info. Includes a component inspector for React, Vue 2/3, Svelte and Angular (dev mode), quick edits with undo/redo, and a layout X-ray.
CSS Matched rules, computed styles and live edits that are checked before they are applied. Emulates :hover/:focus without the debugger permission.
Tokens Pulls colours, type scale, spacing, radii and shadows from computed styles. Exports CSS variables, SCSS, W3C design-token JSON or a Tailwind theme.

Network

Panel What it does
Network Live capture of fetch, XHR, WebSocket, EventSource and sendBeacon. Filters work like DevTools (status:4xx, method:post, domain:, larger-than:, is:mocked, -exclude) plus header:server[=value] and security signals: is:insecure (http/ws from an HTTPS page), is:sensitive (token-like value or credentials in the address) and is:open-cors. Flagged rows carry a “security” tag, and the Security tab includes captured requests in its assessment. Also: sortable columns, a waterfall, timing phases (DNS / TCP / TLS / TTFB / download), Server-Timing, GraphQL operation names, edit and replay, copy as cURL / fetch / PowerShell, and HAR 1.2 export. The OpenAPI + types button writes guessed schemas (OpenAPI 3.0.3 and TypeScript) for the JSON the page received. See docs/EXPORTS.md.
Interception rules Add latency, set request headers, block, mock a response or redirect. Rules are checked in order for each request and are saved between sessions. You can turn on capture from page start for each site.

Performance

Panel What it does
Perf LCP, CLS, INP, FCP and TTFB, each linked to the element that caused it. Slow interactions are split into input delay, processing and presentation. Also shows navigation timing, Long Animation Frame script attribution and a frame-rate profiler.
Mutations A timeline of DOM changes with old and new values. Shows the most-changed elements and the change rate, detects writes that change nothing, can flash changes on the page, and exports to JSON.
Audit Accessibility, performance, script and responsive checks, run only when you ask. Its old security button now opens the Security tab.
Security A layered website security assessment for sites you own, have permission to test, or run locally: passive reading, low-impact checks, and an opt-in advanced level. Findings have a severity, a confidence level and a status (Confirmed, Potential, Needs manual verification), with evidence, impact, safe verification steps and fixes. Includes potential attack paths, a remediation plan, scan coverage and Markdown/JSON reports. See Security checker. The Export section downloads the findings as a SARIF 2.1.0 file (no details or evidence, and no query strings), and the coverage view groups them by OWASP ASVS 4.0.3 chapter (chapter level only).

Application

Panel What it does
Storage View, edit, add and delete localStorage, sessionStorage and cookies that scripts can read. Browses IndexedDB stores (edit and delete records, export a store as JSON), browses Cache Storage (delete entries, export a cache as a ZIP) and unregisters service workers. Every delete asks first. Shows quota usage.
Data Pulls links, images, tables, forms and headings from the page into CSV, JSON, Markdown or HTML.

Build and ship

Panel What it does
Export Exports the selected part of a page as a ZIP with its HTML (outer, inner, in context, shadow DOM, standalone), CSS (rules, computed, matched, inherited), the JavaScript that refers to it, selectors, structure, generated content, images and fonts, a preview picture, the part at three window widths (optional, resizes the window for a moment), a list of the media queries that apply to it, and a README that describes the part; or one file at a time. The Export tab also compares two exports (ZIPs from Export or Site) and lists what was added, removed or changed. It can also write the part as a React component, a Vue single-file component, a Web Component or a small React project that runs with Vite (generated from computed styles, not the original source). Selecting the whole page exports the page. Also: page bundles (scripts, styles, source maps, storage, network, HAR), a developer report, screenshots (element, viewport or stitched full page) and a pixel diff. Before anything is saved, DevForge checks the files for credential-like values and lets you mask them, keep them with a warning or leave those files out. See docs/EXPORTS.md. The full ZIP can be sealed with a passphrase (.zip.devforge-enc, PBKDF2 and AES-GCM). To open it, download this repository’s source code (on the Releases page, “Source code (zip)”), unzip it and open tools/decrypt.html in a browser. It works offline. It can also keep scripts, styles and images that load after the page (start watching first), listed in data/loaded-later.json.
Site Detects the site’s technology and downloads the files the page uses as an organised ZIP (rendered and original HTML, scripts, styles, fonts, images, manifest and service worker, structured data, a report and a README). Recovers original sources where the site publishes source maps. Never fetches private or loopback addresses. The Site tab also analyses a downloaded site ZIP: which original files make up each script, with their estimated sizes, and which packages appear in more than one folder.
Recreate Rebuilds an element from its computed styles, then refines the copy until its layout matches the original.
Playground An HTML/CSS/JS scratchpad that runs in a sandboxed page with no access to extension APIs.
Automate Records and replays step-by-step workflows, stored as JSON.
AI Builds a prompt from the selected element or task. You use it in the AI chat you already use. No API keys are needed, and DevForge sends nothing. Copy only stays on your computer. Copy & open also opens the AI site’s start page; the site gets the prompt only when you paste it there and send it. The prompt is checked for credential-like values before it is copied.
Workspace Projects that collect what you save from other panels (elements, components, screenshots, data, workflows, playgrounds, AI tasks), stored in IndexedDB.

A command palette (Ctrl+K), in-panel shortcuts you can rebind, light, dark and system themes, and a Comfortable or Compact density are available in every panel. Every tab has an icon. Below about 640 px only the selected tab shows its name, so more panels fit before the rest move into the overflow menu.

When the side panel is too narrow for every tab, the remaining panels move into an overflow menu. Its button shows how many panels are hidden, and the menu lists them under the same groups as above, each with its shortcut if you have bound one in Settings. The menu works from the keyboard: arrow keys, Home/End, or a panel’s first letter to move; Enter to open; Esc to close and return focus to the button.

Security checker

The Security tab is for defensive review of sites you own, sites you have permission to test, and local or training environments. It reports what it could observe, how sure it is, and what it could not check. It does not attack anything.

Scan levels

Level What it does Request budget
Passive Reads the open page (forms, scripts, frames, links, cookies and storage key names, mixed content) and its response headers, plus security.txt. Includes requests captured in the Network tab. 3
Standard Adds low-impact checks: how the site answers a path that cannot exist, robots.txt, a short list of well-known sensitive files and admin paths, the page’s own scripts (scanned for credential-like values, library versions and source maps). 60, 250 ms apart
Advanced A longer path list (backups, configuration and debug files, directory listings) and more scripts. Needs a second, explicit confirmation on public sites. 150, 150 ms apart

Local and private addresses (localhost, 192.168.x.x, *.test, …) can be scanned directly. Any other site needs a confirmation that you own it or have permission; the confirmation lasts for the browser session. You can lower the request limit and raise the pause, but never exceed 200 requests or go below 100 ms.

What is enforced in code (agent/security.js, not just in the interface)

What it checks

How findings are reported

Limits that come from the browser: Set-Cookie headers and HttpOnly cookies are hidden from extensions, TLS details are not available, and server-side flaws need controlled testing that DevForge does not do. Library versions come from file names and can be wrong.

Owner mode

An optional Owner tab (under Security) lets you protect the detailed technical record of a scan with a passphrase you choose: scan configuration, timings, response header values, probe results, the request log and extension state are encrypted (AES-GCM, PBKDF2-SHA256) in this browser and can be opened or exported (redacted by default) only after unlocking. Unlocked, it can also encrypt your Workspace items, remember sites you have authorised (so the per-site ownership tick is pre-filled until it locks), and lets you pick the idle-lock time. It never raises a scan limit, never widens a scan beyond the tab’s site, never skips the Advanced confirmation, and does not prove your identity to anyone. Read docs/OWNER-MODE.md for the trust boundary before relying on it.

Architecture

background.js        Service worker. Opens the panel and passes keyboard and context-menu
                     commands to it. No other work happens here.
sidepanel.html       The workbench UI. Classic scripts that share one scope, in load order:
  lib/               Pure helpers (HAR, ZIP, token maths, redaction, validation, storage, guarded
                     fetching in net.js, and the security checker: secprobe.js detectors and
                     probe catalog, secscan.js analyzers, secreport.js attack paths, plan,
                     coverage and exports).
                     Each also exports itself through module.exports so it can be tested in Node.
  panel/core.js      Shared state, DOM helper, agent injection and messaging.
  panel/icons.js     Icon set used by the tab bar, Home and Security.
  panel/owner.js     Owner mode: passphrase session, sealed technical diagnostics (see
                     docs/OWNER-MODE.md; lib/owner.js holds the crypto).
  panel/*.js         One file per panel, registered with registerTab(). The Security tab is
                     split into securityrun.js (scan runner) and security.js (interface).
  panel/boot.js      Tab bar, command palette, theming and startup. Loaded last.
agent.js, agent/*    The page agent (agent/security.js reads the page for the Security panel and
                     owns the scoped request gate). Injected on demand into the page's isolated
                     world, never at page load. It is versioned (AGENT_VERSION) so an outdated copy left in a tab
                     is replaced. Values it could not observe directly are tagged:
                     observed | extracted | inferred | generated | unavailable.
netbridge.js         Isolated-world half of the capture handshake (holds the entry secret).
netcap.js            Network capture and interception. Runs in the page's MAIN world so it can
                     wrap fetch / XHR / WebSocket / EventSource / sendBeacon. Can be registered
                     at document_start for each site.
sandbox.html/.js     Runs Playground code on an opaque origin with its own strict CSP.

Where data is stored: settings and interception rules go in chrome.storage.local, a command waiting for the panel to start and the Security tab’s per-site confirmations go in chrome.storage.session (cleared when the browser closes), and Workspace projects, including saved security reports, go in IndexedDB. None of it leaves the browser. Everything is checked when it is read back (lib/stored.js): a damaged value is replaced by its default or left out, and Settings lists what was ignored. Workspace data is not encrypted, so treat saved security reports (which describe a site’s weaknesses) like any other sensitive file.

Network capture isolation: the capture log lives in a closure inside the page’s own JavaScript world (the only place fetch and XHR can be wrapped), but it is not exposed as a global. A random, non-enumerable entry function guarded by a 256-bit secret is handed to the isolated-world netbridge.js and then to the panel at page start, so page scripts cannot read the log or change its rules. Code that runs in the page before DevForge can still tamper with built-ins; see docs/SECURITY-MODEL.md.

Permissions

Permission Why it is needed
scripting Puts DevForge’s page agent and network recorder into the page you work on, only when a tool needs them.
sidePanel Shows DevForge in the browser’s side panel.
storage Keeps your settings, interception rules, performance history and scan records on this computer.
contextMenus Adds “Inspect with DevForge” to the right-click menu.
clipboardWrite Copies code, selectors and prompts when you click a Copy button. Chrome lists it as “Modify data you copy and paste”; DevForge only writes to the clipboard and never reads it.
declarativeNetRequest Blocks DevForge’s own downloads from reaching private, loopback or link-local addresses, at every redirect step. It only blocks. It cannot read or change pages. Chrome lists it as “Block content on any page”; DevForge’s rule blocks only its own requests.
Site access (all sites) Lets DevForge work on the page in front without asking for each site. Settings → Site access can limit DevForge to sites you list. Chrome’s own Site access setting for the extension still applies.
cookies (optional) Asked for only from the Security tab, for one site, to read whether cookies are HttpOnly, Secure and SameSite. Cookie values are never read into reports.

debugger is not requested. No permission was added in 4.4.0 or 4.5.0; 4.5.0 removes activeTab (see the CHANGELOG).

The code holds one web address that DevForge never loads: cdn.tailwindcss.com in lib/gen.js. It is written into the index.html of a Tailwind export, so that exported page can load Tailwind.

Development

The extension has no build step and no runtime dependencies: the files in the repository are exactly what Chrome loads. Node 18 or newer runs the checks and unit tests.

npm run verify       # syntax, manifest and file-reference checks, then the unit tests (no install needed)
npm run lint         # ESLint (needs `npm ci`; Node 20.19+ or 22.13+)
npm run verify:all   # lint, then verify
npm run e2e          # drives the real extension in Chromium against local training sites
npm run e2e:features # panel features: security trend, compare, bundles, prototype, Owner mode
npm run e2e:exports  # element, page and site exports against a local demo site
npm run a11y         # axe-core over every panel, both themes, 1280 px and 360 px

The browser suites need Playwright and a Chromium build (set PLAYWRIGHT_MODULE and CHROME_PATH if they are not found). They start local servers (e2e/fixtures.js: a deliberately weak site, a clean single-page app that answers every path with 200, a “private” target that redirects must never reach, and a demo page for exports), load a scratch copy of the extension with host access granted, and check behaviour on the wire. node e2e/run.js --shots <dir> also saves screenshots.

Unit tests are in test/ and cover the pure modules in lib/. See CONTRIBUTING.md for conventions and docs/ for the security model, Owner mode, exports, accessibility and browser support.

npm run package makes the release files in release-out/: DevForge-<version>-extension.zip (only the files Chrome loads: manifest.json, background.js, sidepanel.html, sidepanel.css, agent.js, netcap.js, netbridge.js, sandbox.html, sandbox.js, agent/, lib/, panel/ and icons/), DevForge-<version>-source.zip, and a .sha256 file for each. Files are stored in sorted order with a fixed timestamp, so two runs give the same checksum. npm run check fails if the version differs between manifest.json, package.json, package-lock.json and the newest CHANGELOG.md heading. Keep the manifest description at 132 characters or fewer.

tools/livecheck/ checks a release ZIP before it goes to the Chrome Web Store: the package, the permissions against their written reasons, and a run through every panel in Chromium with a report. It has its own package.json; see tools/livecheck/README.md.

What DevForge keeps and sends is described in PRIVACY.md.

License

Released under the MIT License.

Bundled third-party code, both MIT-licensed by their own authors: Acorn 8.18.0 (lib/acorn.js) and js-beautify 1.15.3 or 1.15.4 (lib/beautifier.min.js).

Both files are copies of the published npm packages (dist/acorn.js and js/lib/beautifier.min.js), byte for byte, and npm run check fails if either one changes. js-beautify 1.15.3 and 1.15.4 ship the same file, so the exact release cannot be told apart. When this was checked (2026-11-05) the newest releases were Acorn 8.19.0 and js-beautify 2.0.3. DevForge has not moved to them yet. To update one, replace the file with the new release, compare it with the package, then change the SHA-256 in scripts/check.js and the version here.