difit  by yoshiko-pg

Git diff viewer for code review

Created 4 months ago
1,525 stars

Top 27.1% on SourcePulse

GitHubView on GitHub
Project Summary

ReviewIt is a lightweight, zero-configuration command-line tool designed for efficient code review. It spins up a local web server to display Git commit diffs in a GitHub-like "Files changed" view, catering to developers seeking a streamlined review process without leaving their terminal. The tool also offers an integrated commenting system and prompts for AI code assistants like Claude.

How It Works

ReviewIt leverages a Node.js backend powered by Express and Commander.js for CLI argument parsing. It uses simple-git to process Git diffs and Octokit for GitHub API interactions, enabling review of local commits, branches, or remote pull requests. The frontend is built with React 18, TypeScript, and Vite, featuring Tailwind CSS for styling and Prism.js for syntax highlighting, which is dynamically loaded based on file extensions for performance.

Quick Start & Requirements

  • Install and run: npx reviewit <commit-ish>
  • Requirements: Node.js ≥ 21.0.0, Git repository.
  • GitHub PR review requires GitHub CLI (gh auth login) or GITHUB_TOKEN environment variable.
  • Official Docs: https://github.com/yoshiko-pg/difit

Highlighted Details

  • GitHub-like Files Changed view for diffs.
  • Inline commenting system with Claude Code prompt generation.
  • Terminal UI (--tui) option for diff viewing.
  • Supports diffing local commits, branches, working directory, and staged changes.
  • Dynamic syntax highlighting for numerous languages.

Maintenance & Community

The project is actively maintained by yoshiko-pg. Community links are not explicitly provided in the README.

Licensing & Compatibility

  • License: MIT
  • Compatible with commercial use and closed-source projects.

Limitations & Caveats

The "working" keyword for diffs does not support a compare-with argument. While public repositories can be reviewed without authentication, they are subject to rate limits.

Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
12
Issues (30d)
0
Star History
43 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.