Skip to content

theGoodB0rg/Keyword-Planner-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Product Listing Optimizer (Pivoted from AI Keyword Planner)

Build Status

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.

Current Feature Set (Transition State)

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)

Tech Stack

  • React + TypeScript for UI
  • Chrome Extension Manifest V3
  • Styled Components for styling
  • Local storage fallbacks for offline usage

Development Setup

  1. Clone the repository
git clone https://github.com/theGoodB0rg/Keyword-Planner-Extension.git
cd Keyword-Planner-Extension
  1. Install dependencies
npm install
  1. Run in development mode
npm run dev

This will compile the extension and watch for changes.

  1. 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 dist folder from your project directory
  1. 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.

Market intelligence backend

  • 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 set MARKET_PROXY_BASE when running npm 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_SECRET in token-proxy-service/.env. If you enable it, provide the same value as an X-EXT-SECRET header from a secure extension configuration path.

Provider keys & BYOK

  • 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 running npm run dev or npm run build. They are consumed at build time and skipped if not defined.
  • See PROVIDER_CONFIG.md for proxy recommendations and key management guidance.

Building for Production

npm run build

This will create a production-ready build in the dist folder.

Asset Pipeline

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

Assets Structure

  • 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.

Architecture (High-Level)

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)

Resilience & Fallback Layers

  1. API retry logic (exponential backoff)
  2. Multi-provider AI fallback chain
  3. Offline heuristic generation (long-tail, meta, bullets)
  4. Local storage + in-memory caching
  5. 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

Privacy & Data Handling

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

Contributing & Roadmap

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).

License

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors