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

launchr-cli

v1.2.0

Published

Config-driven URL launcher CLI built with Node.js + zx

Readme

launchr CLI

launchr

launchr is a configuration-driven CLI that turns typed flags into URLs and opens them in your default browser.

Install via npm

launchr requires Node.js 20+.

Install globally:

npm install -g launchr-cli
launchr help

Run without installing globally:

npx launchr-cli help

Local development instructions are in CONTRIBUTION.md.

Product Features

  • Configuration-driven custom commands defined in JSON.
  • Interactive command creation with launchr add for command metadata, URL template, and parameter definitions.
  • Typed runtime parameters with support for string, integer, boolean, and single-choice-list.
  • Short-flag interface for all parameters (for example -q, -e, -t).
  • Optional interactive mode with -i / --interactive for prompting missing required parameters.
  • Dynamic help and usage output for both built-in and custom commands.
  • URL templating with named placeholders (for example {query}) mapped to parameter keys.
  • Automatic config bootstrap prompt when the config file does not exist.
  • Strong validation for config schema, placeholder integrity, unknown flags, required values, types, and allowed values.

Built-in Commands

launchr
launchr help
launchr list
launchr add
launchr --interactive <custom-command> [flags]
launchr <custom-command> help
launchr <custom-command> [flags]

launchr init remains available as a deprecated alias in v1.x and will be removed in v2.0.0.

Configuration

Configuration is stored at:

~/.launchr-configurations/launchr-commands.json

If the file is missing, launchr prompts to create it. If you decline, the CLI exits with:

Configuration file is required to use this CLI.

Zsh Completion

Generate the completion function:

mkdir -p ~/.zsh/completions
launchr completion zsh > ~/.zsh/completions/_launchr

Add this to ~/.zshrc if it is not already present:

fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit
compinit

After reloading your shell, launchr <TAB> completes built-in commands and your saved command names from ~/.launchr-configurations/launchr-commands.json.

Interactive Mode

Use -i or --interactive before the custom command to prompt for missing required parameters instead of exiting immediately:

launchr -i grafana -q error

This keeps the default behavior strict for scripts and automation, while still allowing interactive data entry in a terminal.

Command Definition Example

{
  "grafana": {
    "description": "some useful information",
    "url": "https://grafana.com/{environments}/{query}/{timeframe}",
    "parameters": {
      "environments": {
        "type": "single-choice-list",
        "flag": "e",
        "defaultValue": "staging",
        "required": true,
        "values": ["staging", "production"]
      },
      "query": {
        "type": "string",
        "flag": "q",
        "defaultValue": "error",
        "required": true
      },
      "timeframe": {
        "type": "single-choice-list",
        "flag": "t",
        "defaultValue": "5m",
        "required": true,
        "values": ["5m", "10m", "1h", "6h"]
      }
    }
  }
}

Usage Example

launchr list
launchr grafana help
launchr grafana -e production -q error -t 5m
launchr -i grafana -q error