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

@thrain/blackout-mcp

v1.4.0

Published

MCP server for permanent PDF redaction. Exposes redact_pdf and check_pdf; rasterises and rebuilds each page so redacted text is gone, not covered. Never uploads the document.

Readme

@thrain/blackout-mcp

An MCP server that permanently removes text from PDFs.

Ask a model to "redact the SSNs out of this PDF" and it will usually write a PyMuPDF or pikepdf script that draws a black rectangle over the text. The rectangle is an overlay; the characters stay in the content stream underneath, recoverable by any text extractor. The document looks redacted and is not. That is how redaction failures leak.

This server does it correctly: it rasterises each page, burns the bars into the pixels, and rebuilds the file from the images, so the text layer is gone. It then reads its own output back and verifies that zero characters remain extractable — and returns an error rather than a file if that check fails.

It runs entirely on the local machine. Nothing is uploaded, and there is no network call anywhere in the path — which makes "the document never leaves your device" literally true, in a way no hosted redaction API can claim. For an agent handling a file full of Social Security numbers, that is the whole argument.

Install

{
  "mcpServers": {
    "blackout": {
      "command": "npx",
      "args": ["-y", "@thrain/blackout-mcp"]
    }
  }
}

For unlimited page counts, add your license:

{
  "mcpServers": {
    "blackout": {
      "command": "npx",
      "args": ["-y", "@thrain/blackout-mcp"],
      "env": { "BLACKOUT_LICENSE": "<token>" }
    }
  }
}

Where to find your token

Buy Pro at blackout.thrain.ai ($25, one-time). Once Pro is active, the Pro screen has a "Use Blackout from the terminal or an AI agent" section — expand it to copy your token, or the ready-made export BLACKOUT_LICENSE=… line.

The same token works in the browser, the CLI, and here. It is verified offline against an embedded public key, so licensed runs still make no network calls. Treat it like a password.

Tools

check_pdf

Read-only. Reports what would be redacted without writing anything.

| Argument | Type | Notes | |---|---|---| | path | string | Absolute path to a PDF on this machine | | detect | string[] | ssn, card, email, phone. Omit for all | | terms | string[] | Literal strings to match, case-insensitive |

redact_pdf

Writes a redacted copy. Never modifies the input.

| Argument | Type | Notes | |---|---|---| | path | string | Absolute path to a PDF on this machine | | output_path | string | Defaults to <input>-redacted.pdf; must not be the input | | detect | string[] | ssn, card, email, phone. Omit for all | | terms | string[] | Literal strings to match, case-insensitive | | overwrite | boolean | Allow replacing an existing output. Default false | | license | string | Pro license token; falls back to BLACKOUT_LICENSE |

Both return a human-readable summary followed by a JSON block with per-category counts, page count, extractableChars (0 on every successful redaction), and licenseState"none", "invalid", or "valid".

If a token is supplied and fails verification, redact_pdf on an over-limit document reports LICENSE_INVALID rather than the generic page-limit error, so an agent can tell "this needs a license" apart from "this license is wrong" and say something useful to the person who owns it.

Limits

Free up to 10 pages per document. A Pro license ($25, one-time) removes the limit and is the same license the browser app uses.

See also


Thrain LLC · [email protected]