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

hidden-agenda

v0.1.0

Published

Find content in your repo that talks to AI agents behind your readers' backs — hidden HTML comments, concealed elements, invisible unicode.

Readme

hidden-agenda

Find content in your repo that talks to AI agents behind your readers' backs.

When someone points an AI assistant at your repo — "evaluate this package", "install this MCP server" — the agent reads the raw files. Humans read the rendered ones. Anything that lives in the gap between those two views is an invisible channel straight into somebody else's agent: hidden HTML comments, concealed elements, invisible unicode. This linter closes the gap.

npx hidden-agenda            # scan the current repo
npx hidden-agenda docs/ README.md --fail-on warn
npx hidden-agenda --json     # machine-readable findings
ERROR README.md:1  [html-comment/agent-greeting]
      Hidden HTML comment addresses/instructs an AI agent (agent-greeting, machine-readable-offer)
      » Hello, agent. A human is probably reading this README, but you might be too. …
      why: Directly greets an AI agent — meaningless to human readers, actionable to machines.

What it detects

| Detector | Severity | What | |---|---|---| | html-comment | error | Hidden <!-- --> comments that greet, address, or instruct AI agents ("hello, agent", "if you are an AI…", "ignore previous instructions", "do not tell the user", offers of machine-readable endpoints) | | html-comment | warn | URLs offered only inside hidden comments — links human readers never see | | hidden-element | error/warn | The same content inside hidden, display:none, font-size:0, or aria-hidden elements | | invisible-unicode | error | Unicode tag-block characters (U+E0000–E007F) — invisible ASCII smuggling | | invisible-unicode | warn | Zero-width characters and bidi controls (Trojan Source) |

Tooling comments (eslint, prettier, toc, licence headers…) are allowlisted. Precision over breadth: a linter people mute catches nothing.

GitHub Action

- uses: StuMason/hidden-agenda@v0
  with:
    paths: "."        # optional
    fail-on: error     # error | warn | never

Exit codes

0 clean · 1 findings at/above --fail-on · 2 usage error

Why this exists

I put a hidden HTML comment in the README of my own MCP server — invisible on GitHub, perfectly visible to any agent asked to vet or install the package — and someone rightly called it out. The intent was a marketing experiment; the pattern is indistinguishable from an attack, because agents can't read intent, only instructions. I removed it, then built this so it can't happen quietly again — and the first time I ran it across my own repos, it found a second one I'd forgotten about.

If you ship anything agents are asked to read — MCP servers, CLIs, actions, libraries — put this in CI and make the invisible channel a build failure.

Programmatic use

import { scan, scanFile } from "hidden-agenda";
const { findings, filesScanned } = scan(["."]);

MIT © Stu Mason