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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vinikjkkj/wa-fetcher

v0.2.0

Published

Headless scraper for web.whatsapp.com bundles — downloads every loaded JS chunk + emits a manifest. Pairs with @vinikjkkj/wa-mex and @vinikjkkj/wa-proto.

Downloads

253

Readme

@vinikjkkj/wa-fetcher

Headless scraper for web.whatsapp.com bundles. Downloads every loaded JS chunk to disk and writes a manifest — that's all. Per-domain extractors (proto, mex, diff, …) consume the raw dump independently.

Install

npm i @vinikjkkj/wa-fetcher

CLI

# Default: download every bundle + write manifest
npx wa-fetcher --out dump/

# Discovery only: just the URL list (no download). Useful when piping into
# tools that have their own downloader (e.g. wa-modules-loader).
npx wa-fetcher --urls-only --out urls.json
npx wa-fetcher --urls-only > urls.json

| Flag | Default | Notes | |---|---|---| | --out <path> | dump (dir) / stdout (urls-only) | Output destination | | --urls-only | off | Skip download; emit only the discovered URL array (JSON) | | --extra-wait <ms> | 5000 | Wait this long after network-idle for lazy chunks |

Output layout:

dump/
├── manifest.json                  { waVersion, fetchedAt, bundles[] }
└── raw/
    └── <wa-version>/
        ├── chunk-AAAA.js
        ├── chunk-BBBB.js
        └── …

Library

const { discoverBundleUrls, fetchBundles } = require('@vinikjkkj/wa-fetcher')

// Discovery only — no download. Returns the same URL list the full fetcher
// would have downloaded (sorted, deduped, host-filtered to static.whatsapp.net).
const { waVersion, urls } = await discoverBundleUrls()
//   waVersion   "2.3000.xxxxxxx" | null
//   urls        string[]

// Discovery + download.
const dump = await fetchBundles({ out: 'dump' })
//   dump.waVersion              "2.3000.xxxxxxx" | null
//   dump.bundles[]              [{ url, file, bytes }, ...]
//   dump.paths.raw              absolute path to dump/raw/<version>/
//   dump.paths.manifest         absolute path to dump/manifest.json

GitHub Action

- uses: vinikjkkj/wa-spec/packages/fetcher@v1
  id: fetch
  with:
      out: dump
- run: npx wa-mex apply --bundles ${{ steps.fetch.outputs.raw-dir }}
- run: npx wa-proto apply --bundles ${{ steps.fetch.outputs.raw-dir }}

Caveats

  • Lazy chunks that the SPA only loads via UI interaction (Settings, Profile, Premium) won't be in the dump — the data-sjs rsrcMap covers most of them but not 100%.
  • Anti-botpuppeteer-real-browser works today but Meta can tighten detection. If the fetcher returns blank pages, re-evaluate the strategy.
  • No extraction — this package is intentionally dumb. The extractors live in @vinikjkkj/wa-mex and @vinikjkkj/wa-proto so adding a new artifact never requires touching the fetcher.