@web-git-graph/web
v1.0.7
Published
Framework-free Git history graph Web Component for coding-agent UIs, IDE webviews, and browsers — lanes, search, compare, and pluggable providers.
Maintainers
Readme
@web-git-graph/web
零框架的 Git 历史图渲染、虚拟化交互与浏览器端 Provider 适配器,适合 coding-agent 界面与 IDE webview。
Framework-free Git history graph rendering, virtualized interactions, and browser provider adapters — suited to coding-agent UIs and IDE webviews.
import "@web-git-graph/web/register";
import { GitHubGitGraphProvider } from "@web-git-graph/web/providers/github";中文
- 注册后即可使用
<web-git-graph>;provider、data、refs用 JavaScript 属性赋值,不要写成 HTML 属性。 - 共享的 Git 图 DTO 由
@web-git-graph/protocol导出。 - 组件必须有确定的高度(内部是虚拟列表)。
- 只读:不提供 checkout、merge、rebase、reset 等写操作。
在浏览器里看效果:在线演示, 或用一个链接直接打开某个公开仓库的图: 全屏图页面。
Agent 集成:见仓库根目录的 AGENTS.md、 recipes 与 skill。
English
- Register once, then use
<web-git-graph>; assignprovider,dataandrefsas JavaScript properties, never as HTML attributes. - Shared Git graph DTOs are exported by
@web-git-graph/protocol. - Give the element a bounded height — the row list is virtualized.
- Read-only: no checkout, merge, rebase or reset is exposed.
See it in a browser: live demo, or open any public repository from a single link: fullscreen graph.
Agent integration: see the repo AGENTS.md, recipes, and skill.
