TLDRGraph 🌐
See the flow of your spaghetti code, VibeCoders. 🍝➡️⚡
Dynamic Multi-Layer Code Flow, Instant Semantic Call Tracing, and Interactive Architectural Navigation.
💡 What is TLDRGraph?
Modern codebases are messy. Microservices, multi-layer abstractions, dynamic API routes, and ORM calls create cognitive overload.
TLDRGraph cuts through the noise. It dynamically classifies your repository into tailored architectural layers, extracts cross-layer execution seams, tracks changes using zero-token SHA-256 hash gating, and provides both CLI flow tables and a lightning-fast standalone visualizer.
🏛️ Dynamic Architectural Layers
Rather than forcing every project into a rigid model, TLDRGraph automatically detects your codebase archetype or synthesizes dynamic architectural layers directly into .tldrgraph/layers.config.yaml:
- Full-Stack Web: Presentation & UI $\rightarrow$ API Gateway $\rightarrow$ Domain Services $\rightarrow$ Data & Persistence $\rightarrow$ Async Tasks $\rightarrow$ DevOps
- Backend APIs: API & Handlers $\rightarrow$ Domain Services $\rightarrow$ Persistence & Repositories $\rightarrow$ Background Jobs $\rightarrow$ Utilities
- CLI Applications: CLI & Commands $\rightarrow$ Core Flow Engine $\rightarrow$ Storage & Index $\rightarrow$ Agent Loop & UI $\rightarrow$ Utilities
- Libraries & SDKs: Public API $\rightarrow$ Core Engine $\rightarrow$ Types & Models $\rightarrow$ Adapters $\rightarrow$ Utilities
🚀 Quickstart
1. Install TLDRGraph
pip install tldrgraph
(For optional local ONNX neural embeddings: pip install "tldrgraph[embeddings]")
2. Scan & Classify Repository
tldrgraph scan .
This runs Graphify AST extraction, classifies architectural layers, builds offline local search indices, and creates .tldrgraph/layers.yaml.
3. Explore the Architecture Visually
tldrgraph ui --serve
Opens the interactive canvas:
- Modules overview at low zoom.
- Symbol details (classes, methods, inputs, outputs) as you zoom in.
- Click-to-isolate focused nodes with upstream callers and downstream callees.
- Live source viewing on demand with zero static HTML bloat.
- ⚠️ Dead Nodes filter to immediately isolate unreferenced candidate symbols.
4. Query Execution Flows
tldrgraph query "pension application approval flow"
Outputs readable Markdown execution flow tables tracing the request across UI, API, Service, and DB layers.
5. Trace Exact Call Paths
tldrgraph trace "ApplicationsController" "JhPensionApplication"
6. Review Dead Code & Reachability
tldrgraph dead-code
Surfaces orphaned components, unreferenced models, and unused files for human review.
🤖 AI Assistant Rules (tldrgraph install)
TLDRGraph supports seamless pairing with AI coding assistants (Claude Code, Cursor, and Antigravity):
tldrgraph install
Automatically writes agent instructions pointing to .tldrgraph/AGENT_CONTRACT.md:
.claude/skills/tldrgraph/SKILL.md+ delimited section inCLAUDE.md(Claude Code).cursor/rules/tldrgraph.mdc(Cursor).agents/rules/tldrgraph.md(Antigravity)
📁 Artifacts & Output Formats
All project state is kept in .tldrgraph/ (with automatic fallback to .codechakra/):
.tldrgraph/graph.json: Persisted multi-layer graph snapshot with cross-layer edges..tldrgraph/layers.yaml: Layer distribution and node definitions..tldrgraph/flows.yaml: Exported trace paths..tldrgraph/tldrgraph.db: Local SQLite content-hash cache for zero-token incremental updates..tldrgraph/TLDRGRAPH_VISUALIZER.html: Standalone zero-dependency visualizer.
🙏 Acknowledgements & Upstream Credits
TLDRGraph is built on the shoulders of giants. Sincere credit and special thanks to:
- Graphify by Safi Shamsi — for the AST parsing and knowledge graph extraction foundation.
📄 License
Distributed under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tldrgraph-0.1.0.tar.gz.
File metadata
- Download URL: tldrgraph-0.1.0.tar.gz
- Upload date:
- Size: 191.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590cf29efaf03e3bbaae5509094415b91e83a4d5cbcfc4afa2ba15219557bd5e
|
|
| MD5 |
c2e1ad126b784ceeeffdd7055a76c6f9
|
|
| BLAKE2b-256 |
f390223274926eb804677babca16d33aa764fd66e7fe77fc8795bc3720e91652
|
File details
Details for the file tldrgraph-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tldrgraph-0.1.0-py3-none-any.whl
- Upload date:
- Size: 149.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
406571f313298318e06f16719fddd9cd99102cf930a76f4dea41234411043049
|
|
| MD5 |
c53ea5714d52a29496120c95b02c39b1
|
|
| BLAKE2b-256 |
3442e47e3fd17dc2a2b5bd001daef6fb93e947db24d3900fbf13b941661f78c3
|