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

trackfox

v1.1.4

Published

TrackFox Analytics CLI - instrument websites and view analytics from your terminal

Readme

TrackFox CLI

Instrument websites and inspect TrackFox Analytics without leaving the terminal.

Quick start

trackfox config add
trackfox analytics

Create a website-scoped key in TrackFox → Website settings → API. config add asks for the website ID and masks the key, validates both, and stores a named local profile. Add --api-key-stdin to read a key from stdin or --force to replace a profile.

To create and instrument a new site instead:

npx trackfox add

Analytics commands

trackfox analytics [profile]             Dashboard summary and chart
trackfox realtime [profile] --watch      Live visitors
trackfox top-pages [profile]             Most-viewed pages
trackfox entry-pages [profile]           Pages where visits started
trackfox exit-pages [profile]            Pages where visits ended
trackfox exit-links [profile]            Outbound links visitors clicked
trackfox referrers [profile]             Top referrers
trackfox countries [profile]             Visitors by country
trackfox regions [profile]               Visitors by region
trackfox cities [profile]                Visitors by city
trackfox browsers [profile]              Visitors by browser
trackfox devices [profile]               Visitors by device
trackfox operating-systems [profile]     Visitors by operating system
trackfox custom-events [profile]         Custom events
trackfox electron versions [profile]     Electron version adoption

Use --period today|yesterday|last24h|last7d|last30d|wtd|mtd|ytd|all|custom. A custom period also requires --start-date and --end-date. Analytics commands accept --timezone; list commands accept --limit and --all.

Output is formatted as tables by default. Select JSON explicitly with --output json.

trackfox top-pages --period last7d --all --output json | jq '.data'
trackfox analytics --period custom --start-date 2026-07-01 --end-date 2026-07-10

Profiles and security

trackfox config list
trackfox config show [profile]
trackfox config use <profile>
trackfox config remove <profile>

Config lives at %APPDATA%\TrackFox\config.json on Windows and ${XDG_CONFIG_HOME:-~/.config}/trackfox/config.json elsewhere. Keys are redacted in display output. On POSIX the directory and file use 0700 and 0600 permissions.

For CI or temporary use, avoid persistence:

TRACKFOX_WEBSITE_ID=site_123 TRACKFOX_API_KEY=tf_secret trackfox analytics --output json

TRACKFOX_API_URL overrides the API host. TRACKFOX_CONFIG_DIR overrides configuration storage for testing. Rotate or revoke keys in TrackFox settings.

Exit codes

| Code | Meaning | | --- | --- | | 0 | Success | | 1 | Unexpected/API service failure | | 2 | Invalid arguments | | 3 | Missing or invalid configuration | | 4 | Authentication or authorization failure | | 5 | Network or timeout failure | | 6 | API validation, rate-limit, or not-found failure | | 130 | Interrupted |

Troubleshooting

  • No profile: run trackfox config add.
  • Invalid key: create a replacement in Website settings → API, then rerun config add --force.
  • Port in use during add: set TRACKFOX_CALLBACK_PORT.
  • Network details: set DEBUG=1; credentials remain redacted.
  • Plain output: set NO_COLOR=1 or use --no-color.

Requires Node.js 18 or newer. CLI documentation: trackfox.app/docs/cli/overview. API reference: trackfox.app/docs/api-reference/overview.