WebLLMを使用してAI駆動のWeb自動化を完全にデバイス上で実行するChrome拡張機能です。クラウドAPIなし、APIキーなし、完全にプライベートです。
https://github.com/user-attachments/assets/898cc5c2-db77-4067-96e6-233c5da2bae5
リポジトリのクローンと依存関係のインストール:
cd local-browser
npm install
拡張機能のビルド:
npm run build
Chromeに読み込む:
chrome://extensions を開くdist フォルダを選択初回実行:
npm run dev
変更を監視して自動的に再ビルドします。
local-browser/
├── manifest.json # Chrome extension manifest (MV3)
├── src/
│ ├── background/ # Service worker
│ │ ├── index.ts # Entry point & message handling
│ │ ├── llm-engine.ts # WebLLM wrapper
│ │ └── agents/ # AI agent system
│ │ ├── base-agent.ts
│ │ ├── planner-agent.ts
│ │ ├── navigator-agent.ts
│ │ └── executor.ts
│ ├── content/ # Content scripts
│ │ ├── dom-observer.ts # Page state extraction
│ │ └── action-executor.ts
│ ├── popup/ # React popup UI
│ │ ├── App.tsx
│ │ └── components/
│ └── shared/ # Shared types & constants
└── dist/ # Build output
この拡張機能はNanobrowserに触発された2エージェントアーキテクチャを使用しています:
両エージェントは構造化されたJSONを出力し、それが解析されて実行されます。
デフォルトモデル: Qwen2.5-1.5B-Instruct-q4f16_1-MLC (~1GB)
代替モデル (src/shared/constants.ts で設定):
Phi-3.5-mini-instruct-q4f16_1-MLC (~2GB、より優れた推論能力)Llama-3.2-1B-Instruct-q4f16_1-MLC (~0.7GB、より軽量)chrome://gpu でWebGPUのステータスを確認するchrome://extensions に移動するこのプロジェクトは以下に触発されています:
| パッケージ | ライセンス |
|---|---|
| @mlc-ai/web-llm | Apache-2.0 |
| React | MIT |
| Vite | MIT |
| @crxjs/vite-plugin | MIT |
| TypeScript |
MITライセンス - 詳細はLICENSEファイルを参照してください。
| Apache-2.0 |