xnuinside/codegraph
xnuinside/codegraph has 509 GitHub stars and 29 forks. Star changes are not measured yet. Last checked 2026-11-09 09:14 UTC. Last push 2026-05-19.
Comment ces chiffres sont mesurés
Static Python dependency graph with interactive HTML visualization, massive object detection, and unlinked module analysis (no code execution).
Progression mesurée des étoiles
- in 24h
- Mise à jour retardée
- in 7 days
- Mise à jour retardée
- in 15 days
- Mise à jour retardée
- in 1 month
- Mise à jour retardée
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalCodeGraph - static code analyzator, that create a diagram with your code structure.
Live Demo - Interactive visualization of simple-ddl-parser codebase
Tool that creates a diagram with your code structure to show dependencies between code entities (methods, modules, classes and etc). Main advantage of CodeGraph is that it does not execute the code itself. You don't need to activate any environments or install dependencies to analyze the target code. It is based only on lexical and syntax parsing, so it doesn't need to install all your code dependencies.
Interactive Visualization

Zoom, Pan & Drag - Use mouse wheel to zoom, drag background to pan, drag nodes to reposition them.
Search & Highlight

Search with Autocomplete - Press Ctrl+F (or Cmd+F on Mac) to search. Results show node type with color coding.

Highlight Connections - Click on any node to highlight it and all connected nodes. Others will be dimmed.
Node Information

Tooltips - Hover over any node to see details: type, parent module, full path, lines of code, and connection counts (links in/out).
Links Count

Links Count Panel - Find nodes by their connection count. Filter by "links in" or "links out" with configurable threshold.
Unlinked Modules

Unlinked Panel - Shows modules with no connections. Click to navigate to them on the graph.
Massive Objects Detection

Massive Objects Panel - Find large code entities by lines of code. Filter by type (modules, classes, functions) with configurable threshold.
Display Settings

Display Filters - Show/hide nodes by type (Modules, Classes, Functions, External) and links by type (Module→Module, Module→Entity, Dependencies).
UI Tips

Built-in Help - Legend and keyboard shortcuts are always visible in the UI.
Installation
pip install codegraph
Usage
codegraph /path/to/your_python_code
This will generate an interactive HTML visualization and open it in your browser.
CLI Options
| Option | Description |
|---|---|
--output PATH |
Custom output path for HTML file (default: ./codegraph.html) |
--csv PATH |
Export graph data to CSV file |
--matplotlib |
Use legacy matplotlib visualization instead of D3.js |
-o, --object-only |
Print dependencies to console only, no visualization |
CSV Export
Export graph data to CSV for analysis in spreadsheets or other tools:
codegraph /path/to/code --csv output.csv
CSV columns:
name- Entity nametype- module / function / class / externalparent_module- Parent module (for functions/classes)full_path- File pathlinks_out- Outgoing dependencies countlinks_in- Incoming dependencies countlines- Lines of code
Changelog
See CHANGELOG.md for full version history.
Explorer des projets similaires
codecrafters-io/build-your-own-x
Maîtrisez la programmation en recréant de zéro vos technologies préférées.
561,398 étoilespublic-apis/public-apis
Une liste collective d'API gratuites
497,679 étoilesmorluto/rea
Rétro-ingénierie de n'importe quoi avec des agents, du comportement des applications jusqu'aux binaires natifs.
447,495 étoilesopenclaw/openclaw
L'IA qui fait vraiment les choses. Tout système d'exploitation, toute plateforme. À la manière du homard. 🦞
394,261 étoiles