[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-82003":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":15,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},82003,"DiffDeck","ParthJadhav\u002FDiffDeck","ParthJadhav","open git diffs in browser, add comments & send all to agent","",null,"TypeScript",22,3,21,1,0,1.81,"MIT License",false,"main",true,[23,24,25,26,27,28],"agent","ai","developer-tools","development","diff","git","2026-06-12 02:04:22","# Diffdeck\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@parthj\u002Fdiffdeck.svg?label=npm&color=cb3837)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@parthj\u002Fdiffdeck)\n\nOpen a Git diff in your browser from the terminal.\n\n\u003Cpicture>\n  \u003Csource srcset=\"docs\u002Fdiffdeck-demo.gif\" type=\"image\u002Fgif\" \u002F>\n  \u003Cimg src=\"docs\u002Fdiffdeck-infographic.png\" alt=\"Diffdeck opens Git diffs in a local browser review workspace\" \u002F>\n\u003C\u002Fpicture>\n\n`diffdeck` starts a local web UI for the diff you ask Git for, then opens it in your browser. Use it when:\n\n- You do not have a diff view where you are editing.\n- `git diff` in the terminal is too hard to read.\n- You are SSHed into a server and still want a clean visual review.\n\nOptionally, you can comment on changed lines and copy all of them at once for your AI to resolve — the surrounding code context goes with them, so the agent has everything it needs to act.\n\n## Agentic Setup\n\nTell your coding agent (Claude Code, Cursor, etc.):\n\n```\nInstall `@parthj\u002Fdiffdeck` globally with `npm install -g @parthj\u002Fdiffdeck`, then add `alias gd='diffdeck'` to my shell rc file. Run `gd` whenever I ask you to show me a diff.\n```\n\n## Install\n\n```sh\nnpm install -g @parthj\u002Fdiffdeck\n```\n\nThe package is scoped, but the installed command is `diffdeck`.\n\nTo update to the latest version:\n\n```sh\nnpm install -g @parthj\u002Fdiffdeck@latest\n```\n\n(`npm update -g` won't bump globally-installed packages because they're pinned to an exact version at install time.)\n\n## Make It A Drop-In\n\nDiffdeck accepts the same diff arguments, so the simplest setup is a shell alias:\n\n```sh\nalias gd='diffdeck'\n```\n\nThen use it like `git diff`:\n\n```sh\ngd\ngd --cached\ngd HEAD~1 HEAD\n```\n\n## Use It Like Git Diff\n\n```sh\ndiffdeck\ndiffdeck --cached\ndiffdeck HEAD~1 HEAD\ndiffdeck -- -- '*.tsx'\n```\n\nEverything after Diffdeck's own options is passed through to `git diff` as long as it still produces plain patch output. Summary-only modes such as `--stat`, `--name-only`, `--raw`, and `--no-patch` are rejected because there is no file patch for the browser to render.\n\n## Options\n\n| Option | What it does |\n| --- | --- |\n| `--repo \u003Cpath>` | Run against another repository. |\n| `--port \u003Cnumber>` | Bind to a specific port. Defaults to `4321` (falls back to a free port if taken). |\n| `--host \u003Chost>` | Bind to a host. Defaults to `127.0.0.1`. |\n| `--no-open` | Start the server without opening a browser. |\n| `--version` | Print the installed version and exit. |\n| `--help` | Show CLI help. |\n\n## Requirements\n\n- Node.js 20 or newer\n- Git available on your `PATH`\n\n## Develop\n\n```sh\nbun install\nbun run dev\nbun run check\n```\n\n## Releases\n\nSee [GitHub Releases](https:\u002F\u002Fgithub.com\u002FParthJadhav\u002FDiffDeck\u002Freleases) for the full version history. Highlights:\n\n- **0.3.8** — Refined the review UI with shared controls, icons, compact states, and better mobile diff layout.\n- **0.3.7** — Browser page refreshes now reload the current git status instead of reusing a cached session.\n- **0.2.0** — File-list virtualization for large diffs (23k+ files), survives non-ASCII patches, comment drafts persist across scroll.\n- **0.1.3** — Float copy-comments FAB, render binary file placeholders, oklch theme tokens.\n- **0.1.1** — Initial scoped npm release.\n\n## License\n\nMIT\n","DiffDeck 是一个用于在浏览器中打开 Git 差异并添加注释的工具。其核心功能是通过命令行启动本地 Web 界面来展示 Git 差异，并支持用户在更改的代码行上添加评论，便于与 AI 代理共享上下文信息以解决问题。该工具使用 TypeScript 开发，提供了一种比终端更直观的方式来查看和讨论代码变更。特别适用于没有内置差异视图的编辑环境、难以阅读终端中的 `git diff` 输出或需要远程服务器上进行代码审查的情况。",2,"2026-06-11 04:07:26","CREATED_QUERY"]