Library
ghostery / adblocker
Efficient embeddable adblocker library
Claude Code, Cursor, Codex or VS Code. No key. You approve one sign-in in your browser.
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
| Type | Library |
|---|---|
| License | MPL-2.0 |
| Code health | 9.0 / 10 (Excellent) |
| Health rank | #19 of 4,000+ indexed repos |
| Last commit | Aug 14, 2026 |
| Contributors | 11 |
| Bus factor | 1 |
| Size | 215 files, 98,451 lines |
Explore adblocker
- DocumentationModule-by-module documentation, 192 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
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
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.
Maintain ghostery/adblocker?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of ghostery/adblocker. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask adblocker's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/ghostery/adblocker?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/ghostery/adblocker?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/ghostery/adblocker.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/ghostery/adblocker?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/ghostery/adblocker.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/ghostery/adblocker.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>