This project bundles D3 and the graph visualization with webpack so the extension can use the graph without runtime remote imports.
Quick start
- Install dependencies
npm install- Build the bundle
npm run buildThis will produce pages/graph.bundle.js at the project root (webpack configured to output into pages/graph.bundle.js).
- Load the extension in Chrome
- Open
chrome://extensions - Enable Developer mode
- Load unpacked and select the project folder
Development
- Use
npm run build:devfor a development build - Or
npm run watchto continuously rebuild when files change
Notes
- The AI service files are intentionally untouched. Ensure you run this extension in a Chrome build with the AI origin trial enabled if you want to use built-in Gemini APIs.
- If
pages/graph.bundle.jsis not yet built, the sidepanel falls back to loadingpages/graph.jsdirectly (for local development).