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

@boba-cli/icons

v0.1.0-alpha.1

Published

Unicode/nerd font icons based on file type, extension, and directory names

Downloads

85

Readme

@boba-cli/icons

Unicode/nerd font icons based on file type, extension, and directory names.

Icons Demo

Ported from teacup icons.

Features

  • File type indicators (/ for directory, * for executable, etc.)
  • Icon glyphs for common file extensions
  • Special icons for well-known filenames (e.g., Dockerfile, .gitignore)
  • Directory-specific icons (e.g., node_modules, .git)
  • Color information for icons (RGB values)
  • Support for compound extensions (e.g., .test.ts, .d.ts)

Usage

import { getIndicator, getIcon } from '@boba-cli/icons'

// Get indicator for a file type
const indicator = getIndicator(0o040000) // "/" for directory

// Get icon and color for a file
const { glyph, color } = getIcon('example', '.ts', '')
// Returns: { glyph: '\ue628', color: '\x1b[38;2;3;136;209m' }

API

getIndicator(mode: number): string

Returns the indicator character based on file mode bits:

  • / - Directory
  • | - Named pipe
  • @ - Symbolic link
  • = - Socket
  • * - Executable file
  • - Regular file (empty string)

getIcon(name: string, ext: string, indicator: string): { glyph: string; color: string }

Returns the icon glyph and ANSI color code based on:

  1. Filename and extension
  2. File indicator (directory, executable, etc.)
  3. Extension lookup
  4. Sub-extension patterns (e.g., .test.ts)

Icon Types

The package includes icons for:

  • Directories: .git, node_modules, .config, etc.
  • Filenames: Makefile, Dockerfile, package.json, etc.
  • Extensions: .js, .ts, .go, .py, .md, etc.
  • Sub-extensions: .test.ts, .spec.js, .d.ts, etc.

License

MIT