README.md

ghmr - GitHub Merge Request Viewer #

Live Website

GHMR Logo

Naming is hard, this is a Git Hub Merge Request -viewer so in short: GHMR.

A secure, lightweight desktop application for reviewing GitHub Pull Requests with an optimized keyboard-first workflow.

Showcase #

MR Details & Workflow Status High-Speed Review Mode
MR Details Review Mode

Core Features #

Review Mode #

    • Arrows / JK: Navigate between files
    • Enter / Space: Mark file as viewed and move to next
    • Backspace: Go back and unmark file
    • Esc: Exit review mode
    • Cmd+R: Refresh MR list (debounced)

Security Features 🔐 #

This application implements enterprise-grade security:

  • ✅ Encrypted Token Storage - Uses Tauri's encrypted store plugin
  • ✅ Content Security Policy (CSP) - Prevents XSS attacks
  • ✅ HTML Sanitization - All user content sanitized with DOMPurify
  • ✅ Token Validation - Validates GitHub token format before use
  • ✅ HTTPS Enforcement - All API calls use HTTPS only
  • ✅ Rate Limiting - Debounced API requests prevent quota exhaustion
  • ✅ No Console Logs in Production - Stripped during build
  • ✅ No Telemetry - All data stays on your device

Tech Stack #

  • Frontend: React + TypeScript + Vite
  • Desktop: Tauri (Rust)
  • Diff Viewer: @git-diff-view/react (with built-in syntax highlighting)
  • Security: DOMPurify, Tauri Store Plugin

Installation #

Prerequisites #

  • Node.js 18+
  • Rust toolchain (for building)

Build #

npm install
npm run tauri:build

Development #

npm install
npm run tauri:dev

Landing Page Setup #

The Mac download is docs/ghmr.app.zip. Running npm run release:mac builds the app and refreshes this archive; include it when committing a release so the website serves the updated build.

The project landing page is located in the /docs directory and is hosted via GitHub Pages.

To update the landing page:

  1. Modify docs/index.html or docs/style.css.
  2. Ensure images are placed in docs/assets/.
  3. Commit and push to the main branch.
  4. The "Deploy to GitHub Pages" workflow will automatically deploy changes if files in /docs are modified.
  5. Note: In GitHub Repository Settings -> Pages, ensure Build and deployment > Source is set to "GitHub Actions".

Releases & CI/CD #

The project uses GitHub Actions for automated testing and cross-platform releases.

Automated Testing #

Every push and pull request triggers the test suite via .github/workflows/tests.yml.

Creating a Release #

To create a new multi-platform release (macOS, Windows, Linux):

  1. Update the version in package.json and src-tauri/tauri.conf.json.
  2. Create and push a version tag:
    git tag v0.1.0
    git push origin v0.1.0
    
  3. The "Release" workflow will automatically build the binaries and create a Draft Release on GitHub.
  4. Review the draft and publish it once ready.

Roadmap #