MCPcopy Index your code
hub / github.com/chanhx/crabviz

github.com/chanhx/crabviz @v0.7.0_vscode_v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.7.0_vscode_v0.3.0 ↗ · + Follow
249 symbols 473 edges 26 files 1 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crabviz

A static code analysis tool that generates interactive call graph.

Introdution

Crabviz is based on the Langauge Server Protocol, as long as you have the corresponding language server installed, you can generate call graph with Crabviz for your project.

Features

  • Show types, methods, functions and interfaces, grouped by file
  • Display function calling relationships and interface implementation relationships
  • Analyze selected folders and files, or a selected function
  • Export call graphs to svg files

Preview

preview1

preview2

Editors

Because Crabviz utilizes the capabilities of LSP server, it is better suited as an IDE/editor extension instead of a standalone command line tool.

It is currently available in VS Code, and PRs for other editors are welcome.

TODO

  • Collapse folder
  • Beautify UI

Credits

crabviz is inspired by graphql-voyager and go-callvis

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 140
Method 69
Class 30
Enum 7
Interface 3

Languages

TypeScript69%
Rust31%

Modules by API surface

editors/code/media/panzoom.min.js123 symbols
editors/code/src/generator.ts17 symbols
src/lsp_types.rs13 symbols
src/generator.rs13 symbols
editors/code/media/graph.js13 symbols
src/graph.rs11 symbols
src/generator/wasm.rs10 symbols
src/lang.rs8 symbols
editors/code/src/webview.ts8 symbols
src/graph/dot.rs7 symbols
src/generator/types.rs6 symbols
src/lang/rust.rs3 symbols

For agents

$ claude mcp add crabviz \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page