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

ignore-hub

v0.2.3

Published

Interactive OpenTUI wizard to generate .gitignore from github/gitignore

Readme

ignore-hub

Interactive TUI CLI to generate .gitignore from github/gitignore.

Screenshots

Template selection:

Template selection step

Preview + generate:

Preview and generate step

Install

From npm

bun add -g ignore-hub
# or
npm i -g ignore-hub

This package is distributed via npm and supports installation with npm/bun.
The CLI runtime is Bun-native at the moment (via OpenTUI).

If global bin is not on PATH, run directly with:

bunx ignore-hub
bunx ih

Standalone binary (no Bun required for end users)

Build binaries with Bun once, then distribute the generated executable file(s):

# current platform target only
bun run build:bin

Outputs are written to dist/ (for example: dist/ignore-hub-bun-darwin-arm64). To release binaries for multiple platforms, run bun run build:bin on a matching OS/arch runner for each target (for example via CI matrix jobs).

End users can run the binary directly without installing Bun:

./ignore-hub-bun-darwin-arm64 --help

Local install (development)

bun install
bun link

Then run anywhere:

ignore-hub
ih

Usage

ih [options]

ignore-hub and ih are equivalent.

Options:

  • --output <path>: write output file path (default: ./.gitignore)
  • --refresh: force refresh template index from GitHub
  • --stdout: print result to stdout instead of writing file
  • -h, --help: show help
  • -v, --version: print installed version
  • -t, --template <names>: select templates directly (comma-separated or repeated)
  • -a, --auto: detect templates from project structure
  • -s, --simple-sepration: output template section headers as ## Template and skip generated markers
  • --no-interactive: skip interactive TUI and generate directly

Examples:

  • ih -t unity,node
  • ih --auto --no-interactive
  • ih --auto -t java,unity -o .gitignore
  • ih -a -t java,unity -o .gitignore
  • ih -t node -s

TUI keys

  • ↑/↓: move
  • Space: toggle selection
  • Enter: next step / confirm
  • Backspace: delete search text (when searching) or go previous step
  • Ctrl+R: refresh template index
  • q: quit
  • type letters/numbers: quick filter in current step

Auto-detect extensibility

  • --auto uses DEFAULT_PROJECT_TEMPLATE_DETECTION_RULES from src/cli/projectDetector.ts.
  • Each rule is a template id plus a set of marker combinations.
  • A template is matched when any marker combination is fully satisfied.
  • Marker types currently supported:
    • path (required file/directory path, optional expected type)
    • extension (file extension with max recursion depth)

To add a new project-to-template mapping, add a new rule in this list.

Repo

Source code: github/gitignore only.

  • src/data/githubClient.ts: fetches template index and template content
  • src/data/cacheStore.ts: manages ~/.cache/ignore-hub/index.json
  • src/domain/classification.ts: classifies root templates into language / framework
  • src/domain/mergeGitignore.ts: merges selections into an idempotent ### section
  • src/app/*: OpenTUI steps and wizard flow