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

@short.io/cli

v1.0.0

Published

Official CLI for Short.io URL shortening and link management

Downloads

78

Readme

@short.io/cli

Official CLI for Short.io URL shortening and link management.

Installation

npm install -g @short.io/cli

Requires Node.js >= 20.

Authentication

Set your API key (get it from Short.io dashboard):

# Save to ~/.shortio/config.json (persistent)
shortio config set-api-key YOUR_API_KEY

# Or use an environment variable
export SHORT_IO_API_KEY="YOUR_API_KEY"

# Or pass per-command
shortio --api-key YOUR_API_KEY domain list

Priority: --api-key flag > SHORT_IO_API_KEY env > config file.

Usage

Links

# Create a short link
shortio link create --domain example.com --url https://example.com/long-page

# Create with custom path, title, and tags
shortio link create --domain example.com --url https://example.com \
  --path my-link --title "My Link" --tags marketing,social

# List links for a domain
shortio link list --domain-id 12345

# Get link details
shortio link get --id lnk_abc123

# Expand a link by domain and path
shortio link expand --domain example.com --path my-link

# Update a link
shortio link update --id lnk_abc123 --url https://new-url.com --title "New Title"

# Delete a link
shortio link delete --id lnk_abc123

Domains

# List all domains
shortio domain list

# Get domain details
shortio domain get --id 12345

Bulk Operations

# Create links from a CSV file
shortio bulk create --domain example.com --file links.csv --url-column 0

# With custom columns and options
shortio bulk create --domain example.com --file links.csv \
  --url-column 0 --path-column 1 --title-column 2 \
  --delimiter ";" --skip-lines 1 --allow-duplicates

# Delete multiple links
shortio bulk delete --ids lnk_abc,lnk_def,lnk_ghi

# Archive multiple links
shortio bulk archive --ids lnk_abc,lnk_def

QR Codes

# Generate a QR code
shortio qr generate --link-id lnk_abc123

# Save QR code to file
shortio qr generate --link-id lnk_abc123 --output qr.png

# Bulk QR code generation
shortio qr bulk --link-ids lnk_abc,lnk_def,lnk_ghi

Geographic Targeting

# Set a country redirect
shortio geo set --link-id lnk_abc123 --country US --url https://us.example.com

# Set a region redirect
shortio geo set --link-id lnk_abc123 --country US --region CA --url https://ca.example.com

# Remove a country redirect
shortio geo delete --link-id lnk_abc123 --country US

# Remove a region redirect
shortio geo delete --link-id lnk_abc123 --country US --region CA

Configuration

# Save API key
shortio config set-api-key YOUR_API_KEY

# Show current config (key is masked)
shortio config show

Global Options

| Option | Description | |--------|-------------| | --api-key <key> | Short.io API key | | --json | Output as JSON | | -V, --version | Show version | | -h, --help | Show help |

Claude Code Plugin

This project includes a Claude Code plugin that lets you manage Short.io links using natural language directly from your terminal.

Install from marketplace

# Add the marketplace (one-time)
claude /plugin marketplace add Short-io/shortio-cli

# Install the plugin
claude /plugin install shortio

Install locally

# Clone and set up the CLI
git clone https://github.com/Short-io/shortio-cli.git
cd shortio-cli
npm install && npm run build && npm link

# Test the plugin locally
claude --plugin-dir .

Setup

Configure your API key (get it from Short.io dashboard):

shortio config set-api-key YOUR_API_KEY

Usage

The /shortio slash command accepts natural language:

/shortio list all my domains
/shortio create a link for example.com pointing to https://google.com
/shortio show links for domain 12345
/shortio generate a QR code for link lnk_abc123 and save to qr.png
/shortio set a US redirect for link lnk_abc123 to https://us.example.com
/shortio delete links lnk_abc,lnk_def

Plugin structure

.claude-plugin/
  plugin.json            # Plugin manifest
  marketplace.json       # Marketplace metadata
skills/
  shortio/
    SKILL.md             # Skill definition

Development

npm install
npm run build
node dist/bin.js --help

License

ISC