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

@nithishz/clix

v1.2.5

Published

A CLI companion tool that explains commands flag-by-flag, generates commands from natural language, and builds your personal command library.

Downloads

75

Readme

clix

An CLI tool that explains commands flag-by-flag, generates commands from natural language using AI, and builds your personal command library.

CLI Demo Recording

clix demo


Features

  • Explain any shell command — flag by flag, with an optional beginner mode. Beginner mode would explain the command in even more simpler terms
  • Generate a command from plain English description
  • Update your AI model and token settings with an interactive wizard
  • Save commands locally with tags and descriptions. This could be reused in the future
  • Browse your saved commands with search and tag filters

Prerequisites

  • Node.js ≥ 18.0.0
  • An API key from one of the supported providers:

Installation

Global Install (Recommended)

Install globally to use clix from anywhere in your terminal:

npm install -g @nithishz/clix

Then run:

clix explain "ls -la"

Local Install (Inside a Project)

If you prefer to install it locally inside a Node.js project:

npm install @nithishz/clix

Then run with:

npx clix explain "ls -la"

One-Time Usage (No Install)

You can also run it directly without installing:

npx @nithishz/clix explain "ls -la"

Getting Started

Run the interactive setup to choose your AI provider, model, and enter your API key (masked):

clix init

This allows you to:

  1. Provider selection — Anthropic, OpenAI, or Google Gemini
  2. Model selection — pick from available models for your chosen provider
  3. API key — enter your provider-specific API key

Your configuration is saved to ~/.clix/config.json and persists across sessions.

Supported Providers & Models

| Provider | Models | Env Variable | | ----------------- | ----------------------------------------------------------------------- | ------------------- | | Anthropic | Claude 4.6 Sonnet, Claude 4.6 Opus, Claude Haiku 4.5 | ANTHROPIC_API_KEY | | OpenAI | GPT-5.4, GPT-5.4 Pro, GPT-5 Mini, GPT-4o | OPENAI_API_KEY | | Google Gemini | Gemini 3.1 Pro, Gemini 3.1 Flash-Lite, Gemini 2.5 Flash, Gemini 2.5 Pro | GOOGLE_API_KEY |

Alternative Configuration

You can also configure API Keys for your model via environment variables instead of clix init:

# Anthropic
export ANTHROPIC_API_KEY=your-api-key-here

# OpenAI
export OPENAI_API_KEY=your-api-key-here

# Google Gemini
export GOOGLE_API_KEY=your-api-key-here

Commands

init — Set up your AI provider, model and API Key

clix init

Interactive setup wizard to configure your preferred AI provider, model, and API key. Run this once after installation, or anytime you want to switch providers or update model or update API Key.


explain — Understand any shell command

clix explain "<command>"
clix explain "<command>" --beginner

Breaks down what a command does, flag by flag. Add --beginner (or -b) for a plain-English explanation with examples.

Examples:

clix explain "find . -name '*.log' -mtime +30"
clix explain "docker ps -a --filter status=exited" --beginner
clix explain "git log --oneline --graph --all" -b

generate — Create a command from plain English

clix generate "<description>"

Describe what you want to do and clix generates the correct shell command.

Examples:

clix generate "find all files larger than 100MB and sort by size"
clix generate "kill the process running on port 3000"
clix generate "compress all jpg files in the current directory"

update — Change AI model or token settings

clix update

Launches an interactive prompt to update the AI model and max token configuration stored in ~/.clix/config.json.


save — Save a command for later

clix save "<command>"
clix save "<command>" --tag <tag> [<tag>...]
clix save "<command>" --description "<description>"

Saves a command to your local library. You can optionally add tags and a description to make it easier to find later.

Examples:

clix save "docker ps -a --filter status=exited"
clix save "lsof -i :3000" --tag networking ports --description "Find what is using a port"
clix save "git log --oneline --graph --all" -t git history

saved — View and manage saved commands

clix saved                        # List all saved commands
clix saved --tag <tag>            # Filter by tag
clix saved --search <keyword>     # Search by keyword
clix saved --tags                 # List all tags in use
clix saved --delete <id>          # Delete a command by ID

Examples:

clix saved
clix saved --tag networking
clix saved --search docker
clix saved --tags
clix saved --delete 3

Future Features

  • Custom model support (bring your own model / self-hosted LLMs)