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

githuman

v0.6.0

Published

Review AI agent code changes before commit

Readme

GitHuman

Review AI agent code changes before commit.

GitHub revolutionized how humans collaborate on code.

GitHuman defines how humans review code written by AI.

The Problem

AI coding agents write code. But the traditional PR workflow assumes humans are the authors. By the time AI-generated code reaches a pull request, you've already committed to the approach. Review happens too late.

The Solution

GitHuman moves the review checkpoint to where it belongs: the staging area.

Before git commit, you get a proper review interface—not a wall of terminal diff output. Add comments, track issues, and make informed decisions about what the AI produced.

Screenshots

Reviews List

Reviews List

Staged Changes

Staged Changes

Features

  • Visual diff review - Review staged changes in a clean, GitHub-like interface
  • Inline comments - Add comments to specific lines with code suggestions
  • Review workflow - Track status: in progress, approved, or changes requested
  • Todo tracking - Create tasks for follow-up work via CLI or web interface
  • Markdown export - Export reviews with comments for documentation
  • Keyboard shortcuts - Navigate quickly with vim-style bindings
  • Local & private - Everything runs on your machine, no data leaves

Requirements

  • Node.js 24.0.0 or higher

Installation

npm install -g githuman

Or run directly:

npx githuman@latest serve

Quick Start

# Stage your changes (from AI agent or manual edits)
git add .

# Start the review interface
githuman serve

This opens a web interface at http://localhost:3847 where you can review your staged changes before committing.

Agent Skills

GitHuman provides an agent skill that teaches AI coding agents when and how to use GitHuman for reviewing changes.

Install it with the skills CLI:

npx skills add mcollina/githuman-skills

CLI Reference

Start Review Server

githuman serve [options]

Options:
  -p, --port <port>    Port to listen on (default: 3847)
  --host <host>        Host to bind to (default: localhost)
  --no-open            Don't open browser automatically
  --token <token>      Require authentication token
  -h, --help           Show help

List Reviews

githuman list [options]

Options:
  --status <status>    Filter by status (in_progress|approved|changes_requested)
  --json               Output as JSON
  -h, --help           Show help

Export Review

githuman export <review-id|last> [options]

Arguments:
  review-id            The ID of the review, or "last" for most recent

Options:
  -o, --output <file>  Output file path (default: stdout)
  --no-resolved        Exclude resolved comments
  --no-snippets        Exclude diff snippets
  -h, --help           Show help

Manage Todos

githuman todo <subcommand> [options]

Subcommands:
  add <content>     Add a new todo item
  list              List all todos (pending by default)
  done <id>         Mark todo as completed
  undone <id>       Mark todo as not completed
  remove <id>       Delete a todo
  clear --done      Remove all completed todos

Options:
  --review <id>     Scope todo to a specific review
  --all             Show all todos (not just pending)
  --done            Filter to show only completed todos
  --json            Output as JSON
  -h, --help        Show help

Workflow

  1. AI agent makes changes - Claude, Copilot, Cursor, or any tool stages code
  2. Run githuman serve - Opens the review interface
  3. Review the diff - See exactly what changed, file by file
  4. Add comments - Note issues, questions, or suggestions
  5. Create todos - Track follow-up work
  6. Decide - Approve and commit, or request changes from the agent
  7. Export - Optionally save the review as documentation

Web Interface

Creating a Review

  1. Stage your changes with git add
  2. Run githuman serve
  3. Click "New Review" or navigate to Staged Changes
  4. Click "Create Review"

Adding Comments

  1. Hover over any line in the diff
  2. Click the + button that appears
  3. Write your comment
  4. Optionally add a code suggestion
  5. Click "Add Comment"

Keyboard Shortcuts

| Key | Action | |-----|--------| | j | Next file | | k | Previous file | | Esc | Cancel / Close |

API

The server exposes a REST API with OpenAPI documentation at /docs.

Authentication

Set a token to require authentication:

# Via CLI flag
githuman serve --token mysecrettoken

# Via environment variable
GITHUMAN_TOKEN=mysecrettoken githuman serve

Clients must include the token in the Authorization header:

Authorization: Bearer mysecrettoken

Data Storage

Reviews and comments are stored in a SQLite database at:

<repository>/.githuman/reviews.db

This directory is typically gitignored.

Development

# Clone the repository
git clone https://github.com/mcollina/local-code-reviewer.git
cd local-code-reviewer

# Install dependencies
npm install

# Run server in watch mode
npm run dev:server

# Run web dev server (Vite)
npm run dev

# Run all tests
npm test

Tech Stack

  • Backend: Fastify, Node.js native SQLite
  • Frontend: React 19, Vite, Tailwind CSS v4
  • Testing: Node.js test runner, Vitest, Playwright

Why "GitHuman"?

In the age of AI coding assistants, someone needs to review the code before it's committed. That someone is you. GitHuman is the human checkpoint in an AI-assisted workflow.

License

MIT License for the code.

The GitHuman logo is Copyright (c) Matteo Collina, All Rights Reserved.