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

@flopost/cli

v0.2.0

Published

CLI for the Flopost content OS — log in, manage API keys, install as an MCP server in Claude Code / Cursor / Crewly.

Readme

@flopost/cli

Command-line tool for Flopost — log in, manage API keys, and install Flopost as an MCP server in your agent (Claude Code, Cursor, Crewly).

npm i -g @flopost/cli
flopost login
flopost mcp install claude-code

Commands

| Command | What it does | | --- | --- | | flopost login | Browser-mediated handshake; stores key at ~/.flopost/credentials.json (mode 0600). | | flopost login --device-code | Same flow, but prints a short code instead of auto-opening the browser. Useful over SSH. | | flopost login --paste | Print a URL → authorize on any device (phone is fine) → paste the displayed key back into the CLI. No polling. | | flopost logout | Clears local credentials and revokes the key on the server. | | flopost whoami | Prints the identity the current key resolves to. | | flopost keys list | List your active API keys. | | flopost keys create <name> | Create a new key (plaintext shown ONCE). | | flopost keys revoke <id> | Revoke a key by id. | | flopost mcp install <client> | Write MCP config for claude-code / cursor / crewly / print. |

How auth works

flopost login runs the slice 7a bootstrap handshake:

  1. CLI calls POST /api/cli-auth/initiate and gets a short-lived session_id + a human user_code.
  2. CLI opens the browser to https://flopost.io/cli-login?session=<id>.
  3. You sign in, see what's being authorized (client, age, IP, UA), and click Authorize.
  4. Server mints a long-lived API key, encrypts the plaintext at rest in the session record, marks ready.
  5. CLI's poll loop receives the plaintext exactly once; the session doc is then deleted.

The CLI stores the key at ~/.flopost/credentials.json. Every subsequent CLI call adds X-Flopost-Api-Key: <key> to the request.

Env vars

| Var | Default | Use | | --- | --- | --- | | FLOPOST_API_URL | https://services.flopost.io | Override for local dev / staging. | | FLOPOST_WEB_URL | https://flopost.io | Override the browser-side origin used in device-flow prompts. | | FLOPOST_CREDENTIALS_PATH | ~/.flopost/credentials.json | Override the credentials file (testing). | | NO_COLOR | unset | Disable ANSI colors in output. |

MCP install

flopost mcp install claude-code   # prints the `claude mcp add ...` command
flopost mcp install cursor        # writes ~/.cursor/mcp.json
flopost mcp install crewly        # writes ~/.crewly/mcp.json
flopost mcp install print         # prints the canonical JSON snippet

Manual config (any MCP-speaking client):

{
  "mcpServers": {
    "flopost": {
      "url": "https://services.flopost.io/api/mcp",
      "headers": { "X-Flopost-Api-Key": "<your-key>" }
    }
  }
}

Build from source

cd cli
npm install
npm run build
node dist/index.js --help