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

@zgeoff/slooks

v0.2.0

Published

Slack hooks daemon: run shell commands on Slack events, as you

Readme

slooks runs your shell commands when things happen in Slack, and it runs them as you.

A small daemon holds a Socket Mode connection to a user-token Slack app: no bot user, no channel invites, no public URL. Every message, edit, deletion, and reaction you can see becomes one JSON event, and config.json maps event names to commands the way Claude Code hooks do. Filters on each entry drop the noise before a process spawns, a debounce turns a burst of alerts into one batch, and a gate hook can block or rewrite anything slooks posts on your behalf.

Slack ── Socket Mode ──> slooks daemon ──> hooks (sh -c, JSON on stdin)
                              └──> events socket (`slooks events`)
slooks send / react / edit ──> PreAction hooks ──> Slack ──> PostAction hooks

Install

Homebrew:

brew install zgeoff/tap/slooks

Or download a binary:

curl -fsSL https://raw.githubusercontent.com/zgeoff/slooks/main/install.sh | sh

Prebuilt binaries cover macOS and Linux, arm64 and x64. The install script puts slooks in ~/.local/bin; set SLOOKS_INSTALL_DIR to change that. Checksums are on the releases page.

From source, with Bun:

bun add -g @zgeoff/slooks

slooks needs a Slack app with Socket Mode on and user scopes only. The Slack app guide has the manifest and the two tokens to copy out. Put them in the environment as SLACK_APP_TOKEN and SLACK_USER_TOKEN, or in config.json as appToken and userToken.

Use

slooks daemon --verbose

The daemon runs in the foreground and prints one line per event. In another terminal:

slooks events | jq -r 'select(.ev == "MessagePosted") | .channel.name + ": " + .text'

Hooks go in ~/.config/slooks/config.json, keyed by event name. This entry batches a minute of human messages from two channels and hands them to an agent for triage:

{
  "hooks": {
    "MessagePosted": [
      {
        "command": "claude -p 'Triage these Slack messages. Use `slooks thread` for context.'",
        "channel": ["#support", "#alerts"],
        "subtype": "human",
        "not_user": "me",
        "debounce": 60000,
        "timeout": 300000
      }
    ]
  }
}

The command gets the events as JSON on stdin and the event name in $SLOOKS_EVENT. Message text never enters the command string. The hooks guide covers every event, every filter, and the gating contract.

The rest of the CLI posts as you and needs only the user token:

| Command | Does | | ------------------------------------------- | ------------------------------------------------------- | | slooks send <channel> [text] [--thread ts]| post a message; text comes from stdin when omitted | | slooks react <channel> <ts> <emoji> | add a reaction | | slooks edit <channel> <ts> [text] | edit one of your messages | | slooks thread <channel> <ts> [--json] | print a thread, parent first | | slooks events | stream every event the daemon sees as NDJSON |

<channel> is an id (C…, D…, G…) or #name. Each outbound command runs through your PreAction hooks first, so a one-line jq test can stop a message before it posts.

Configuration

~/.config/slooks/config.json holds the hooks and, optionally, the tokens. The configuration guide covers every field and the state files.

Documentation

docs/ covers the hook contract, the Slack app, and the daemon internals.