|
| 1 | +# SilkWeb Agents - Chrome Extension |
| 2 | + |
| 3 | +Access 20 specialized AI agents from any browser tab. Security scans, legal review, financial analysis, and more -- all one click away. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **20 AI Agents** across cybersecurity, legal, finance, healthcare, DevOps, HR, e-commerce, education, and more |
| 8 | +- **Popup Interface** with search, agent list, expandable actions, input forms, and inline JSON results |
| 9 | +- **Floating Button** on every page with a quick-access agent picker overlay |
| 10 | +- **Right-Click Context Menus**: Scan pages with AEGIS, analyze selected text with JUSTICE, investigate domains with PHANTOM |
| 11 | +- **Smart Auto-Fill**: Current page URL and selected text are automatically injected into relevant agent actions |
| 12 | +- **Result Caching**: Recent API results are cached locally for 5 minutes |
| 13 | +- **Dark Theme**: Matches the SilkWeb brand (purple #6366f1, green #10B981, dark background #06060b) |
| 14 | +- **Settings**: Configurable API base URL, API key, and floating button visibility |
| 15 | + |
| 16 | +## Installation (Developer Mode) |
| 17 | + |
| 18 | +1. Clone or download this directory |
| 19 | +2. Generate icon PNGs (see Icons section below) |
| 20 | +3. Open Chrome and go to `chrome://extensions/` |
| 21 | +4. Enable **Developer mode** (toggle in the top-right corner) |
| 22 | +5. Click **Load unpacked** |
| 23 | +6. Select the `chrome-extension/` directory |
| 24 | +7. The SilkWeb Agents icon will appear in your toolbar |
| 25 | + |
| 26 | +## Generating Icons |
| 27 | + |
| 28 | +Before loading the extension, generate the icon PNG files: |
| 29 | + |
| 30 | +**Option A -- Node.js (no dependencies):** |
| 31 | +```bash |
| 32 | +cd icons/ |
| 33 | +node create-icons-node.js |
| 34 | +``` |
| 35 | + |
| 36 | +**Option B -- Browser:** |
| 37 | +1. Open `icons/generate-icons.html` in Chrome |
| 38 | +2. Click "Generate & Download Icons" |
| 39 | +3. Move the downloaded files into the `icons/` directory |
| 40 | + |
| 41 | +## Usage |
| 42 | + |
| 43 | +### Popup |
| 44 | +Click the SilkWeb icon in the Chrome toolbar to open the popup. Search for agents, expand them to see available actions, click an action to open the input form, and hit Run. |
| 45 | + |
| 46 | +### Floating Button |
| 47 | +A small spider web button appears in the bottom-right corner of every page. Click it to open a compact agent picker. Actions auto-fill with the current page URL or selected text where applicable. |
| 48 | + |
| 49 | +### Context Menus |
| 50 | +Right-click on any page to access: |
| 51 | +- **Scan this page with AEGIS** -- runs a URL security scan |
| 52 | +- **Analyze selected text with JUSTICE** -- analyzes selected text as a contract |
| 53 | +- **Check domain with PHANTOM** -- investigates the current domain |
| 54 | + |
| 55 | +### Settings |
| 56 | +Click the gear icon in the popup to configure: |
| 57 | +- **API Base URL** -- defaults to `https://api.silkweb.io` |
| 58 | +- **API Key** -- your SilkWeb API key for authenticated requests |
| 59 | +- **Show floating button** -- toggle the in-page floating button |
| 60 | + |
| 61 | +## Publishing to Chrome Web Store |
| 62 | + |
| 63 | +1. Generate production icons (see above) |
| 64 | +2. Create a ZIP of the `chrome-extension/` directory (exclude `icons/generate-*` helper files) |
| 65 | +3. Go to the [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole) |
| 66 | +4. Click **New Item** and upload the ZIP |
| 67 | +5. Fill in the listing details: |
| 68 | + - **Name**: SilkWeb Agents |
| 69 | + - **Description**: Access 20 specialized AI agents from any browser tab |
| 70 | + - **Category**: Productivity |
| 71 | + - **Screenshots**: Capture the popup, the overlay on a page, and the context menu |
| 72 | +6. Submit for review (typically 1-3 business days) |
| 73 | + |
| 74 | +## Agent Roster |
| 75 | + |
| 76 | +| Agent | Domain | Tier | Key Actions | |
| 77 | +|-------|--------|------|-------------| |
| 78 | +| AEGIS | Cybersecurity | Expert | URL Scan, SSL Audit, Domain Check, Full Report | |
| 79 | +| NAVIGATOR | Logistics | Authority | Route Calculator, Customs Check, Carbon Footprint | |
| 80 | +| SENTINEL | IT Monitoring | Expert | Health Check, DNS Check, SSL Expiry | |
| 81 | +| ORACLE | Finance | Authority | Fraud Detection, Compliance Check | |
| 82 | +| ATLAS | Geospatial | Authority | Distance Calculator, Sunrise/Sunset | |
| 83 | +| JUSTICE | Contract Law | Expert | Contract Review, NDA Review | |
| 84 | +| SHIELD | Personal Injury | Expert | Case Evaluation, Damages Calculator | |
| 85 | +| FORTRESS | Criminal Defense | Expert | Charge Analysis, Know Your Rights | |
| 86 | +| DESIGN | Graphics | Expert | Social Card Generator | |
| 87 | +| MEDIC | Healthcare | Expert | Symptom Check, Drug Interactions | |
| 88 | +| ARCHITECT | Code & DevOps | Expert | Code Review, Tech Debt Score | |
| 89 | +| BROKER | Real Estate | Authority | Property Analysis, ROI Calculator | |
| 90 | +| SCRIBE | Content & Copy | Expert | Blog Outline, Social Posts | |
| 91 | +| PHANTOM | OSINT | Expert | Domain Investigation, Email Investigation | |
| 92 | +| DIPLOMAT | HR & Compliance | Expert | Salary Benchmark, Job Post Analysis | |
| 93 | +| MERCHANT | E-Commerce | Expert | Listing Optimizer, Pricing Analysis | |
| 94 | +| TUTOR | Education | Expert | Quiz Generator, Flashcards | |
| 95 | +| CLIMATE | Sustainability | Expert | Carbon Calculator, ESG Score | |
| 96 | +| SIGNAL | PR & Comms | Expert | Press Release, Crisis Response | |
| 97 | +| FORGE | Manufacturing | Authority | Supplier Score, Quality Analysis | |
| 98 | + |
| 99 | +## File Structure |
| 100 | + |
| 101 | +``` |
| 102 | +chrome-extension/ |
| 103 | + manifest.json # Extension manifest (Manifest V3) |
| 104 | + popup/ |
| 105 | + popup.html # Popup UI |
| 106 | + popup.css # Popup styles |
| 107 | + popup.js # Popup logic + agent data |
| 108 | + background/ |
| 109 | + service-worker.js # Context menus, API calls, caching |
| 110 | + content/ |
| 111 | + content.js # Floating button + overlay |
| 112 | + content.css # Content script styles |
| 113 | + icons/ |
| 114 | + icon16.png # 16x16 toolbar icon |
| 115 | + icon48.png # 48x48 extension page icon |
| 116 | + icon128.png # 128x128 store icon |
| 117 | + generate-icons.html # Browser-based icon generator |
| 118 | + create-icons-node.js # Node.js icon generator |
| 119 | +``` |
| 120 | + |
| 121 | +## License |
| 122 | + |
| 123 | +Part of the SilkWeb platform. All rights reserved. |
0 commit comments