npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

chrome-extension-fetch

v1.0.0

Published

A utility to download Chrome extensions as CRX or ZIP.

Downloads

40

Readme

chrome-extension-fetch

A lightweight, dependency-free utility that downloads Chrome extension CRX files from the Chrome Web Store, converts them into ZIP files, and saves them into an organized folder. This package was created specifically for Peersky Browser to allow users to directly input extension URLs instead of manually handling ZIP files or GitHub releases.

Installation

npm install chrome-extension-fetch

Or

npx chrome-extension-fetch 

Usage

As a Module (ES Modules)

import { fetchExtensionZip } from 'chrome-extension-fetch';

(async () => {
  try {
    const { crxPath, zipPath } = await fetchExtensionZip(
      'https://chrome.google.com/webstore/detail/dscan-decentralized-qr-co/idpfgkgogjjgklefnkjdpghkifbjenap',
      {
        chromeVersion: '114.0.5735.133', // Optional: defaults to this version if not provided.
        outputDir: 'extensions' // Optional: defaults to "extensions"
      }
    );
    console.log('CRX saved at:', crxPath);
    console.log('ZIP saved at:', zipPath);
  } catch (error) {
    console.error('Failed to fetch extension:', error.message);
  }
})();

From the Command Line

node index.js "https://chrome.google.com/webstore/detail/dscan-decentralized-qr-co/idpfgkgogjjgklefnkjdpghkifbjenap"

Output

node index.js "https://chrome.google.com/webstore/detail/dscan-decentralized-qr-co/idpfgkgogjjgklefnkjdpghkifbjenap"

==> Downloading extension: dscan-decentralized-qr-co (ID: idpfgkgogjjgklefnkjdpghkifbjenap)
==> Using Chrome version: 114.0.5735.133
Attempting CRX download from: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=114.0.5735.133&acceptformat=crx2,crx3&x=id%3Didpfgkgogjjgklefnkjdpghkifbjenap%26uc
CRX file saved to: extensions/dscan-decentralized-qr-co.crx
ZIP extracted and saved to: extensions/dscan-decentralized-qr-co.zip

How It Works

  • Fetch the CRX file: Constructs an unofficial URL to download the extension using Chrome’s update service. It spoofs a Chrome User-Agent and follows redirects.

  • Convert CRX to ZIP: Reads the CRX header (supports both CRX v2 and v3) to determine where the ZIP data starts, then writes the ZIP archive into a separate file.

  • Dynamic Naming & Organization: The package extracts a friendly name from the extension URL and creates an extensions/ folder to store all downloads.

Disclaimer

  • Unofficial Method: This tool utilizes an undocumented endpoint (clients2.google.com/service/update2/crx) to download CRX files. Its use might be against the Chrome Web Store’s Terms of Service if used for unauthorized distribution. Use responsibly and only with public/open-source extensions unless you have permission.

  • No Redistribution: The authors assume no liability for any misuse of this tool. Users are solely responsible for complying with legal and regulatory requirements when using the package.