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

@standardagents/sc-github-status-plugin

v0.2.2

Published

Repository and worktree status in Standard Code pane footers

Readme

Git status

Public npm package: @standardagents/sc-github-status-plugin.

standard plugin install @standardagents/sc-github-status-plugin --accept-capabilities surfaces,events

The package uses the published Standard Code plugin SDK. Its plugin ID stays git-status so upgrades retain configuration and account state.

Git status publishes one full-width footer row. It groups repository identity, branch and worktree state, shaded added/deleted line counts, and paired upstream arrows. The row uses the pane project's color tint. Repository and branch/worktree groups align left. Upstream counts and then change counts align right, with spare width between the two sides. Narrow panes trim the branch from the start, then hide upstream counts, then the organization. GitHub, branch and arrow icons use Nerd Fonts with ASCII fallbacks.

The plugin uses the public SDK's local pane context and slot publishers. Each machine reads Git for its own panes; remote viewers receive the same surfaces. The directory is the pane's configured project launch directory. Following shell cd changes requires a future live-directory event.

Reads run at activation and after native filesystem notifications, with a 120 ms debounce and at most four concurrent collectors. Pane-context events update targets. Panes sharing a configured directory share one observation. Watchers include directories containing tracked or untracked files, their ancestors, linked-worktree metadata, and shared refs. Ignored build trees are excluded. A 4096-directory limit reports degraded health when reached. There is no polling fallback; unavailable notifications report degraded health. Git commands have timeouts and output bounds. No fetch, index refresh, hooks, external diff, textconv, or clean/process filters are requested. Ahead/behind reflects local upstream refs. Tracked line counts compare the working tree with HEAD, including staged and unstaged changes as one net diff. Untracked files are observed for filesystem changes. New repositories compare with an empty tree. Binary changes contribute no line count.

Outside Git repositories, contributions are withdrawn. Failed reads show Git unavailable; pane removal and generation changes withdraw old surfaces. Disposal aborts pending reads and clears every publisher.

Run pnpm --filter @standardagents/sc-github-status-plugin test for real temporary-Git fixtures and lifecycle tests using the public SDK harness. The plugin requires SDK 1.0.0-alpha.10-rows.0 and its pane-context host support.

The native renderer currently supports stacked rows, text, and non-interactive canvas cells. Persisted slot collapse and pane-slot actions remain planned.

For a manual preview, run node git-status/preview-export.mjs, then node ~/Shots/out/git-footer-preview.mjs. --width=N sets a maximum width; the preview remains bounded by the current terminal width. --ascii shows fallback icons. The preview uses sample data and reads terminal palette colors.