{"id":48924173,"url":"https://github.com/mblode/diffhub","last_synced_at":"2026-05-31T01:00:47.239Z","repository":{"id":350823393,"uuid":"1208399788","full_name":"mblode/diffhub","owner":"mblode","description":"Local git diff viewer","archived":false,"fork":false,"pushed_at":"2026-05-29T23:30:15.000Z","size":3187,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T00:16:08.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://diffhub.blode.co","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mblode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"mblode"}},"created_at":"2026-04-12T08:15:05.000Z","updated_at":"2026-05-29T23:29:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mblode/diffhub","commit_stats":null,"previous_names":["mblode/cmux-diff","mblode/diffhub"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/mblode/diffhub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdiffhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdiffhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdiffhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdiffhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mblode","download_url":"https://codeload.github.com/mblode/diffhub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mblode%2Fdiffhub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33715211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-17T06:04:45.845Z","updated_at":"2026-05-31T01:00:47.234Z","avatar_url":"https://github.com/mblode.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mblode"],"categories":[],"sub_categories":[],"readme":"# DiffHub\n\n[![npm version](https://img.shields.io/npm/v/diffhub)](https://www.npmjs.com/package/diffhub)\n[![Node.js 20.11+](https://img.shields.io/badge/node-20.11+-green)](https://nodejs.org)\n\nLocal diff viewer for cmux.\n\nDiffHub opens your branch in a browser split so you can review it locally. By default it compares against the detected base branch, usually `origin/main`.\n\n![DiffHub screenshot](apps/cli/public/screenshot.png)\n\n## Quick start\n\n### cmux\n\n```bash\nnpx diffhub@latest cmux\n```\n\nRun that inside any git repository. DiffHub starts the local viewer and opens it in a cmux browser split.\n\ncmux mode currently expects `cmux.app` on macOS at `/Applications/cmux.app`.\n\n### Normal browser window\n\n```bash\nnpx diffhub@latest\n```\n\nUse that if you want the same viewer in your default browser instead.\n\n### Global install\n\n```bash\nnpm install -g diffhub\n```\n\n## What it does\n\n- Opens in a cmux browser split\n- Shows your branch against the merge-base\n- Supports split and unified views\n- Lets you add notes and open files in your editor\n\n## Usage\n\nRun inside any git repository.\n\n```bash\n# Open in cmux\ndiffhub cmux\n\n# Open in a normal browser window\ndiffhub\n```\n\n```bash\n# Use a different base branch\ndiffhub cmux --base develop\n\n# Point at a repo in another directory\ndiffhub cmux --repo ~/projects/my-app\n\n# Use a different port in browser mode\ndiffhub --port 3000\n\n# Don't open the browser automatically\ndiffhub --no-open\n```\n\n### Commands\n\n| Command         | Description                                 |\n| --------------- | ------------------------------------------- |\n| `diffhub`       | Open DiffHub in your default browser        |\n| `diffhub cmux`  | Open DiffHub in a cmux browser split        |\n| `diffhub serve` | Same as `diffhub`, starts the local web app |\n\n### `diffhub` / `diffhub serve` options\n\n| Flag                  | Default | Description                 |\n| --------------------- | ------- | --------------------------- |\n| `-p, --port \u003cport\u003e`   | `2047`  | Port to serve on            |\n| `-r, --repo \u003cpath\u003e`   | `cwd`   | Path to the git repository  |\n| `-b, --base \u003cbranch\u003e` | auto    | Base branch to diff against |\n| `--no-open`           | —       | Skip automatic browser open |\n\n### `diffhub cmux` options\n\n| Flag                  | Default | Description                 |\n| --------------------- | ------- | --------------------------- |\n| `-r, --repo \u003cpath\u003e`   | `cwd`   | Path to the git repository  |\n| `-b, --base \u003cbranch\u003e` | auto    | Base branch to diff against |\n\n## Keyboard shortcuts\n\n| Key       | Action                      |\n| --------- | --------------------------- |\n| `j` / `k` | Next / previous file        |\n| `s`       | Toggle split / unified view |\n| `/`       | Focus file filter           |\n| `r`       | Refresh diff                |\n\n## Requirements\n\n- Node.js 20.11+\n- A git repository with at least one commit on your current branch\n- For `cmux` mode, `cmux.app` installed on macOS\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmblode%2Fdiffhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmblode%2Fdiffhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmblode%2Fdiffhub/lists"}