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

@apitally/cli

v0.1.5

Published

Apitally CLI

Readme

Apitally CLI

Tests Codecov Release npm

A command-line interface for Apitally, built for agents and humans.

Apitally is a simple API monitoring and analytics tool that makes it easy to understand API usage, monitor performance, and troubleshoot issues.

Learn more about Apitally on our 🌎 website or check out the 📚 documentation.

Highlights

  • Stream API request logs from Apitally to a local DuckDB database
  • Run arbitrary SQL queries against that database to analyze API request data
  • Bundled DuckDB, no runtime dependencies, written in Rust (it's fast)

Installation

For agents

Install the apitally-cli skill using the skills CLI:

npx skills add apitally/cli

For humans

The CLI can be used with npx, no installation required:

npx @apitally/cli <command>

If you wish to use the apitally binary directly, install it with the standalone installer script:

# On macOS and Linux
curl -fsSL https://apitally.io/cli/install.sh | sh
# On Windows
powershell -ExecutionPolicy Bypass -c "irm https://apitally.io/cli/install.ps1 | iex"

You can also download the binary for your platform from the latest release on GitHub.

Authentication

To use the CLI, you need an API key. You can create one in the Apitally dashboard under Settings → API keys.

Then run the auth command to configure your API key interactively:

npx @apitally/cli auth

Or provide the key directly:

npx @apitally/cli auth --api-key "your-api-key"

The API key is saved to ~/.apitally/auth.json.

You can also set the API key via the APITALLY_API_KEY environment variable or pass the --api-key flag to any command.

Commands

| Command | Description | | ----------------- | ----------------------------------------------- | | auth | Configure API key | | whoami | Check authentication and show team info | | apps | List all apps in your team | | consumers | List consumers for an app | | request-logs | Fetch request log data for an app | | request-details | Fetch full details for a specific request | | sql | Run SQL queries against a local DuckDB database | | reset-db | Drop and recreate all tables in local DuckDB |

All commands output NDJSON to stdout by default. Use the --db flag to write data to a local DuckDB database instead, which can then be queried with the sql command. The database defaults to ~/.apitally/data.duckdb if no other path is specified.

Run npx @apitally/cli --help for detailed usage information.

For a full command reference, see skills/apitally-cli/references/commands.md.

For DuckDB table schemas, see skills/apitally-cli/references/tables.md.

Exit codes

| Code | Meaning | | ---- | ------------------------------------------------------- | | 0 | Success | | 1 | General / unknown error | | 2 | Usage error (invalid arguments, missing required flags) | | 3 | Authentication error (missing or invalid API key) | | 4 | Input error (invalid argument values) | | 5 | API / network error |

Getting help

If you need help please create a new discussion on GitHub or email us at [email protected]. We'll get back to you as soon as possible.