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

gh-here

v4.1.1

Published

A fast local file browser, with code and diffs by Pierre.

Readme

gh-here

Your working directory, beautifully browsable.

A fast, local file browser. Familiar navigation. Beautiful code, powered by Pierre Diffs and Pierre Trees.

Usage

gh-here

Run from any directory. gh-here opens a read-only browser for that directory; no repository, account, or Git installation is needed.

npx gh-here                      # Open the current directory
npx gh-here --no-open            # Start without opening a browser
npx gh-here --port=8080          # Use a particular port
npx gh-here --browser=safari     # Choose a browser (macOS / Linux)

Or install globally with npm install -g gh-here.

A small, focused workspace

  • Review changes like a pull request. Every file you've changed since the last commit stacks in one scrolling review, in split or unified view, with diff stats in the sidebar. Staged and unstaged edits, new files, deletions and renames all appear. When there's work in progress, gh-here opens straight to it.
  • Watch it update live. Edit a file, or let an agent edit it, and the review refreshes in place within a couple of seconds, keeping your scroll position and collapsed files.
  • Move fast with the keyboard. j / k step through changed files; ⌘K, Ctrl K or / jumps to any file by name or path.
  • Browse folders in a virtualized file tree that loads subfolders on demand, and read syntax-highlighted code, Markdown previews and images. Select line numbers to create a line link.
  • Make it yours: light and dark themes, wrapped lines, collapsible files, and a sidebar you can hide. On a phone the sidebar becomes a drawer and diffs go unified.

Changes is hidden when Git is unavailable or the directory is outside a repository.

By default, .git, dependencies, build output, and files matched by .gitignore are hidden. Nested ignore files are supported. Show ignored reveals them. Filter files filters the loaded tree; Go to file searches across the working directory. Search is bounded to keep very large directories responsive.

Refresh reads the latest contents from disk. gh-here never writes to your files or changes Git state. Git commands only read local repository information; no remotes or accounts are involved. The server binds only to 127.0.0.1; local fonts, syntax grammars, and application assets are bundled, with no CDN or telemetry. External README images are replaced by their alt text. Links to external sites open only when clicked.

Text previews and comparisons support files up to 2 MB and 20,000 lines. Larger files and binary files can be downloaded. Symlinks that leave the working directory are excluded.

Development

npm install
npm run build
npm start -- --no-open
npm run check
npm test
npm run test:ui

Rebuild after changing client/; esbuild bundles the JavaScript and the stylesheets in client/styles/ into public/build/. The frontend is vanilla JavaScript, with lazy loading for Markdown, code rendering, and individual syntax grammars. npm pack builds and includes the assets so installed users need no build step.

npm test checks filesystem behavior and local Git comparisons with temporary directories and repositories. npm run test:ui builds, then runs the main browser workflows with Playwright Chromium; install the test browser with npx playwright install chromium if needed. npm run check runs Prettier and ESLint.

License

MIT. Pierre Diffs and Trees are Apache-2.0; Geist fonts are SIL Open Font License. Font licenses are included alongside the bundled fonts; bundled library licenses and notices are included in public/licenses/.