repowiserepowise

Library

ghostery / adblocker

Efficient embeddable adblocker library

★ 1,019stars on GitHubTypeScriptMPL-2.0

Claude Code, Cursor, Codex or VS Code. No key. You approve one sign-in in your browser.

Setup instructions on GitHub

Releases on GitHub (latest v2.20.3, Oct 28, 2026)

Repowise maps public repos from their source. Not affiliated with ghostery. What is Repowise?

github.com/ghostery/adblockerIndexed at ff8ed92

What is adblocker?

adblocker is a JavaScript library for blocking ads, trackers, and annoyances, with a strong focus on efficiency. It applies filters written in the uBlock Origin and Easylist formats to decide what to block, and it can be embedded in other software. The library is written mainly in TypeScript. Its code health is 9.0 out of 10 (Excellent), ranked #19 of 4,000+ indexed repos. The last commit to adblocker was on Aug 14, 2026, and 11 people have contributed.

As of commit ff8ed92, indexed Sep 1, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsadblocker.md

Repo facts: type, license, health, rank, contributors
adblocker facts
TypeLibrary
LicenseMPL-2.0
Code health9.0 / 10 (Excellent)
Health rank#19 of 4,000+ indexed repos
Last commitAug 14, 2026
Contributors11
Bus factor1
Size215 files, 98,451 lines

Explore adblocker

Ask about this code in your agent

This connects Repowise to adblocker's code. It does not install adblocker.

Useful if you want to change or fork adblocker: your agent can ask how it is put together and get answers that cite its files.

Ask about adblocker

Answers come from adblocker's README and source, with the files they cite. Two free answers a day without an account.

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of ghostery/adblocker from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

ghostery/adblocker FAQ

What is adblocker?

adblocker is a JavaScript library for blocking ads, trackers, and annoyances with a strong focus on efficiency. It can be embedded in Puppeteer, Electron, Chrome and Firefox extensions, or used as a standalone library.

How does adblocker work?

adblocker applies filters written in the uBlock Origin and Easylist formats to decide what to block. It runs inside a host environment such as a browser extension, a Puppeteer script, or an Electron app.

What language is adblocker written in?

adblocker is written mainly in TypeScript. The repository also contains JavaScript, Makefile, and Python files.

How is the adblocker code organized?

Most files are under the packages directory, which includes the core adblocker package and integration packages such as adblocker-content. The bench directory holds comparison entry points, and the .github directory holds workflows and project settings.

Who is adblocker for?

adblocker is for developers who want to block ads and trackers in Node.js, Puppeteer, Electron, or browser extension projects.

What license does adblocker use?

adblocker is licensed under MPL-2.0.

Code health

8.9out of 10Excellent

Hotspots average 3.5, the place fixes pay off most.

On the leaderboards:#6 of 70 TypeScript repos

Key features of adblocker

  • Blocks ads, trackers, and annoyances in Puppeteer, Electron, Chrome, and Firefox, or as a standalone JavaScript library.
  • Supports filters from the Easylist and uBlock Origin projects.
  • Runs in Node.js, React Native, and any environment that supports JavaScript.
  • Provides a prebuilt set of ads and tracking filters through WebExtensionBlocker.fromPrebuiltAdsAndTracking.
  • Can process batches of requests in Node.js.

How ghostery/adblocker works

Most of the code sits under the packages directory. The core engine is in packages/adblocker/src/engine/engine.ts, which is one of the hotspot files in the index. The packages/adblocker/src/codebooks/ directory holds modules for network filters, cosmetic selectors, network hostnames, and raw network rules. The packages/adblocker-content/package.json manifest describes the content package that sits alongside the core library. Integration packages such as @ghostery/adblocker-webextension, @ghostery/adblocker-puppeteer, and @ghostery/adblocker-electron connect the core to each host environment. The bench/comparison/blockers/ directory contains entry points for comparing this library with other blockers.

The codebase has 215 files and 1,046 symbols in 3 modules, led by TypeScript, JavaScript and Makefile. Code health is 8.9 out of 10, rated excellent.