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

@laabroms/alias-cli

v0.1.8

Published

Interactive TUI for managing shell aliases

Downloads

785

Readme

Alias CLI

 █████╗ ██╗     ██╗ █████╗ ███████╗
██╔══██╗██║     ██║██╔══██╗██╔════╝
███████║██║     ██║███████║███████╗
██╔══██║██║     ██║██╔══██║╚════██║
██║  ██║███████╗██║██║  ██║███████║
╚═╝  ╚═╝╚══════╝╚═╝╚═╝  ╚═╝╚══════╝

Interactive terminal UI for managing shell aliases

npm version GitHub License: MIT

Demo

Demo

Features

  • Interactive TUI — keyboard-driven, no mouse needed
  • 📝 Add/Edit/Delete aliases with clean modal dialogs
  • 🔍 Real-time search — filter aliases as you type with arrow key navigation
  • 🔍 Live preview — see your alias before saving
  • 💾 Auto-backup — creates .zshrc.backup before changes
  • 🎯 Visual focus — clearly see which field you're editing
  • 🎨 Color-coded UI — easy to scan and navigate
  • 📦 Zero config — works with .zshrc or .bashrc out of the box

Installation

Quick Install (bash)

curl -fsSL https://raw.githubusercontent.com/laabroms/alias-cli/main/install.sh | bash

npm (global)

npm install -g @laabroms/alias-cli

npx (no install)

npx @laabroms/alias-cli

From source

git clone https://github.com/laabroms/alias-cli.git
cd alias-cli
npm install
npm run dev

Usage

Run the CLI:

alias-cli

Keyboard Shortcuts

Main Screen:

  • ↑/↓ — Navigate aliases
  • a — Add new alias
  • e — Edit selected alias
  • d or Del — Delete selected alias
  • / — Search/filter aliases
  • c — Clear search filter
  • q — Quit

Search Mode:

  • Type to filter aliases in real-time
  • ↑/↓ — Navigate filtered results
  • Enter — Edit selected alias
  • Esc — Close search

Add/Edit Modal:

  • Tab — Switch between Name and Command fields
  • Enter — Save
  • Esc — Cancel

Delete Confirmation:

  • y or Enter — Confirm delete
  • n or Esc — Cancel

Example

Create a quick commit alias:

  1. Run alias-cli
  2. Press a to add
  3. Name: gc
  4. Command: git add . && git commit -m
  5. Press Enter to save
  6. Press q to quit
  7. Paste the command (auto-copied to clipboard!) and press Enter
  8. Use it: gc "feat: add new feature"

How It Works

  1. Loads aliases from your .zshrc or .bashrc
  2. Displays them in an interactive list
  3. Saves changes back to your shell config
  4. Backups the original file before writing

All aliases are written to the end of your shell config with a comment:

# Aliases managed by alias-cli
alias gs="git status"
alias gc="git add . && git commit -m"
alias gp="git push origin main"

After making changes, the CLI automatically copies the source command to your clipboard — just paste and run!

Requirements

  • Node.js >= 18.0.0
  • Terminal with ANSI color support

Tech Stack

  • Ink — React renderer for CLIs
  • ink-text-input — Text input component
  • TypeScript — Type safety
  • tsup — Fast bundler
  • tsx — TypeScript execution

Contributing

PRs welcome! Please open an issue first to discuss what you'd like to change.

License

MIT © Lucas Abroms