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

@maudecode/cowtail-cli

v0.16.0

Published

Cowtail CLI

Readme

cowtail-cli

Cowtail CLI for Cowtail backend actions.

Goals

  • Ship a real macOS arm64 executable binary
  • Keep the codebase in TypeScript
  • Use Bun for local development and compilation
  • Give alertmanager-related automation a thin, standard interface into Cowtail

Current status

Phase 1 is implemented:

  • cowtail version
  • cowtail update
  • cowtail alert create
  • cowtail alert list
  • cowtail alert show
  • cowtail alert delete
  • cowtail config validate
  • cowtail config doctor
  • cowtail config show
  • cowtail fix create
  • cowtail fix list
  • cowtail fix show
  • cowtail fix delete
  • cowtail roundup test
  • cowtail health show
  • cowtail push send
  • cowtail push test
  • cowtail users devices
  • cowtail users list
  • cowtail help

Layout

  • src/cli.ts - entrypoint
  • src/commands/ - command handlers
  • src/lib/ - config and HTTP helpers

Development

cd ..
bun install
cd cli
bun install
bun run check
bun run dev -- help

Build executable

cd cli
bun run build
./dist/cowtail help

Install From A Release

curl -fsSL https://raw.githubusercontent.com/MaudeCode/cowtail/main/cli/install.sh | sh

Set COWTAIL_VERSION=vX.Y.Z to pin a specific release tag. Set INSTALL_DIR=/your/bin to override the install location.

Install From npm

npm install -g @maudecode/cowtail-cli

The npm package exposes the cowtail command. Tagged releases publish the package through the root release workflow, with the npm version derived from the Git tag by removing the leading v.

Config

The CLI reads runtime settings from a JSON config file.

Default lookup path:

  • ~/.config/cowtail/config.json

Optional path override:

  • COWTAIL_CONFIG_PATH

Example config:

{
  "baseUrl": "https://your-cowtail.example/actions",
  "pushBearerToken": "replace-me",
  "timeoutMs": 10000
}

baseUrl is required. pushBearerToken is only required for authenticated commands such as users list, users devices, push send, push test, and roundup test.

cowtail config show reports the resolved config path, whether the file was found, whether a base URL is configured, and whether a push token is configured without printing secret values.

Tagged release builds embed the Git tag as the canonical CLI version. Local builds default to dev unless COWTAIL_VERSION is set.

Planned command shape

  • cowtail version
  • cowtail update
  • cowtail alert create
  • cowtail alert list
  • cowtail alert show
  • cowtail alert delete
  • cowtail config validate
  • cowtail config doctor
  • cowtail config show
  • cowtail fix create
  • cowtail fix list
  • cowtail fix show
  • cowtail fix delete
  • cowtail roundup test
  • cowtail health show
  • cowtail push send
  • cowtail push test
  • cowtail users devices
  • cowtail users list

Examples

cowtail version

cowtail update --check

cowtail config show

cowtail config validate

cowtail config doctor

cowtail roundup test \
  --user-id '001612.bb9a2ce6d90341d880c8e6065c232aae.2317' \
  --from 2026-04-14 \
  --to 2026-04-14

cowtail health show

cowtail users list

cowtail users devices --user-id 001612.bb9a2ce6d90341d880c8e6065c232aae.2317

cowtail alert list --severity critical

cowtail fix list --scope reactive

cowtail alert create \
  --alertname KubePodCrashLooping \
  --severity warning \
  --namespace default \
  --status firing \
  --outcome fixed \
  --summary 'Deployment was crashlooping due to missing secret' \
  --action 'Patched secret reference and restarted deployment'

cowtail fix create \
  --alert-id abc123 \
  --description 'Patched RBAC and reconciled deployment' \
  --root-cause 'Missing ClusterRole rule' \
  --scope reactive

cowtail push test \
  --user-id '001612.bb9a2ce6d90341d880c8e6065c232aae.2317'