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

postpilot-cli

v2.0.0

Published

CLI for PostPilot - AI-powered blog generation and management

Readme

PostPilot CLI

CLI tool for the PostPilot AI-powered blog generation platform. Generate, manage, and publish SEO-optimized blog content directly from your terminal.

Installation

npm install -g postpilot-cli

Or run directly with npx:

npx postpilot-cli

Quick Start

# Authenticate with your API key
postpilot login <your-api-key>

# Generate a blog post
postpilot blog generate --industry Technology --audience "Software Developers"

# List your posts
postpilot blog list

Commands

postpilot login <api-key>

Authenticate with PostPilot. Your API key is saved to ~/.postpilot/config.json.

postpilot blog generate

Generate a new AI-powered blog post.

| Option | Description | Default | |--------|-------------|---------| | -i, --industry <industry> | Industry / niche (required) | | | -a, --audience <audience> | Target audience (required) | | | -t, --tone <tone> | Content tone: professional, casual, technical | professional | | -k, --keywords <keywords> | Comma-separated keywords | | | -p, --prompt <prompt> | Custom prompt for the AI | | | -w, --word-count <count> | Target word count | 2000 | | -d, --domain-id <id> | Domain ID to publish to | | | --publish | Auto-publish after generation | false | | -c, --country <country> | Target country (e.g. US, UK, global) | global | | --trends <trends> | Comma-separated trending topics to base the article on | | | --show-trends | Show available trending topics for the industry/country | false |

Examples:

# Basic generation
postpilot blog generate -i "Digital Marketing" -a "Small Business Owners"

# With trending topics
postpilot blog generate -i Technology -a Developers --trends "AI Agents, WebAssembly, Edge Computing" --country US

# Preview trends first, then generate
postpilot blog generate -i Healthcare -a "Medical Professionals" --show-trends
postpilot blog generate -i Healthcare -a "Medical Professionals" --trends "Telemedicine, AI Diagnostics" --country US

# Generate and publish immediately
postpilot blog generate -i E-commerce -a "Online Retailers" --publish -d <domain-id>

postpilot blog list

List your blog posts.

| Option | Description | Default | |--------|-------------|---------| | -p, --page <page> | Page number | 1 | | -l, --limit <limit> | Posts per page | 10 | | -s, --status <status> | Filter: draft, published, scheduled | all |

postpilot blog publish <id>

Publish a draft blog post by ID.

postpilot trends list

Discover trending topics by industry and country.

| Option | Description | Default | |--------|-------------|---------| | -i, --industry <industry> | Industry / niche | General | | -c, --country <country> | Target country (e.g. US, UK, global) | global | | --limit <limit> | Number of trends to show | 20 |

Example:

postpilot trends list -i Technology -c US

postpilot domains list

List all your connected domains with their verification status.

postpilot domains add <domain>

Add a new domain (e.g. example.com). Shows DNS setup instructions after adding.

postpilot stats

Show account usage statistics including total posts, published count, average SEO score, and domains.

Configuration

The CLI stores your API key in ~/.postpilot/config.json:

{
  "apiKey": "your-api-key",
  "apiUrl": "https://postpilot.gg/api/v1"
}

Development

git clone <repo-url>
cd postpilot-cli
npm install
npm run build  # compile to dist/

Running without building (Windows PowerShell)

Use the PowerShell dev script (bypasses npm arg forwarding issues):

.\dev.ps1 trends list --industry Technology --country US
.\dev.ps1 blog generate --industry Technology --audience Developers
.\dev.ps1 login <your-api-key>

Or use npx directly:

npx ts-node src/index.ts trends list --industry Technology --country US

Running without building (cmd / Git Bash / Linux)

npm run dev -- trends list --industry Technology --country US
npm run dev -- blog generate --industry Technology --audience Developers

License

MIT