An AI-assisted Chrome Extension that analyzes live e‑commerce product pages (Amazon, Shopify, WooCommerce & generic storefronts) and generates:
- Attribute gap insights (what’s missing vs expected)
- Long‑tail & variant keyword modifiers
- Rewritten SEO bullets & meta title/description
- Offline heuristic suggestions when AI is unavailable
This repository was originally an AI Keyword Planner; it is being refactored toward a focused Product Listing Optimizer. Some sections below refer to legacy functionality and will be updated as the pivot progresses.
Implemented (Transition + New Pivot Elements):
- Real-time page content scraping (generic)
- Product attribute scraping scaffold (title, price, bullets, specs, variants)
- AI keyword text suggestions (legacy raw → structured parsing WIP)
- Product optimization panel (long-tail, meta, bullets, gaps) with cached persistence
- Hero dashboard with analysis progress meter, skeleton loading states, and toast notifications for key actions
- Per-keyword controls: demand scoring, competitor snapshot, and one-click copy for each keyword row
- Preview meter + BYOK toggle to bring your own provider key without shipping secrets
- Split loading states (keywords vs optimization) for faster perceived response
- Refresh optimization action (re-runs tasks without reloading page keywords)
- Export & copy (text export + JSON copy for optimization result)
- Offline mode flag + heuristic fallbacks (meta, long-tail, bullets, gaps)
- Multi-provider AI fallback + retries + mock data
- Basic optimization history (latest + rolling list persisted)
In Progress (Pivot Features):
- Enhanced attribute normalization (dimensions, material, weight)
- Advanced gap scoring (severity weighting + platform expectations)
- Provider cost-aware caching & task-level telemetry (planned)
- Streaming task updates (task-level progress events)
- Side panel / overlay UI (beyond popup) with progressive rendering
Planned (Roadmap):
- Variant matrix expansion & enrichment heuristics
- Structured data (JSON-LD) suggestions
- Multi-language expansion (ES/DE/FR)
- Image alt text enhancement & compression hints
- Usage limits & plan gating
- Bulk export (CSV / JSON / clipboard bundles, multi-product)
- Historical comparison diffing (optimization snapshots)
- Optional OpenAPI local micro-backend (for secure provider keys)
- React + TypeScript for UI
- Chrome Extension Manifest V3
- Styled Components for styling
- Local storage fallbacks for offline usage
- Clone the repository
git clone https://github.com/theGoodB0rg/Keyword-Planner-Extension.git
cd Keyword-Planner-Extension
- Install dependencies
npm install
- Run in development mode
npm run dev
This will compile the extension and watch for changes.
- Load the extension in Chrome
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right)
- Click "Load unpacked" and select the
distfolder from your project directory
- Testing offline mode
The extension is built with offline capabilities by default. Toggle "Offline Mode" in the popup to test functionality without external API calls.
-
The Market Intelligence panel calls the proxy service in
token-proxy-service. Start it locally with:cd token-proxy-service npm install npm run dev -
During development the bundle falls back to
http://localhost:8787. For packaged builds setMARKET_PROXY_BASEwhen runningnpm run build, for example:MARKET_PROXY_BASE=https://your-proxy.example.com npm run build
-
The proxy includes optional shared-secret protection via
EXT_SHARED_SECRETintoken-proxy-service/.env. If you enable it, provide the same value as anX-EXT-SECRETheader from a secure extension configuration path.
- For development you can rely on the built-in preview allowance (three AI runs) or toggle "Use your AI key" in the sidebar to persist a BYOK token in local storage.
- Optional: set environment variables (e.g.
GEMINI_API_KEY,OPENAI_API_KEY) before runningnpm run devornpm run build. They are consumed at build time and skipped if not defined. - See
PROVIDER_CONFIG.mdfor proxy recommendations and key management guidance.
npm run build
This will create a production-ready build in the dist folder.
The extension includes a complete branding and asset generation pipeline:
# Generate all assets from source SVG
npm run assets
# Build assets individually
npm run optimize:svgs # Optimize SVG files
npm run build:assets # Generate PNG files from SVG- Source:
assets/src/logo.svg- Single source vector file - Output:
assets/dist/**- Generated raster images for all use cases- Extension icons (16px - 256px)
- Toolbar/action icons
- Social media images (Open Graph, etc.)
- Chrome Web Store promotional tiles
- Favicons for documentation
The asset pipeline automatically generates all required PNG files from the source SVG with appropriate sizing, backgrounds, and optimization. The GitHub Actions workflow automatically regenerates assets when the source SVG changes.
See assets/README.md for detailed usage instructions.
See ARCHITECTURE.md for the evolving module map.
Core layers:
- Scraper (platform-aware product data extraction)
- AI Orchestrator (task routing, provider fallback, caching)
- Generators / Heuristics (offline & hybrid logic)
- UI (popup + forthcoming injected side panel / overlay)
- Telemetry (opt-in, privacy-preserving)
- Storage (chrome.storage + local fallback, namespaced keys)
- API retry logic (exponential backoff)
- Multi-provider AI fallback chain
- Offline heuristic generation (long-tail, meta, bullets)
- Local storage + in-memory caching
- Mock data injection (developer mode)
Planned: 6. Token cost estimation + caching dashboard 7. Graceful degradation (progressive UI updates) 8. Task-level streaming progress (per sub-task) 9. Persistent optimization history timeline
See PRIVACY.md for details.
- Only analyzes the active page when invoked
- Stores results locally (chrome.storage.local)
- Offline heuristics avoid network calls
- For online AI usage, configure a secure proxy for provider keys; keys are never shipped in the extension
Roadmap highlights (see ROADMAP.md soon):
- Phase 1: Core pivot (scraper refactor, orchestrator, heuristics)
- Phase 2: Panel UX, export, gating
- Phase 3: Multi-language & structured data
Contributions welcome once interfaces stabilize (target v0.9.x).
ISC (subject to change if commercial licensing introduced for Pro tiers)
For detailed architecture decisions refer to: ARCHITECTURE.md (present) and forthcoming: SECURITY.md, CONFIGURATION.md, PROMPTS.md.