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

aperture-mcp

v0.4.0

Published

Token-budget-aware visual feedback loop for AI coding agents

Readme

Aperture

MCP server that gives AI coding agents eyes. Screenshot your local dev server, control token cost, detect changes, compute visual diffs — all through MCP tools any compatible agent can call.

The problem: AI agents building UI are blind. They edit code but never see the result. You become their eyes — screenshotting, describing, feeding back. Aperture closes that loop automatically.

Quick Start

npx playwright-core install chromium

Add to your MCP config:

{
  "mcpServers": {
    "aperture": {
      "command": "npx",
      "args": ["-y", "aperture-mcp"]
    }
  }
}

Optionally install a Claude Code hook that nudges the agent to check its work after visual file edits:

npx aperture-mcp --install-hook

Tools

| Tool | What it does | Token cost | |------|-------------|------------| | screenshot | Capture a URL at your token budget | Budget-controlled | | screenshot_element | Capture a single element by CSS selector | Budget-controlled | | screenshot_diff | Compare against previous capture, returns diff overlay | Budget-controlled | | has_changed | Hash-based change detection | Zero | | smart_check | has_changed + screenshot in one call — skips capture if unchanged | Zero or budget | | interact_and_screenshot | Run browser actions (click, fill, scroll, hover, navigate, wait, select) then capture | Budget-controlled |

Token Budgets

Every screenshot costs tokens. Aperture makes this a first-class parameter — you control the tradeoff per call.

| Budget | Resolution | Use case | |--------|-----------|----------| | 100 | 384x216 | Quick layout check | | 300 | 640x360 | Default | | 800 | 1180x664 | Typography, color accuracy | | 1200 | 1452x816 | Maximum detail |

Interaction Actions

interact_and_screenshot supports these action types:

| Action | Parameters | Notes | |--------|-----------|-------| | click | selector, force? | force: true bypasses visibility checks | | fill | selector, value | Fill an input field | | scroll | selector? or x?, y? | Scroll element into view, or scroll by pixel delta | | hover | selector | Hover over an element | | select_option | selector, value | Select a dropdown option | | wait | ms | Wait up to 30s | | navigate | url | Go to a URL |

Auth

For pages behind auth, create .aperture/auth.json:

{
  "cookies": [
    { "name": "session", "value": "your-token", "domain": "localhost", "path": "/" }
  ],
  "localStorage": {
    "http://localhost:4321": { "auth_token": "your-jwt" }
  }
}

Both fields optional. Add .aperture/ to .gitignore.

License

MIT