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

@alphafox/cli

v0.3.22

Published

AlphaFox CLI — Agent/Human entry for the public Application API.

Readme

alphafox-cli

AlphaFox CLI (alphafox) — Agent and human entry for the versioned Public Application API on alphafox-web.

Homepage: https://alphafoxai.github.io/alphafox-cli/

Install

Pick one of the following. Both install the CLI and register Agent Skills. npm install -g @alphafox/cli alone does not install Skills.

Method 1 — Manual wizard

npx @alphafox/cli@latest install

This installs @alphafox/cli globally, runs npx skills add into detected agents (Cursor, Claude Code, Codex, …), and may prompt for alphafox auth login --browser. Restart the AI tool afterwards so Skills load.

Method 2 — Install via Agent

Copy and send this to Cursor / Claude Code / Codex / Trae:

帮我安装 AlphaFox CLI:https://github.com/alphafoxai/alphafox-cli/blob/main/docs/alphafox-cli-installation-guide.md
Help me install AlphaFox CLI: https://github.com/alphafoxai/alphafox-cli/blob/main/docs/alphafox-cli-installation-guide.md

The Agent follows that guide (npm install -g, alphafox skills sync, login, doctor). Restart the AI tool when it finishes.

Update

CLI and Skills are one verified release unit:

alphafox update --check
alphafox update
alphafox skills status

Ordinary CLI commands check npm at most once every 24 hours and only print a stderr notice when a newer version exists. They never auto-upgrade.

alphafox update upgrades the npm package and then syncs the exact Skills bundle shipped inside it. It never updates Skills independently from GitHub. Locally modified Skills are reported and preserved; use alphafox skills sync --force --yes only when you intend to replace them. Restart the AI tool after a sync.

Uninstall

This is not an alphafox subcommand. The script removes the global npm package, Agent Skills (including Claude / Cursor / Codex / Grok links), local config, login tokens, and Engine backtest caches. It does not delete server-side traders or account data.

curl -fsSL https://raw.githubusercontent.com/alphafoxai/alphafox-cli/main/scripts/uninstall.cjs | node -- --yes

Preview first:

curl -fsSL https://raw.githubusercontent.com/alphafoxai/alphafox-cli/main/scripts/uninstall.cjs | node -- --dry-run

From a git checkout:

node scripts/uninstall.cjs --dry-run
node scripts/uninstall.cjs --yes

Restart AI tools afterwards so Skills unload.

Quick start

After Method 1 or 2:

alphafox version
alphafox doctor
alphafox auth login --no-wait          # Device Flow (headless-friendly)
alphafox auth login --device-code <code>
alphafox whoami
alphafox schema me.whoami
alphafox api GET /api/v1/me

Security

  • Tokens live in the OS keychain (or controlled test injection). Never in config files or --token argv.
  • Profiles: production (default), staging, local — isolated issuer/audience/client (ADR 0003).
  • High-risk writes require --yes. Automation tokens are deferred (ADR 0004).
  • Raw api only hits allowlisted /api/v1/* facade paths.
  • Writes validate --body / --config @file against the catalog schema before HTTP. Agents must alphafox schema <operationId> first and must not invent fields. Large objects use --config @file, not argv.

Skills

Co-versioned Agent Skills live under skills/. The entry skill is skills/alphafox (name: alphafox): it routes to domain skills. API-oriented skills then use public operationIds; an explicit local-execution skill may call its co-versioned built-in command.

alphafox install (and the Agent install guide) verify the packaged Skills manifest, copy it into ~/.agents/skills, and link each Skill into ~/.claude/skills (plus ~/.cursor/skills / ~/.codex/skills when those agents exist). Use alphafox skills status to inspect missing, stale, modified, or unlinked Skills and alphafox skills sync to repair safe drift — including Claude Code links when the canonical bundle is already current.

Docs

Development

pnpm install
pnpm build
pnpm test
node dist/cli.js version

License

MIT