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

@gonzui/csheet-cli

v1.0.5

Published

A CLI tool to save and manage cheatsheets for commands and tools locally

Readme

cheatsheet-cli (cs)

A CLI tool for managing command and tool cheatsheets locally.

日本語版 README

Installation

npm install -g @gonzui/csheet-cli

Commands

| Command | Description | |---------|-------------| | cs add <name> | Add a cheatsheet (opens $EDITOR, defaults to vim) | | cs add <name> --file <path> | Add from an existing file | | cs list | List all cheatsheets | | cs show <name> | Display cheatsheet content (with Markdown rendering) | | cs show <name> --raw | Display raw Markdown | | cs search <keyword> | Search by filename and content | | cs edit <name> | Edit a cheatsheet | | cs rm <name> | Delete a cheatsheet (with confirmation) | | cs rm <name> --force | Delete without confirmation | | cs rename <old> <new> | Rename a cheatsheet | | cs rename <old> <new> -f | Rename and overwrite if new name exists | | cs export <name> | Export to current directory | | cs export <name> --out <path> | Export to specified path |

Usage Examples

Add a new cheatsheet

# Open editor to create new cheatsheet
cs add git-commands

# Add from existing file
cs add docker-tips --file ~/notes/docker.md

View cheatsheets

# List all cheatsheets
cs list

# Show with Markdown rendering
cs show git-commands

# Show raw Markdown
cs show git-commands --raw

Search

# Search by name or content
cs search commit

Edit and delete

# Edit in $EDITOR
cs edit git-commands

# Delete with confirmation
cs rm old-cheatsheet

# Delete without confirmation
cs rm old-cheatsheet --force

Export

# Export to current directory
cs export git-commands

# Export to specific path
cs export git-commands --out ~/backup/

Features

  • Markdown Rendering: Syntax highlighting for code blocks, formatted tables, colored headings
  • Full-text Search: Search by cheatsheet name and content
  • Editor Integration: Uses $EDITOR environment variable (defaults to vim)

Samples

Sample cheatsheets are available in the sample/ directory:

sample/
├── en/           # English
│   ├── cc-skills.md    # Claude Code skills
│   ├── cs-help.md      # This CLI help
│   ├── tmux.md         # tmux commands
│   └── vim.md          # Vim commands
└── ja/           # Japanese
    ├── cc-skills.md
    ├── cs-help.md
    ├── tmux.md
    └── vim.md

Add samples to your cheatsheets

# Add English samples
cs add vim --file sample/en/vim.md
cs add tmux --file sample/en/tmux.md
cs add cc-skills --file sample/en/cc-skills.md
cs add cs-help --file sample/en/cs-help.md

# Add Japanese samples
cs add vim --file sample/ja/vim.md
cs add tmux --file sample/ja/tmux.md
cs add cc-skills --file sample/ja/cc-skills.md
cs add cs-help --file sample/ja/cs-help.md

Data Storage

Cheatsheets are stored in ~/.config/cheatsheet-cli/:

~/.config/cheatsheet-cli/
├── data.json      # Metadata
└── sheets/        # Markdown files
    └── {name}.md

Naming Rules

Cheatsheet names can only contain:

  • Alphanumeric characters (a-z, A-Z, 0-9)
  • Hyphens (-)
  • Underscores (_)

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Watch mode
npm run test:watch

License

MIT