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

@thieum/hushad

v1.2.0

Published

Spotify and Deezer ad blocker for Linux: one command, no client patching, no root.

Readme

hushad

Spotify and Deezer ad blocker for Linux: one command, no client patching, no root.

hushad spotify (or hushad deezer) starts the desktop client through a local mitmproxy filter that blocks ad requests by full URL. Spotify works as a snap, a Flatpak or the official .deb. Deezer has no official Linux client: hushad supports the unofficial deezer-desktop snap.

npx @thieum/hushad@latest      # checks prerequisites, installs, sets everything up
hushad spotify         # Spotify, minus the ads
hushad deezer          # Deezer, minus the ads
hushad                 # whichever of the two is installed

How it works

  1. The app is told to use a proxy on 127.0.0.1:8899: Spotify in its own prefs file, Deezer with --proxy-server on its command line.
  2. hushad starts mitmdump on that port with a small filter (filter.py).
  3. mitmproxy's certificate goes into the app's NSS certificate store, never the system one. This lets the proxy read full request URLs inside HTTPS. With a snap or a Flatpak, that store belongs to the app alone, so only the app trusts the certificate. The Spotify .deb has no store of its own: see the .deb caveat.
  4. Requests matching a rule, such as gew1-spclient.spotify.com/ad-logic/prefetch for Spotify, or the Google IMA ad player and cdn-content.dzcdn.net/ads/ for Deezer, get an empty 403. The app never receives the ad, so the music just keeps playing.

Blocked requests never reach the servers: mitmproxy runs in lazy mode and only connects upstream for allowed requests.

Deezer: the cache is emptied at each start

hushad deezer empties two Deezer caches before starting it: Cache/Cache_Data and Service Worker/CacheStorage in Deezer's data folder.

Deezer keeps the ads it has already downloaded there, and plays them again from disk, without any request the proxy could block. An ad cached once (before installing hushad, or after hushad off) would come back at every ad break. These caches only hold downloaded web files: your account, settings and music library are not touched. hushad doctor tells you when an ad is waiting in the cache.

Install

npx @thieum/hushad@latest          # interactive
npx @thieum/hushad@latest -y       # say yes to every install offer

The installer checks each prerequisite and offers to install what is missing (with sudo when a system package is needed):

| Prerequisite | Why | Installed with | |---|---|---| | Linux | Spotify / Deezer desktop for Linux | — | | Node.js ≥ 18 | runs hushad | — | | Spotify desktop (snap, Flatpak or .deb) and/or Deezer (deezer-desktop snap) | auto-detected, one is enough | — | | pgrep | detects a running Spotify or Deezer | procps | | Python 3 | needed by mitmproxy | apt / dnf / pacman / zypper | | mitmproxy ≥ 9 | the proxy | pipx install mitmproxy | | certutil | trusts the certificate for each app | libnss3-tools / nss-tools / nss |

Files go to ~/.local/share/hushad (app, rules, log), and the hushad command goes to ~/.local/bin. No root access is needed besides installing missing system packages.

Usage

hushad                    start the installed app (with both, says which command to run)
hushad spotify [args]     start Spotify through the ad-blocking proxy
hushad deezer [args]      start Deezer through the ad-blocking proxy
hushad spotify --watch    same, and show every request live (red = blocked)
hushad urls [N]           most frequent requests seen (host + path)
hushad stats              blocked ad requests
hushad log                follow requests live (in another terminal)
hushad clear              clear the request log
hushad edit               edit the blocking rules
hushad cert               (re)trust the mitmproxy certificate for Spotify and Deezer
hushad status             current state
hushad doctor             check prerequisites and installation
hushad off                restore Spotify and Deezer (remove proxy setting and certificate)
hushad uninstall          remove hushad

Quit the app before running hushad spotify or hushad deezer. If it is already running, it keeps its old network settings.

Another Deezer install than the snap can be used with DEEZER_CMD (how to start it), DEEZER_NSSDB (its NSS certificate store) and DEEZER_CONFIG (its data folder, which holds the caches).

Rules

~/.local/share/hushad/rules.txt holds one regular expression per line, matched against host/path with the query string removed:

spclient\.spotify\.com/ad-logic/
spclient\.spotify\.com/ads/
doubleclick\.net/

To find a new ad endpoint, run hushad clear then hushad spotify --watch (or hushad deezer --watch), note what appears when an ad plays, and add it with hushad edit. Reinstalling keeps your rules file and adds only the rule sections it does not have yet, such as the Deezer section after an upgrade. Telemetry rules (gabo-receiver-service) are included but commented out.

Privacy & safety

  • The log only stores the host and path. Query strings, where Spotify's access tokens live, are never written. Past 5 MB it moves to requests.log.1 when the proxy starts.
  • ~/.mitmproxy holds a private key that can decrypt Spotify's and Deezer's traffic on this machine. Never share it.
  • Spotify .deb: the certificate is trusted beyond Spotify. The .deb uses ~/.pki/nssdb, the certificate store shared by Chrome, Chromium and Electron apps (Slack, Discord, VS Code…) for your user. Until hushad off, they all trust the mitmproxy certificate for every site, even when hushad is not running: anyone who gets the key in ~/.mitmproxy could then intercept their HTTPS traffic. Firefox and the system store are not affected. Prefer the Spotify snap or Flatpak, which have their own store; the installer and hushad doctor warn about this.
  • hushad off removes both the proxy setting and the certificate. For snaps, it cleans every revision snap keeps, so snap revert stays safe.

Limits

  • Spotify also uses a proprietary protocol (ap-*.spotify.com:4070) that mitmproxy cannot read. If Spotify ever moves ad delivery there, URL rules will stop working.
  • A snap refresh changes the app's data folder. If Spotify or Deezer can't connect after an update, run hushad cert.
  • The Deezer client is an unofficial port. If a new version stops honoring --proxy-server, or fetches ads from another address, the rules need updating.
  • Blocking ads goes against Spotify's and Deezer's terms of use. Use at your own risk.

License

MIT