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

poclidex

v0.1.5

Published

Interactive CLI Pokedex with fuzzy search, ASCII art sprites, and evolution chains

Readme

Pokedex CLI

An interactive command-line Pokedex application built with TypeScript, featuring fuzzy search and ASCII art sprites.

Poclidex Screenshot

Quick Start (TL;DR)

# Install dependencies
sudo apt-get install chafa  # Ubuntu/Debian
brew install chafa          # macOS

# Install globally
npm install -g poclidex

# Run
poclidex

Features

  • 1000+ Pokemon from all generations
  • Fuzzy search with autocomplete
  • ASCII art sprites (Chafa, truecolor/16M colors)
  • Stats display: base stats, EV yield, abilities, type colors
  • Evolution chain navigation

Prerequisites

  • Node.js 18+ (for ESM support)
  • npm or yarn
  • chafa (for ASCII art sprite rendering)

Installing Chafa

Ubuntu/Debian:

sudo apt-get install chafa

macOS:

brew install chafa

Arch Linux:

sudo pacman -S chafa

Works without Chafa but sprites won't display.

Installation

# 1. Clone or navigate to the repository:
cd pokedex

# 2. Install dependencies:
npm install

# 3. Build the project:
npm run build

# 4. Run the application:
npm start

# Alternatively, build and run in one command:
npm run dev

Usage

Shell Completion (Optional)

Bash:

# bigger completion script, no delay on shell load
poclidex --completion bash >> ~/.bashrc

# or smaller completion script, small delay on shell load
echo -n 'eval "$(poclidex --completion bash)"' >> ~/.bashrc

Zsh:

# bigger completion script, no delay on shell load
poclidex --completion zsh >> ~/.zshrc

# or smaller completion script, small delay on shell load
echo -n 'eval "$(poclidex --completion zsh)"' >> ~/.zshrc

Technology Stack

  • TypeScript - Type-safe development
  • Blessed - Terminal UI framework
  • pokedex-promise-v2 - Pokemon API wrapper
  • fuzzysort - Fuzzy search and autocomplete
  • Chafa - Image to ASCII conversion

Development

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run the compiled application
  • npm run dev - Build and run in one command
  • npm run watch - Watch mode for development
  • npm run debug-colors - Test and debug terminal color support

Data Sources

All Pokemon data is fetched from the PokeAPI v2, a free and open Pokemon API.

Troubleshooting

Color Support Issues

Sprites look washed out or limited to 256 colors:

The app auto-detects your terminal's color capabilities. Truecolor (16M colors) is recommended.

Check your terminal's color support:

npm run debug-colors

Or run the standalone test:

./scripts/test-colors.sh

Fix truecolor support:

  1. Using tmux? Add to ~/.tmux.conf:

    set -g default-terminal "${TERM}"
    set -a terminal-features 'xterm-256color:RGB'

    Then reload: tmux source-file ~/.tmux.conf

  2. Terminal emulators:

    • macOS: iTerm2, Kitty, Alacritty, WezTerm
    • Linux: Kitty, Alacritty, GNOME Terminal 3.x+, Konsole
    • Windows: Windows Terminal, WezTerm
  3. Set environment variable:

    export COLORTERM=truecolor
  4. Force color mode:

    # Force truecolor
    export POKEDEX_COLORS=full
    npm start
    
    # Or force 256 colors
    export POKEDEX_COLORS=256
    npm start

Debug Chafa commands:

DEBUG_COLORS=1 npm start

Sprites not displaying

  • Ensure Chafa is installed: chafa --version
  • Check that sprites are downloading (requires internet connection)

Application crashes on search

  • Wait for Pokemon data to finish loading
  • Ensure you have a stable internet connection for API calls

Display issues

  • Try resizing your terminal window (minimum 80x24 recommended)
  • Use a modern terminal emulator with Unicode support
  • If using SSH, ensure COLORTERM is forwarded or set on the remote machine

Contributing

Possible additions:

  • type effectiveness calculator
  • shiny sprite toggle

License

Zero-Clause BSD

Acknowledgments

  • PokeAPI for the comprehensive Pokemon database
  • Blessed for the terminal UI framework
  • Chafa for ASCII art rendering
  • Pokémon is © Nintendo/Creatures Inc./GAME FREAK inc.