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

stage-tui

v1.1.3

Published

Minimalist TUI Git client

Readme

Stage [Beta]

A calm, opinionated Git TUI.

Inspired by GitHub Desktop. Built with OpenTUI.

Stage keeps the core Git loop focused: review changes, stage with intent, commit clearly, and move on.

What it does:

  • Diff-first workflow with per-file stage/unstage
  • Fast branch switching and commit history view
  • Optional AI-generated conventional commits

Get Started

Prerequisite: Bun

Install:

bun add -g stage-tui

Run:

stage

Debug with your local checkout from any repo:

export STAGE_DEV_PATH=/absolute/path/to/stage-tui
stage --dev

Use

stage            # launches immediately and updates in background for next run
stage --dev      # use local checkout at STAGE_DEV_PATH
stage update     # update global install using the same package manager used to install stage
stage update --dry-run   # show detected package manager + update command only

AI commit evals:

bun run eval:ai
bun run eval:ai -- --path src/hooks/use-git-tui-keyboard.ts
bun run eval:ai -- --commit 56d030f072853619483abaf79c57e9104a143d9d
bun run eval:ai -- --commit 56d030f072853619483abaf79c57e9104a143d9d --verbose
  1. Model and output contract Stage asks the AI for a commit title in a strict structure: { type, optional scope, description }.
    Then it converts that into a normal Conventional Commit line like refactor(ui): simplify sync dialog.

  2. Context construction (single budget) Stage builds one text context for the AI that includes:

  • which files changed
  • what kind of files they are (docs/tests/config/code)
  • how much changed in each file (+added and -removed lines)
  • key snippets from diffs
  • which folders/modules changed the most
    ai.max_input_tokens is the only user setting for context size.

line deltas = lines added and removed. Example: +120 -40.

  1. Diff handling Before sending to AI, Stage compresses diffs to the important parts.
    If a file diff is huge or unreadable, Stage skips that file’s diff body instead of failing.
    Stage also spreads context space across files so one giant file does not drown out everything else.

  2. Candidate generation and local reranking Stage starts with one fast candidate title, then retries only if needed.
    Stage scores candidates locally (without another AI model) based on:

  • whether the title matches the main changed terms
  • whether the commit type looks right (feat/fix/refactor)
  • simple wording quality checks
    Titles that miss the biggest change themes are rejected.
  1. Final validation Final title must match Conventional Commit format and max length.
    If all candidates are weak, Stage does one more retry with a focused hint.

  2. Eval mode (bun run eval:ai -- --verbose) eval:ai replays a commit in a temp worktree and shows what title the AI would generate.
    --verbose also shows diagnostics like:

  • token usage (used vs max)
  • whether context was trimmed
  • how many big files were skipped
  • top changed folder groups

Configuration

Config file path:

  • ${XDG_CONFIG_HOME:-~/.config}/stage/config.toml

Stage creates this file on first launch.

Optional overrides:

  • STAGE_CONFIG=/path/to/config.toml
  • ./.stage.toml (repo-local)

Theme behavior:

  • ui.theme = "auto" follows OS appearance (default)
  • ui.theme = "dark" or ui.theme = "light" forces a mode
[ui]
diff_view = "unified"                # "unified" | "split"
theme = "auto"                       # "auto" | "dark" | "light"
hide_whitespace_changes = true
show_shortcuts_hint = true

[history]
limit = 200

[git]
auto_stage_on_commit = true

[editor]
command = ""                          # e.g. "code", "cursor", "zed"
args = ["{file}"]                     # placeholders: {file}, {line}

[ai]
enabled = false
provider = "cerebras"                # currently only supported provider
api_key = ""                         # required when enabled = true
model = "gpt-oss-120b"
reasoning_effort = "low"             # "low" | "medium" | "high"
max_input_tokens = 48000
  • ?: toggle shortcuts overlay
  • b: change branch
  • h: open commit history
  • c: open commit dialog (or AI auto-commit when enabled)
  • space: include/exclude selected file for commit
  • ↑ / ↓: move file selection
  • r: refresh
  • f: fetch
  • p: pull
  • u: merge remote main into current branch
  • ctrl+p: push
  • esc: close dialog (or exit from main view)

Credits