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

@mirage-cli/callrail-cli

v0.1.1

Published

CallRail CLI — read-only call tracking data (calls, companies, trackers, conversations, form submissions, summaries) with multi-account profiles. Mirage-compatible command shape.

Readme

@mirage-cli/callrail-cli

Read-only CLI for the CallRail v3 API — calls (with transcriptions, AI summaries, sentiment), call summaries/timeseries, companies, tracking numbers, SMS conversations, form submissions, users, tags, integrations. Multi-account via named profiles (one API key per account). Every command is a GET; the client has no write surface.

bun add -g @mirage-cli/callrail-cli   # installs the `callrail` bin
callrail --help

Credentials

One CallRail API key per profile. Resolution per invocation:

api key:  --api-key > CALLRAIL_API_KEY > profile (--profile > CALLRAIL_PROFILE
          > saved active profile) > sole profile
account:  --account > CALLRAIL_ACCOUNT_ID > profile's pinned account
          > auto-detected when the key sees exactly one account

On disk (workstations)

callrail auth add acme --api-key abc123   # verifies the key, auto-pins its account
callrail auth add foxhaven                # key via CALLRAIL_API_KEY or piped stdin
callrail auth use foxhaven                # switch active profile
callrail auth list                        # fingerprints only, never full keys

Stored in ~/.config/callrail/config.json (mode 0600).

Via env (CI / Cloudflare Workers)

CALLRAIL_API_KEY=...                                   # single key
CALLRAIL_API_KEYS="acme:key1,foxhaven:key2"            # named profiles, compact
CALLRAIL_API_KEYS='{"acme":{"apiKey":"...","accountId":"ACC..."}}'  # JSON form
CALLRAIL_PROFILE=acme                                  # default profile selector
CALLRAIL_ACCOUNT_ID=ACC...                             # account override

Env profiles merge over disk profiles (env wins on name collision). If both CALLRAIL_API_KEY and CALLRAIL_API_KEYS are set, the singular wins (with a stderr warning).

Commands

auth           add | use | list | remove | whoami
accounts       list | get [id] | use <id>
calls          list | get <id> | summary | timeseries
companies      list | get <id>
trackers       list | get <id>
conversations  list | get <id>        # SMS/MMS
forms          list | get <id>        # form submissions
users          list | get <id>
tags           list
integrations   list --company <id>
api <path>     raw GET escape hatch ({account} placeholder supported)

Examples

callrail calls list --date-range last_7_days --answer-status missed
callrail calls get CAL123 --fields transcription,call_summary,sentiment
callrail calls summary --group-by source --date-range last_30_days
callrail calls timeseries --interval week --start-date 2026-01-01 --end-date 2026-03-31
callrail calls list --date-range last_month --lead-status good_lead -f jsonl
callrail trackers list --status active -f table
callrail api '/a/{account}/calls.json' -q date_range=today -q device=mobile

Output

-f json (default — raw API envelope, jq-friendly) · -f jsonl (one record per line) · -f table · -f csv. Errors are JSON on stderr ({"error", "status", "hint"}), exit 1.

Pagination

--page / --per-page (max 250), or --all to walk every page (capped by --max-records, default 2500 — CallRail allows 1,000 requests/hour). Truncation is flagged in the JSON output.

AI usage

A ready-made skill with common workflows ships in skills/callrail/SKILL.md. For mirage / Cloudflare Workers, use @mirage-cli/callrail.

Library use

import { buildProgram, CallRailClient, resolveCredentials } from "@mirage-cli/callrail-cli";

buildProgram() is a pure factory — no side effects on import, safe to cache.