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

@heysegment/cli

v1.2.5

Published

The Heysegment command line: your account's businesses, senders, Google, domains, notifications and websites, from a terminal. Runs on Bun.

Readme

@heysegment/cli

The Heysegment command line: your account's businesses, senders, Google, domains and websites, from a terminal. It runs on Bun 1.3.14 or newer. Working on a site also needs Node 22.15 or newer: the site's type check and build run on it.

Install

bun add -g @heysegment/cli
heysegment --version

The command is heysegment. Every answer ends with its next steps written the same way (heysegment …), so they run as written. heysegment-beta, its name before 1.0.0-beta.17, is installed too and runs the same CLI, so instructions written with it still work. If heysegment --version prints 0.1.x, that is the older heysegment-cli package, which used the same name: remove it (npm uninstall -g heysegment-cli, or bun remove -g heysegment-cli) and check again.

No Bun yet: curl -fsSL https://bun.sh/install | bash (Windows: powershell -c "irm bun.sh/install.ps1 | iex"), then open a new shell. The command runs on Bun: installed with npm instead, it still needs Bun on the PATH, or every call ends with 'bun' is not recognized.

Staying current

The CLI asks Heysegment which release to run at most every 10 minutes. When a newer one is out, a command still runs and then says so on stderr, at most every 10 minutes:

heysegment 1.0.1 is out (this is 1.0.0). Update it: heysegment update

heysegment update installs it (bun add -g @heysegment/cli@<release>). A release older than the platform's minimum is refused, with the same way out; --help, --version, auth and update always run. Set HEYSEGMENT_NO_UPDATE_CHECK=1 to turn the check off (a machine that pins its CLI).

Sign in

heysegment auth login                # opens a browser
heysegment auth login --no-browser   # prints the URL instead

An agent connected to Heysegment over MCP can instead hand you a one-time code: heysegment auth connect --code <code>.

Use

heysegment --help
heysegment businesses list
heysegment sites list
heysegment sites push -m "What changed"
heysegment sites list --json         # flags go after the command