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

@swotpal/cli

v0.1.0

Published

The world's only SWOT analysis tool with a CLI. Generate AI-powered SWOT analyses from your terminal.

Readme

@swotpal/cli

The world's only SWOT analysis tool with a CLI.

Generate AI-powered SWOT analyses from your terminal. Powered by SWOTPal.

Installation

npm install -g @swotpal/cli

Quick Start

# Set your API key
swotpal login              # Opens browser to get your key
swotpal config set-key     # Paste your API key

# Generate a SWOT analysis
swotpal analyze "Tesla"

# Compare two companies
swotpal compare "Apple" "Samsung"

# Browse 33 built-in examples (offline, no API key needed)
swotpal examples
swotpal examples tesla

Commands

swotpal analyze <topic>

Generate a SWOT analysis for any company, brand, product, or topic.

swotpal analyze "Netflix"
swotpal analyze "Tesla 2026" --language ja
swotpal analyze "OpenAI" --json | jq '.strengths'

swotpal compare <left> <right>

Compare two entities side-by-side with SWOT analysis for each.

swotpal compare "Tesla" "BYD"
swotpal compare "ChatGPT" "Claude" --markdown

swotpal list

List your saved SWOT analyses.

swotpal list
swotpal list --page 2 --limit 20
swotpal list --json

swotpal show <id>

Show details of a specific saved analysis.

swotpal show abc123
swotpal show abc123 --json

swotpal examples [id]

Browse 33 built-in SWOT analysis examples. Works offline, no API key required.

swotpal examples                      # List all
swotpal examples --industry fashion   # Filter by industry
swotpal examples --search nvidia      # Search by name
swotpal examples tesla                # Show specific example

swotpal config

Manage CLI configuration.

swotpal config show                   # Show current config
swotpal config set-key                # Set API key interactively
swotpal config set-language ja        # Set default language

swotpal login

Open the SWOTPal dashboard in your browser to get an API key.

Global Options

| Option | Description | |--------|-------------| | --json | Output as machine-readable JSON | | --markdown | Output as Markdown | | --language <lang> | Set analysis language (en, ja, zh_TW, ko, etc.) | | -V, --version | Show version | | -h, --help | Show help |

Authentication

Get your API key at swotpal.com/dashboard, then:

# Option 1: Environment variable
export SWOTPAL_API_KEY=sk_live_...

# Option 2: CLI config (persisted)
swotpal config set-key

Output Formats

# Pretty terminal output (default)
swotpal analyze "Tesla"

# JSON (pipe to jq, save to file, etc.)
swotpal analyze "Tesla" --json > tesla-swot.json

# Markdown (great for docs and READMEs)
swotpal analyze "Tesla" --markdown >> strategy.md

Supported Languages

en, ja, zh_TW, zh, ko, vi, pt, de, es, fr, it, ru

Requirements

License

MIT