Understand the blast radius before you change code.
Graphyn builds a deterministic symbol relationship graph for your repository so you and your coding agents can answer:
- What breaks if I change this symbol?
- Where is this symbol used (including aliases)?
- What does this symbol depend on?
- Alias-aware: resolves
import { A as B } - Property-aware: tracks accessed members (for safer refactors)
- Deterministic: no LLM in graph construction
- Fast queries: in-memory graph traversal
- Agent-ready: MCP server for Cursor, Claude Code, Codex, and others
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/JeelGajera/graphyn/master/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/JeelGajera/graphyn/master/install.ps1 | iexFrom source (Cargo):
cargo install graphyn-cli --git https://github.com/JeelGajera/graphyn- Index a repo:
graphyn analyze ./my-repo- Run queries:
# impact analysis
graphyn query blast-radius UserPayload
# usages (alias-aware)
graphyn query usages UserPayload
# dependency tree
graphyn query deps UserPayload
# graph summary
graphyn status- Keep graph updated while coding:
graphyn watch ./my-repographyn analyze <path>: parse and build graph into.graphyn/dbgraphyn watch <path>: keep graph in sync on file changesgraphyn query blast-radius <symbol> [--file <path>] [--depth <n>]graphyn query usages <symbol> [--file <path>]graphyn query deps <symbol> [--file <path>] [--depth <n>]graphyn status: graph stats and coveragegraphyn serve --stdio: start MCP server
Graphyn honors .gitignore by default. If a symbol is missing, check whether it
lives in an ignored folder such as dist/, generated output, or scratch files.
Override filters when needed:
graphyn analyze . --no-gitignore
graphyn analyze . --include "src/**/*.ts"
graphyn analyze . --exclude "tests/**"
graphyn watch . --include "packages/api/**/*.ts"For MCP clients, refresh_graph accepts:
pathrespect_gitignoreincludeexclude
Example:
{
"path": ".",
"respect_gitignore": false,
"include": "src/**/*.ts",
"exclude": "tests/**"
}Start server:
graphyn serve --stdioAgent and MCP setup templates are in agent-configs/.
The folder includes ready-to-use examples for:
AGENTS.md- Claude Code
CLAUDE.md - Claude Code Skills
- Cursor rules
- GitHub Copilot instructions
- Gemini guidance
- Antigravity-style rules/workflows
- MCP configs for Cursor, Claude Code, Antigravity and Codex
Supported now:
- TypeScript / JavaScript
.mts,.cts,.mjs,.cjs- Vue (
.vue), Svelte (.svelte), Astro (.astro)
Planned:
- Python
- Rust
- Go
cargo build --release
cargo test --workspace
cargo clippy --workspace -- -D warningsApache-2.0 — see LICENSE