Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:AIPexStudio AIPex Chrome Extension

From Leeroopedia
Knowledge Sources
Domains Browser_Extension, Automation, Chrome_MV3
Last Updated 2026-10-24 12:00 GMT

Overview

Chrome MV3 extension environment with Manifest V3, `debugger` permission for CDP automation, and `wasm-unsafe-eval` CSP for QuickJS sandboxed code execution.

Description

This environment defines the Chrome browser extension runtime for the AIPex `browser-ext` package. It uses Manifest V3 with a service worker background script, content scripts injected on all URLs, and a side panel UI. The `@aipexstudio/browser-runtime` package implements the browser-specific automation layer, context providers, skill VM, intervention system, and WebSocket MCP server. The extension requires broad host permissions (`<all_urls>`) and the `debugger` permission for Chrome DevTools Protocol (CDP) based focus-mode automation.

Usage

Use this environment for any Browser Automation, Tool Execution, Snapshot Capture, Skill Execution, Intervention, or MCP Server workflow that runs inside the Chrome extension. It is the mandatory prerequisite for running browser tools (`allBrowserTools`), snapshot providers, the skill VM manager, the intervention manager, and the WebSocket MCP server.

System Requirements

Category Requirement Notes
OS Any (Chrome supports all platforms) Desktop Chrome required
Browser Google Chrome (MV3 compatible) Chromium-based browsers with MV3 support
Hardware Any modern system Microphone required for voice intervention; sufficient RAM for QuickJS VM

Dependencies

Chrome Extension Permissions

  • `tabs`, `activeTab`, `tabGroups`, `windows`
  • `bookmarks`, `history`, `browsingData`
  • `scripting`, `contextMenus`, `sessions`
  • `storage`, `sidePanel`, `management`
  • `downloads`, `debugger`, `cookies`
  • `webNavigation`, `audioCapture`, `alarms`

Host Permissions

Content Security Policy

  • Extension pages: `script-src 'self' 'wasm-unsafe-eval'; object-src 'self'`
  • The `wasm-unsafe-eval` directive is required for QuickJS WASM execution

NPM Packages

  • `@aipexstudio/aipex-core` (workspace)
  • `@aipexstudio/aipex-react` (workspace)
  • `@aipexstudio/browser-runtime` (workspace)
  • `@aipexstudio/dom-snapshot` (workspace)
  • `@jitl/quickjs-ng-wasmfile-release-sync` >= 0.31.0
  • `@zenfs/core` >= 2.4.2, `@zenfs/dom` >= 1.2.7
  • `quickjs-emscripten` >= 0.32.0
  • `@ricky0123/vad-web` >= 0.0.27
  • `onnxruntime-web` >= 1.22.0
  • `@modelcontextprotocol/sdk` >= 1.26.0

Credentials

No environment variables required at runtime. API keys for LLM providers are configured through the extension's settings UI and stored in `chrome.storage`.

Quick Install

# Build the extension
cd packages/browser-ext && npm run build

# Load in Chrome:
# 1. Open chrome://extensions
# 2. Enable "Developer mode"
# 3. Click "Load unpacked"
# 4. Select the build/ directory

Code Evidence

Manifest V3 configuration from `packages/browser-ext/manifest.json:1-5`:

{
  "manifest_version": 3,
  "name": "AIPex",
  "version": "2.2.39",
  "description": "Make your browser an AI browser ..."
}

CSP with `wasm-unsafe-eval` for QuickJS from `packages/browser-ext/manifest.json:38-40`:

"content_security_policy": {
  "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'"
}

Debugger permission for CDP automation from `packages/browser-ext/manifest.json:65-87`:

"permissions": [
  "tabs", "windows", "tabGroups", "activeTab", "bookmarks",
  "browsingData", "history", "scripting", "commands", "storage",
  "contextMenus", "sessions", "sidePanel", "management",
  "downloads", "debugger", "cookies", "webNavigation",
  "audioCapture", "alarms"
]

QuickJS sync variant requirement (Chrome CSP restriction) from `packages/browser-runtime/src/lib/vm/quickjs-manager.ts:1-8`:

/**
 * Note: Using RELEASE_SYNC variant instead of ASYNC to avoid CSP issues in Chrome extensions.
 * Chrome extensions don't allow 'wasm-eval' which is required by asyncify variants.
 */
import { default as RELEASE_SYNC } from "@jitl/quickjs-ng-wasmfile-release-sync";

Common Errors

Error Message Cause Solution
`chrome.tabs API unavailable in this context` Running outside Chrome extension context Ensure code runs within the extension service worker or content script
`Failed to create DOM snapshot in background mode` Content script not loaded on target tab Ensure content script is injected; switch to focus mode
`WASM URL is not defined` Vite did not bundle the QuickJS wasm file Check Vite config and `?url` import for wasm assets
`Module not found: <name>. Module must be preloaded` QuickJS module not in cache Preload ESM dependencies before skill execution

Compatibility Notes

  • Firefox: Not officially supported; manifest uses MV3 with Chrome-specific APIs (`sidePanel`, `debugger`).
  • Chrome MV2: Not supported; extension requires Manifest V3.
  • QuickJS Variant: Must use `RELEASE_SYNC` variant, not asyncify — Chrome CSP blocks `wasm-eval` which asyncify variants require.
  • Content Script Injection: Content scripts run at `document_start` on all frames including `about:blank`.
  • Externally Connectable: Limited to `aipex.ing`, `claudechrome.com`, and `localhost` for external messaging.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment