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

@custral/cli

v1.0.3

Published

The Custral command-line interface — sign in and work with your workspace from the terminal.

Downloads

304

Readme

@custral/cli

The Custral command-line interface. Sign in from your terminal and work with your workspace as yourself — the CLI holds a real Custral session (not an API key), so it can act across every organization you belong to.

Install

npm install -g @custral/cli

Sign in

custral login

This opens the RFC 8628 device flow: the CLI prints a short code and a URL, you approve it in your browser (where you're already signed in), and the session is saved to ~/.custral/config.json (0600). No password is ever typed into the terminal, and you can revoke the session any time in Settings → Sessions.

Commands

custral login                        Sign in via your browser
custral logout                       Sign out (clears the stored session)
custral whoami                       Show the signed-in account + current org
custral org list                     List your organizations
custral org switch <slug>            Switch the current organization
custral api <method> <path> [json]   Make a raw authenticated request

Switching orgs is instant and local — the session works for every org you belong to, so org switch just changes which one subsequent commands target.

custral org switch pied
custral api GET organizations
custral api POST records/paginate '{"objectId":"obj_123","limit":10}'

Configuration

| | | |---|---| | Config file | ~/.custral/config.json | | CUSTRAL_API_URL | Override the API base (default https://api.custral.com) |

Auth model

The CLI authenticates like the web app: it sends the session id as the Authorization header verbatim (no Bearer prefix) and the current org as the Organization header. It is deliberately not an API-key client — API keys (sk_…) are org-scoped credentials for server-to-server integrations; the CLI is you, across all your orgs. For unattended/CI use, prefer an API key + the REST API or @custral/sdk.