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

zsh-alias-manager

v1.5.1

Published

A CLI tool to manage zsh aliases with tags, search, and interactive mode

Readme

zsh-alias-manager (zam)

A CLI tool to manage your zsh aliases with tags, search, backups, project window layouts, and an interactive mode.

Installation

npm install -g zsh-alias-manager

Usage

# Interactive mode (default)
zam

# Add an alias
zam add gs "git status"
zam add gp "git push" --tag git

# List aliases
zam list
zam list --tag git

# Search with highlighting
zam search git

# Rename an alias
zam rename gs gst

# Remove an alias
zam remove gst

# Edit in $EDITOR
zam edit gs

# Backup & restore
zam backup
zam backups
zam restore ~/.zam/backups/zam-backup-2024-01-01.bak

# Import existing aliases from .zshrc
zam import

# Capture the current visible windows as a reusable layout template
zam layout capture dev

# Create a project from a template and generate alias `myapp`
zam project create myapp --template dev --cwd ~/Developer/myapp
myapp

# Capture a project-specific layout and generate alias `api`
zam project capture api --cwd ~/Developer/api --alias api
api

# Dry run (simulate without changes)
zam --dry-run add test "echo test"

Features

  • Interactive mode - Fuzzy search and menu-driven interface
  • Tags - Organize aliases by category (git, docker, etc.)
  • Search - Find aliases with highlighted matches
  • Backups - Automatic backup management in ~/.zam/backups/
  • Import - Migrate existing aliases from .zshrc
  • Project layouts - Capture macOS windows, create reusable templates, and open project apps in position
  • Dry run - Preview changes before applying

Project Window Layouts

Layouts are macOS-only in v1 and use built-in AppleScript/System Events automation. No extra packages are required, but your terminal app must have Accessibility permission:

  1. Open System Settings → Privacy & Security → Accessibility
  2. Enable your terminal app, such as Terminal, iTerm, or VS Code
  3. Re-run the zam layout capture or zam project open command

Capture asks which currently visible desktop/display group and which windows to include. Hidden macOS Spaces are not visible to the built-in backend, so move to each Space and capture the windows you want from there.

You can also run zam and choose Project Layouts for the guided menu.

# Save the currently positioned visible windows as a template
zam layout capture dev

# Inspect templates
zam layout list
zam layout show dev

# Create a project using the same window layout in a different directory
zam project create webapp --template dev --cwd ~/Developer/webapp

# Capture a one-off project layout
zam project capture backend --cwd ~/Developer/backend

# Open project apps and restore window positions
zam project open webapp

# Manage projects
zam project list
zam project show webapp
zam project remove webapp

Generated project aliases are normal managed zsh aliases. For example, zam project create webapp --template dev --cwd ~/Developer/webapp creates webapp='zam project open webapp'.

File Locations

  • ~/.zsh_aliases_managed - Your aliases (sourced by zshrc)
  • ~/.zam/metadata.json - Tags and metadata
  • ~/.zam/layouts.json - Project layouts and templates
  • ~/.zam/backups/ - Backup files

License

MIT