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

macctl

v0.1.2

Published

macOS CLI for controlling system settings (volume, screen, etc.) via AppleScript

Downloads

282

Readme

macctl

CI npm

A small Bun CLI for controlling a Mac from the terminal. Commands print structured JSON so scripts and tools can parse results reliably.

Agents and voice workflows: This is a good fit for locally running agents (or voice assistants in “tool use” mode) that need safe, explicit control of a MacBook—e.g. adjusting volume or locking the screen—without opening full GUI automation for every action.

Requirements

  • macOS
  • Bun installed

Installation

npm install -g macctl
# or
bun install -g macctl

Development

Clone and install:

git clone https://github.com/serverdaun/macctl.git
cd macctl
bun install

Run from source:

bun run dev -- --help

Install globally from source:

bun link

Commands

Volume

| Command | Description | |--------|-------------| | macctl volume get | Current output volume and mute state | | macctl volume set <0-100> | Set volume | | macctl volume up [amount] | Increase (default +5) | | macctl volume down [amount] | Decrease (default −5) | | macctl volume mute <state> | state: on, off, or toggle |

Screen

| Command | Description | |--------|-------------| | macctl screen lock | Lock the screen |

App

| Command | Description | |--------|-------------| | macctl app open <name> | Open an application | | macctl app focus <name> | Bring an application to the foreground | | macctl app quit <name> | Quit an application gracefully | | macctl app running <name> | Check whether an application is running | | macctl app list | List visible running applications |

Output

Successful runs emit JSON with status, action, message, and optional data. Example:

macctl volume get
{ "status": "success", "action": "volume.get", "message": "Volume is 42", "data": { "outputVolume": 42, "outputMuted": false } }

Dev scripts

bun run build      # bundle to dist/
bun run start      # run built CLI
bun run check      # format + lint (Biome)
bun run check:fix  # auto-fix lint/format issues
bun run release:patch  # bump patch version, validate, commit, and tag

Releasing

Create a patch release from a clean main branch:

bun run release:patch
git push origin main --follow-tags