Show HN: Graphvein – Trace calls to handlers and tables across repos, no LLM
Score
52Why selected
进入全量动态池,后续可由人工或模型复核精选价值。
AI commentary
「来自 Hacker News 热门(Algolia · 中文化) 的这条信息指向行业格局和商业判断变化,适合用于判断近期 AI 圈的真实动向。」
Quick overview
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
Full text
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.
Related items
89
FeaturedOpenAI Research: AI Is Redefining Job Boundaries
OpenAI研究:AI正在重新定义工作边界
If you care about the real impact of AI on work, this research is a must-read. Instead of theory, it uses data to show how ChatGPT users expand their task scope, offering direct insights for HR, managers, and every professional looking to upgrade their skills.
87
FeaturedOpenAI CFO Shares Five Lessons for Building an AI-Native Finance Function
OpenAI CFO 分享构建 AI 原生财务职能的五大经验
As an editor, I find this article uniquely valuable because it comes from a finance chief at an AI leader, not an external consultancy, making it highly practical. I recommend it to finance digitalization leads, CFOs, and anyone interested in AI-driven transformation.
87
FeaturedScientific Computing in the Age of Agentic AI: OpenAI Releases New Field Report
智能体AI时代下的科学计算:OpenAI发布新领域报告
This report is one of the most practical analyses in the current AI agent wave, especially suitable for practitioners in computational biology and drug discovery. It answers the key question 'What can AI agents do besides writing code?' and directly demonstrates productivity gains in complex scientific computing.
87
FeaturedReal World VoiceEQ: Measuring the Human Quality of Voice AI
Real World VoiceEQ:量化语音AI的人类自然度
What's noteworthy is that this benchmark truly focuses on the soft metric of 'human-likeness', not traditional speech recognition rate or MOS scores. For teams working on speech synthesis, voice cloning, or voice interaction, this is a highly practical reference tool that quickly identifies model deficiencies in emotion, prosody, etc. However, language support is currently limited; looking forward to future expansion.
85
FeaturedOpenAI Introduces AI Age Scorecard: A New Way to Measure ROI
OpenAI 推出AI时代记分卡:衡量投资回报的新方法
This blog post hits a sore point in the current AI industry: how to quantify input-output. For enterprise decision-makers deploying or planning large-scale AI, it helps avoid herd mentality. My personal advice: try defining 'useful work' based on your own business scenario, and avoid designing metrics that are merely formality.
85
FeaturedHow to Manage AI Investments in the Agentic Era: Focus on Useful Work per Dollar and High-Value Workflows
代理时代如何管理AI投资:聚焦每美元有用功与高价值工作流
This article is especially important for enterprises scaling AI agents. It reminds us that focusing solely on falling API prices is a trap; what really matters is the return per unit of work. I recommend CTOs and CFOs read it together and establish quantitative evaluation mechanisms internally.
85
FeaturedDesigning Organisations That Can Keep Up With AI: Organisational Latency as the Biggest Barrier
设计能跟上AI的组织:组织延迟成为最大障碍
What makes this article truly worth following is that it raises a neglected bottleneck: no matter how strong the technology is, if the organisation can't keep up, it's useless. For CTOs, CIOs, and transformation leaders, this is a more important framework than tech selection.
84
FeaturedOpenAI Partners with U.S. Department of Energy and National Labs to Accelerate Scientific Discovery with Frontier AI
OpenAI宣布与美国能源部和国家实验室合作,推动前沿AI加速科学发现
This is not just a tech collaboration but a milestone in national AI strategy. For those following AI policy and scientific innovation, the framework design is worth examining.

