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

anyhive

v0.0.0-alpha.1

Published

The Anyhive command line interface helps you initialize projects and set up a local development environment.

Readme

Anyhive CLI

The Anyhive command line interface helps you initialize projects and set up a local development environment.

Built with Node.js and commander for robust argument parsing, validation, and helpful usage text.

Requirements

  • Node.js 18+

Installation

Install globally (recommended when published):

npm i -g anyhive

From this monorepo (for local development):

node packages/cli/bin/anyhive.js --help

Global options

  • --env <sandbox|production>: Select target environment for commands
  • --sandbox: Alias of --env sandbox

Environment resolution priority:

  1. CLI flags (--env or --sandbox)
  2. Environment variable ANYHIVE_MODE
  3. Default: production

Commands

init

Initialize an Anyhive project configuration.

anyhive init --workspace <id> --token <installToken> [--dir <path>] [--force] [--env sandbox|production]

Behavior:

  • Creates anyhive.config.json in the target directory
  • Respects --env to set the initial mode (e.g. sandbox or production)
  • Errors if a config already exists unless --force is provided

verify

Verify your installation (demo output).

anyhive verify [--env sandbox|production]

whoami

Display the current user and environment (demo output).

anyhive whoami [--env sandbox|production]

sandbox

Create or update a local .env with a sandbox publishable key for local testing.

anyhive sandbox [--dir <path>] [--key <publishableKey>] [--force] [--write-all]

Options:

  • --dir <path>: Directory for the .env file (default: current directory)
  • --key <publishableKey>: Provide a specific key instead of generating one
  • --force: Overwrite existing ANYHIVE_PUBLISHABLE_KEY in .env
  • --write-all: Also upsert the following variables:
    • ANYHIVE_MODE=sandbox
    • ANYHIVE_API_BASE_URL=https://sandbox.api.anyhive.dev
    • ANYHIVE_WORKSPACE_ID=ws_sandbox_demo

Notes:

  • Without --force, an existing ANYHIVE_PUBLISHABLE_KEY will not be overwritten
  • The command prints a short configuration summary for quick copying

Examples

# Initialize a project in sandbox mode
anyhive init --workspace ws_123 --token it_456 --env sandbox

# Verify against sandbox
anyhive verify --env sandbox

# Create or update a local .env for sandbox testing
anyhive sandbox --dir . --write-all

# Provide your own sandbox key and force overwrite
anyhive sandbox --dir . --key pk_sandbox_custom --force

Help

anyhive --help
anyhive <command> --help

Exit codes

  • 0: Success
  • Non-zero: An error occurred (missing required options, file conflicts, etc.)

License

ISC