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 🙏

© 2025 – Pkg Stats / Ryan Hefner

trackfox

v1.0.5

Published

TrackFox Analytics CLI - Add websites to your analytics dashboard from the command line

Readme

trackfox

Official command-line interface for TrackFox Analytics - Add websites to your analytics dashboard directly from your terminal.

Installation

No installation required! Use with npx:

npx trackfox add

Or install globally:

npm install -g trackfox
trackfox add

Usage

Add a Website

Add a website to your TrackFox analytics dashboard:

npx trackfox add

This will:

  1. Open your browser for authentication via Google OAuth
  2. Prompt you for your website domain
  3. Create the website in your TrackFox account
  4. Display your tracking script and next steps

Commands

  • trackfox add - Add a website to your dashboard
  • trackfox --version - Show CLI version
  • trackfox --help - Show help information

Configuration

Environment Variables

  • TRACKFOX_API_URL - Override the API endpoint (default: https://trackfox.app)
  • TRACKFOX_CALLBACK_PORT - OAuth callback port (default: 3456)
  • DEBUG - Enable detailed error messages

Development Mode

To test against a local TrackFox instance:

TRACKFOX_API_URL=http://localhost:3000 npx trackfox add

Features

Browser OAuth Authentication - Secure Google OAuth flow
Interactive Prompts - User-friendly domain and name input
Domain Validation - Automatic validation and cleaning
Beautiful Output - Colored terminal output with spinners
Error Handling - Clear error messages and recovery steps
Tracking Script - Instant tracking code generation

Requirements

  • Node.js 18.0.0 or higher
  • A TrackFox account (sign up at trackfox.app)

Example Output

🦊 TrackFox CLI - Add Website

ℹ Starting authentication...

Opening browser for authentication...
If browser doesn't open, visit: https://trackfox.app/api/cli/auth/start?callbackPort=3456

✓ Authenticated!

? Enter your website domain: example.com
? Enter a name for your website: Example

✓ Website created successfully!

┌──────────────────────────────────────────────────────────────────┐
│                           ✓ Success!                              │
│                                                                    │
│  Website: Example                                                 │
│  Domain: example.com                                              │
│  Website ID: abc123                                               │
│                                                                    │
│  Add this tracking code to your website's <head> tag:            │
│                                                                    │
│  <script defer src="https://trackfox.app/script.js"              │
│    data-website-id="abc123" data-domain="example.com"></script> │
│                                                                    │
│  View your analytics at:                                          │
│  https://trackfox.app/dashboard/abc123                           │
└──────────────────────────────────────────────────────────────────┘

Next steps:
  1. Add the tracking script to your website
  2. Visit your dashboard to see analytics
  3. Configure goals and funnels in settings

Troubleshooting

Port Already in Use

If port 3456 is already in use:

TRACKFOX_CALLBACK_PORT=8080 npx trackfox add

Authentication Timeout

If authentication times out after 2 minutes, try again and complete the OAuth flow more quickly.

Cannot Connect to API

Ensure you have internet connectivity and TrackFox is accessible:

curl https://trackfox.app/api/health

Domain Already Exists

If you get "Website with this domain already exists", the domain is already registered in your account. Check your dashboard at trackfox.app/dashboard.

Security

  • Authentication tokens expire after 5 minutes
  • Tokens only allow website creation (limited scope)
  • Callback server only accepts localhost connections
  • All communication uses HTTPS in production

Support

License

MIT License - see LICENSE file for details

Contributing

We welcome contributions! Please see our contributing guidelines.


Made with 💙 by the TrackFox team