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

agent-atv

v0.2.3

Published

A CLI that lets AI agents observe and drive an Apple TV (snapshot, press, open, type, wait, screenshot).

Readme

agent-atv

A CLI that lets AI agents observe and drive an Apple TV (snapshot, press, open, type, wait, screenshot). It talks to the homebridge-agent-atv Homebridge plugin, which must be installed and paired first. Setup, pairing, screen reading and security are covered in the main README.

Node.js 22 or later, no runtime dependencies.

Install and configure

npm i -g agent-atv
agent-atv config set url http://<homebridge-host>:8787
agent-atv config set token -       # paste the token from the plugin settings, Enter, Ctrl-D
agent-atv doctor

Settings resolve as flag > env > config file > default: --url / AGENT_ATV_URL, --token / AGENT_ATV_TOKEN (prefer env or the config file over the flag), -d, --device / AGENT_ATV_DEVICE (default default, the only paired device; for pair, the only known device), --timeout <ms> / AGENT_ATV_TIMEOUT_MS (default 30000).

The loop

agent-atv snapshot                       # observe
agent-atv open com.apple.TVSearch        # act; actions print only their own line
agent-atv wait --keyboard                # wait
agent-atv fill "stranger things"
agent-atv press down --settle            # Focus: "Stranger Things" (id …), with screen reading
agent-atv press select
agent-atv press down --until "Saison 2"  # steer to an element by name, one command
agent-atv screenshot --if-changed        # look at the whole screen

Every command accepts --json and prints one JSON line. Exit codes: 0 success, 1 failed, 2 usage or config, 3 plugin unreachable, 4 bad token, 5 not found, 6 device not ready, 7 wait timeout, 8 screen reading unavailable. Errors and warnings say what to do next.

For agents

agent-atv skills get core          # usage guide
agent-atv skills get core --full   # plus command reference, safety rules, template script

License

MIT