Skip to content

Installation

Prerequisites

  • Python 3.11 or higher

From Source

  1. Clone the repository:
git clone https://github.com/grok/fetchext.git
cd fetchext
  1. Set up the environment:
make setup
  1. Activate the virtual environment:
source .venv/bin/activate

Development Setup

To install development dependencies (for testing, linting, and docs):

pip install -r requirements-dev.txt

Docker

Pull the image from GitHub Container Registry:

docker pull ghcr.io/grok/fetchext:latest

Run it:

docker run --rm -v $(pwd):/data ghcr.io/grok/fetchext download chrome <url> -o /data

Pre-commit Hook

You can use fetchext in your pre-commit config to automatically audit and scan extensions committed to your repository.

- repo: https://github.com/grok/fetchext
  rev: v1.6.0
  hooks:
    - id: fext-audit
      name: Audit Extension
      description: Check for MV3 compatibility and security risks.
    - id: fext-scan
      name: Scan Dependencies
      description: Check for vulnerable third-party libraries.
    - id: fext-analyze
      name: Analyze Complexity
      args: ["--complexity"]