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

@rodriguezst_/webgit

v1.0.4

Published

A standalone Git viewer web client - browse your git repositories from the browser

Readme

WebGit

A standalone, lightweight Git web viewer that can be launched from any git repository directory to provide a comprehensive git management experience through a web browser.

Features

  • Repository Status Dashboard - View modified, added, deleted, and untracked files with visual indicators
  • Diff Viewer - Side-by-side or unified diff views with syntax highlighting
  • Staging & Committing - Selective file staging with checkbox selection and commit interface
  • Branch Management - Create, switch, and delete branches with an intuitive UI
  • Commit History - Browse commits with author info, dates, and messages
  • Remote Operations - Fetch, pull, and push with visual sync status indicators
  • Mobile-First Responsive Design - Works seamlessly on desktop, tablet, and mobile devices

Screenshots

Desktop View

Desktop View

Mobile View

Mobile View

Commit History

History View

Branch Management

Branches View

Branch Selector

Branch Selector

Remote Operations

Remotes View

Tablet View

Tablet View

Mobile Menu

Mobile Menu

Installation

Global Installation (Recommended)

Install WebGit globally to use it from any directory:

npm install -g @rodriguezst_/webgit

Run Without Installing

You can run WebGit directly without installing using npx:

npx @rodriguezst_/webgit

Usage

Quick Start

# Navigate to any git repository and run:
cd /path/to/your/repo
webgit

# Or run without installing:
npx @rodriguezst_/webgit

Then open http://localhost:3000 in your browser.

CLI Options

Usage: webgit [options]

Options:
  -V, --version      Output version number
  -p, --port <port>  Port to run the server on (default: "3000")
  -d, --dir <path>   Path to the git repository (default: current directory)
  -o, --open         Open browser automatically after starting
  -h, --help         Display help

Examples

# Run on a different port
webgit --port 8080

# View a specific repository without changing directory
webgit --dir /path/to/your/repo

# Run on custom port with auto-open browser
webgit --port 4000 --open

# Using npx with options
npx @rodriguezst_/webgit --dir /path/to/repo --port 8080

Development

# Clone and install for development
git clone https://github.com/rodriguezst/webgit.git
cd webgit
npm install

# Run in development mode with auto-reload
npm run dev

API Endpoints

WebGit exposes a REST API for git operations:

| Endpoint | Method | Description | |----------|--------|-------------| | /api/status | GET | Get repository status | | /api/branches | GET | List all branches | | /api/branches | POST | Create a new branch | | /api/branches/checkout | POST | Checkout a branch | | /api/branches/:name | DELETE | Delete a branch | | /api/commits | GET | Get commit history | | /api/commits/:hash | GET | Get commit details | | /api/diff | GET | Get diff for a file | | /api/stage | POST | Stage files | | /api/unstage | POST | Unstage files | | /api/commit | POST | Create a commit | | /api/discard | POST | Discard changes | | /api/remotes | GET | List remotes | | /api/fetch | POST | Fetch from remote | | /api/pull | POST | Pull from remote | | /api/push | POST | Push to remote | | /api/config | GET/POST | Get/set git config |

Testing

WebGit includes comprehensive Playwright tests:

# Run all tests
npm test

# Run tests with UI
npm run test:ui

# Run specific project
npx playwright test --project=chromium
npx playwright test --project=mobile

Tech Stack

  • Backend: Node.js, Express.js
  • Git Operations: simple-git
  • Frontend: Vanilla JavaScript, CSS (Mobile-first)
  • Testing: Playwright

Keyboard Shortcuts

| Shortcut | Action | |----------|--------| | Ctrl+Enter | Commit (when in commit message field) | | Escape | Close modals | | R | Refresh current view |

Browser Support

WebGit is tested and works on:

  • Chrome/Chromium (Desktop & Mobile)
  • Firefox
  • Safari
  • Edge

License

MIT License - see LICENSE for details.