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

flipagent-cli

v1.0.0

Published

flipagent CLI — log in, drive the API from your shell (search / sold / evaluate / ship / buy / sales / payouts / transactions / messages / offers / disputes / feedback), diagnose your host with `doctor`, and one-command-set-up the flipagent MCP server for

Readme

flipagent-cli

Set up flipagent for AI agents and drive the API from your shell. Zero runtime deps — node built-ins only — so npx -y is fast.

npm install -g flipagent-cli   # or just use npx -y flipagent-cli

Auth (one-time)

# Get a free key at https://flipagent.dev/signup, then:
flipagent login --key fa_free_xxx

# Verify
flipagent whoami

Stored at ~/.flipagent/config.json (mode 0600). Subsequent commands pick it up automatically. Auth precedence: --key flag > FLIPAGENT_API_KEY env > stored config.

Drive the API

# Search active listings (eBay-shape envelope)
flipagent search "canon ef 50mm 1.8" --limit 10

# Search sold listings (last 90 days)
flipagent sold "canon ef 50mm 1.8" --limit 50

# Score one listing — composite (server fetches detail + sold + active)
flipagent evaluate 'v1|123456789|0'

# Forwarder catalog + per-item quote
flipagent ship providers
flipagent ship quote --item 'v1|123456789|0' --weight 500 --dest NY

All commands print JSON to stdout — pipe to jq, redirect to a file, or read from another script.

Set up MCP

flipagent init --mcp

Detects the MCP host config on this machine (Claude Code by default; the installer also recognizes other common stdio hosts), writes the flipagent server entry, and backs up the original config (<path>.bak) on first touch. Restart the host after running.

Re-running is idempotent — only the flipagent entry is replaced.

All commands

flipagent --help (or -h) prints the full reference; the canonical list lives there. Headlines:

# Auth + diagnostics
flipagent login [--key <value>] [--base-url <url>]
flipagent logout
flipagent whoami
flipagent doctor                                         # which features wired + key scope

# Sourcing + decisions
flipagent search <query> [--limit N] [--filter <expr>] [--sort <key>]
flipagent sold <query> [--limit N]
flipagent evaluate <itemId> [--lookback-days N] [--sold-limit N] [--min-net <cents>]
flipagent ship providers
flipagent ship quote --item <id> --weight <g> --dest <state> [--provider <id>]

# Buy
flipagent buy <itemId> [--quantity N] [--variation <id>]

# Sell + finance
flipagent sales list [--status paid|shipped|delivered|refunded|cancelled] [--limit N]
flipagent sales ship <orderId> --tracking <num> --carrier <name>
flipagent payouts list [--limit N]
flipagent transactions list [--type sale|refund|fee|adjustment] [--payout-id <id>] [--limit N]

# Buyer comms + post-sale
flipagent messages list [--type from_ebay|from_members] [--limit N]
flipagent messages thread <conversationId> --type from_ebay|from_members
flipagent messages send (--conversation <id> | --to <username>) --body <text> [--listing <itemId>]
flipagent offers list [--direction incoming|outgoing] [--status pending|accepted|...]
flipagent disputes list [--status open|awaiting_seller|...] [--type return|cancellation|inr|snad|inquiry]
flipagent feedback awaiting
flipagent feedback list [--role buyer|seller] [--rating positive|neutral|negative]

# Setup
flipagent init [--mcp] [--keys] [--key <value>]

Manual MCP setup

If you'd rather paste it yourself, drop this into your host's MCP config:

{
  "mcpServers": {
    "flipagent": {
      "command": "npx",
      "args": ["-y", "flipagent-mcp"],
      "env": { "FLIPAGENT_API_KEY": "fa_free_xxx" }
    }
  }
}

Get a key

flipagent.dev/signup — free tier (1,000 credits one-time, no card).

License

MIT.