Show HN: Graphvein – Trace calls to handlers and tables across repos, no LLM
评分
52精选理由
进入全量动态池,后续可由人工或模型复核精选价值。
AI 点评
「来自 Hacker News 热门(Algolia · 中文化) 的这条信息指向行业格局和商业判断变化,适合用于判断近期 AI 圈的真实动向。」
速览
Show HN: Graphvein – Trace calls to handlers and tables across repos, no LLM · HN points: 2 · comments: 1 · https://news.ycombinator.com/item?id=50656925
- From any route, call, handler or table to what it connects to, across your frontends, backends and database.
- Local, labelled, no LLM.
- - graphvein/graphvein
正文
Graphvein
Trace any route, call or table across your stack.
Frontend calls behind a route, its handler, the tables it may read or write, and what a change reaches.
Graphvein maps a codebase from its architecture overview down to the exact function or line. It builds a deterministic graph of code facts and keeps design rationale, assessments and human decisions attached to the code they describe.
Graphvein runs locally and uses no LLM. It opens no network connection except to what you configure yourself, such as a team Postgres database or the Try it out environment you select (FAQ).
Status
Preview release (v0.1.0); contributions welcome under the contributor licence agreement (CONTRIBUTING.md). What works today:
graphvein index builds the index of a repository, and graphvein serve
opens a local web UI on it with the sections API (routes and their
callers), Changes (what a change reaches), Architecture, Schema, Explorer
(API documentation and a guarded "Try it out"), Project and What Graphvein
couldn't read. Two or more repositories can be indexed and served as one
project, and graphvein mcp is a read-only MCP server over the same index
for coding agents. The same questions work from the command line, with
--json for scripts: graphvein callers 'GET /api/items' --json
(queries). Help in the app explains every section and label
(guide). What Graphvein does not see or
model today is listed in known gaps.
The same route of the public full-stack FastAPI template in the plain label style with the caller's tooltip open (left), and in the technical style (right). The number is a fixed rank per match rule, not a probability.
| Area | What is read | Measured evidence |
|---|---|---|
| Routes and their callers | Routes: Express, FastAPI, Axum, Go net/http, chi and gin, Next.js App Router, Angular and Tauri commands. Calls: fetch, axios, Angular HttpClient, hey-api and Orval generated clients and the Supabase JS client (routes, clients). |
Route-to-caller links on three messy open-source repositories (langflow, owncast, seerr): 363 of 363 links correct in the current state, after the fix of the 22 false links the first measurement found and its follow-ups, precision 100.0% [Wilson 95%: 99.0%, 100.0%] (first measurement 94.6%). Recall in application code: 93.0% (langflow) and 93.5% (seerr); owncast reaches 81.5% of the calls Graphvein recognises, but its admin console calls the API through a fetchData helper that Graphvein does not recognise yet. Counting every call, langflow's falls to 27.8%: its documentation examples pass the HTTP method in a fetch options object and take the base URL from process.env, which Graphvein does not resolve yet (link precision). |
| TypeScript and JavaScript call binding | Calls to functions, classes and object members by name, with static dispatch; a call Graphvein cannot bind stays unresolved (TypeScript resolution). | 0 wrong call edges against the language's own scope analysis on 12 corpora: 11 public open-source repositories and Graphvein's own web UI (call binding). |
| Schema | SQL migrations, judged under Postgres rules; models of SQLModel, Prisma, Drizzle, Sequelize, TypeORM, Diesel and GORM; Supabase generated types (schema). | Where an oracle harness exists, facts are compared with the catalog of a real database, and a fact is marked checked only for a form the oracle compared. MySQL, SQL Server and CockroachDB facts are mapped, not checked (known gaps). |
| Project linking | Calls in one repository linked to routes in another, labelled inferred with the assumption they rest on; a call several members could serve stays ambiguous until a consumes declaration settles it (project). |
No separate measurement yet (known gaps). |
| MCP server | Read-only tools for routes, callers, call chains, tables, change impact, search and source over the index (mcp). | Benchmark of 21 questions, three agents, three repetitions each: correct runs out of 63 rose from 53 to 62 (Claude Code) and from 56 to 61 (opencode) with the MCP server; Codex was at 59 without it and 59 to 61 with it, within run-to-run variation. Round 3: with new server instructions, default Codex called Graphvein's tools in 26 of 63 runs, against 2 of 63 before (results). |
Calls Graphvein cannot link are not hidden: the API section counts them as unmatched, dynamic or behind a wrapper, and selecting a count lists the calls behind it.
Install
Each release
has one archive per system (Windows, macOS and Linux, each for x86-64 and
Arm64): .zip for Windows, .tar.gz for macOS and Linux. Each archive
holds the graphvein binary with LICENSE, NOTICE,
THIRD_PARTY_NOTICES and this README. The binaries are built by the
release workflow from the release tag;
they are not code-signed. Download the archive for your system and
SHA256SUMS from the release page, then check them.
Checksum. In the download folder (Git Bash on Windows has
sha256sum; on macOS use shasum -a 256 -c in its place):
grep graphvein-v0.1.0-linux-amd64.tar.gz SHA256SUMS | sha256sum -c
Provenance. Each archive has a build provenance attestation that ties it to the workflow run and the commit it was built from. With the GitHub CLI:
gh attestation verify graphvein-v0.1.0-linux-amd64.tar.gz --repo graphvein/graphvein
Unpack it (tar -xzf graphvein-v0.1.0-linux-amd64.tar.gz; on Windows,
Extract All in File Explorer) and put the folder on your PATH, or call
the binary by its path: graphvein version prints the version you
downloaded.
First run on Windows. A downloaded program that is not code-signed
can make SmartScreen show "Windows protected your PC". Choose More
info, then Run anyway. Or, before unpacking, open the .zip file's
Properties and tick Unblock.
First run on macOS. Gatekeeper refuses a downloaded binary that is not notarised ("graphvein" Not Opened, or "cannot be opened because Apple cannot check it for malicious software"). Remove the download mark from the unpacked binary:
xattr -d com.apple.quarantine ./graphvein
or try to run it once, then open System Settings → Privacy & Security
and choose Open Anyway next to the message about graphvein.
Without warnings: install with Go. A binary you build yourself carries no download mark, so neither warning appears:
go install github.com/graphvein/graphvein/cmd/graphvein@latest
It needs Go 1.21 or newer, which downloads the Go toolchain the module
requires when yours is older. The binary goes to $(go env GOPATH)/bin
and graphvein version reports the module version you installed (use
@v0.1.0 for a given release). To build from a checkout instead, see the
next section.
Building and running
Requires Go 1.27.4 (the toolchain line in go.mod; an installed Go 1.21 or
newer downloads it automatically) and Bash (Git Bash on Windows). No C
compiler is needed.
From the repository root:
bash scripts/test.sh bash scripts/build.sh ./bin/graphvein$(go env GOEXE) version ./bin/graphvein$(go env GOEXE) help
graphvein serve [path] serves the local web UI and HTTP API for an indexed
repository at http://127.0.0.1:7420/ (loopback only; see
serve). The UI is embedded in the binary, so building and
testing need only Go. Node (24 LTS, pinned in web/.nvmrc) is needed only to
change the UI: see web/README.md and run
bash scripts/check-web.sh after editing web/.
Two repositories as one project
A frontend and a backend kept in separate repositories can be indexed,
linked and served together (ADR 0075, project).
With the built binary on your PATH, from the folder that holds both
checkouts (shop-web, shop-api):
graphvein project init --name shop --dir shop frontend=shop-web backend=shop-api graphvein index --project shop graphvein serve --project shop
Each member is named explicitly (NAME=PATH, unless its own
graphvein.yaml sets repository:), and its path is written relative to
the manifest.
project init writes graphvein-project.yaml; index --project indexes
each member into the project store (.graphvein/index.db next to the
manifest) and links calls in one repository to routes in the other;
serve --project serves the UI at http://127.0.0.1:7420/ with a
repository switcher and the Project view. A cross-repository link is
inferred and shows the assumption it rests on; when several members
could serve a call it stays ambiguous until you declare which one it
consumes (Edit declarations in the Project view, or
graphvein project suggest). graphvein status --project . reports
member freshness and stale links.
The build writes bin/graphvein.exe on Windows and bin/graphvein elsewhere.
VERSION (default dev) and BUILD_DATE (default current UTC time) can override
build metadata; the commit comes from Git, falling back to unknown.
A version left at dev is replaced by the module version the Go toolchain
recorded, if any (go build in a Git checkout records a version from the
commit; go install ...@v0.1.0 records v0.1.0), and an unknown commit or
date by the Git commit and its time the toolchain recorded.
Direct go run ./cmd/graphvein version uses dev / unknown / unknown.
bash scripts/release-archives.sh VERSION OUTDIR builds the release
archives and SHA256SUMS as the release workflow does.
Tests include the golden harness self-tests. Fixture tests call
golden.Check(t, "testdata/name.golden.json", value). Use golden.Path for
filesystem path fields; ordinary text strings are preserved. Object keys are
sorted, arrays keep their input order, and output uses two spaces and LF.
A mismatch names the first JSON path with expected and actual values.
To intentionally update only selected fixtures, review the resulting diff:
go test ./internal/golden -run '^TestFixture$' -update
The isolated parsing spike retains its own module and tests:
(cd spike/parsing && CGO_ENABLED=0 go test ./...)
CI runs the main module on Windows, macOS and Linux with cgo disabled, and the
WASM spike tests on Windows. bash scripts/check-line-endings.sh checks tracked
files for CRLF, respecting binary attributes and Windows script exceptions.
See the vision, architecture and
roadmap for scope and order, and known gaps
for what Graphvein does not see or model today.
Licence, contributing and security
Graphvein is licensed under the Apache License 2.0; see NOTICE for the copyright notice and the bundled editor logos, which stay under their owners' terms, and THIRD_PARTY_NOTICES for third-party software. Contributions need a signed contributor licence agreement; see CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md. Everyone taking part follows the code of conduct.
Graphvein™ is a trademark of the project owner. The Apache License does not grant permission to use the name; forks must use a different name.
相关条目
89
精选OpenAI研究:AI正在重新定义工作边界
如果你关心AI对实际工作的影响,这篇研究不容错过。它不讨论理论,而是用数据展示ChatGPT用户如何使用AI扩展自己的任务范围,这对HR、管理者以及每个希望提升技能的职场人都有直接启发。
87
精选OpenAI CFO 分享构建 AI 原生财务职能的五大经验
作为编辑,我认为这篇文章的价值在于它来自 AI 领军企业的财务一把手,而非外部咨询机构,因此更具实践参考性。推荐给财务数字化负责人、CFO 以及对 AI 转型感兴趣的从业者阅读。
87
精选智能体AI时代下的科学计算:OpenAI发布新领域报告
这份报告是当前AI agent热潮中最务实的应用分析之一,尤其适合计算生物学和药物研发领域的从业者阅读。它回答了“AI agent除了写代码还能干什么”这个关键问题,直接展示了在复杂科学计算中的生产力提升。
87
精选Real World VoiceEQ:量化语音AI的人类自然度
值得关注的是,这个基准真正聚焦'人类自然度'这个软指标,而不是传统的语音识别率或MOS评分。对从事语音合成、语音克隆或语音交互的团队来说,这是一个非常实用的参考工具,可以快速定位模型在情感、韵律等层面上的不足。不过目前支持语言有限,期待后续扩展。
85
精选OpenAI 推出AI时代记分卡:衡量投资回报的新方法
这篇博文直击当前AI行业的软肋——如何量化投入产出。对于正在或计划大规模部署AI的企业决策者而言,它能帮助避免盲目跟风。我个人建议结合自身业务场景尝试定义“有用工作”,避免指标设计流于形式。
85
精选代理时代如何管理AI投资:聚焦每美元有用功与高价值工作流
这篇文章对正在大规模部署AI代理的企业尤为重要。它提醒我们:单纯盯着API价格下降会陷入误区,真正要管理的是每单位工作的投资回报率。建议CTO和CFO联合阅读,并在内部建立量化评估机制。
85
精选设计能跟上AI的组织:组织延迟成为最大障碍
这篇文章真正值得关注的是提出了一个被忽视的瓶颈:技术再强,组织跟不上也是白搭。对CTO、CIO和转型负责人来说,这是比技术选型更重要的思考框架。
84
精选OpenAI宣布与美国能源部和国家实验室合作,推动前沿AI加速科学发现
这不仅是技术合作,更是AI国家战略的里程碑。对关注AI政策与科学创新的读者,值得细读框架设计。

