How angeloszou/graphlint works
Graphlint scans a project, parses supported languages into a dependency graph, identifies entry points and unreachable code, then persists an index that users query for dead-code and other warnings. The CLI and Python API are the main entry points; the DSH plugin offers a separate agent-facing query/build/configuration interface. Language-specific parsing is represented by backend nodes. Some relationships and capabilities are based on README documentation and SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: api.py Python API · registry.py Language registry · _types.py Graph data types · indexer.py Incremental indexer
Components 22
User interfaces
- CLI
graphlint/cli.py - Python API
graphlint/api.py - Project config
graphlint/config/manager.py
Graph analysis
- Graph builder
graphlint/analyzer/graph.py - Graph data types
graphlint/analyzer/_types.py - Reachability analysis
graphlint/analyzer/_graph_algo.py - Warning detection
graphlint/analyzer/warnings.py
Language backends
- Language registry
graphlint/analyzer/language/registry.py - Python analyzer
graphlint/analyzer/language/python/parser.py - Rust analyzer
graphlint/analyzer/language/rust/parser.py - C/C++ analyzer
graphlint/analyzer/language/cfamily/__init__.py - C# analyzer
graphlint/analyzer/language/csharp/parser.py - TS/JS analyzer
graphlint/analyzer/language/typescript/parser.py
Index and queries
- Incremental indexer
graphlint/incremental/indexer.py - Index persistence
graphlint/incremental/_db_ops.py - SQLite index
graphlint/storage/db.py - Index schema
graphlint/storage/schema.py - File hashing
graphlint/storage/hashing.py - Query engine
graphlint/query/engine.py - Result formatting
graphlint/query/formatter.py
Agent integration
- DSH tools
integrations/dsh/src/tools/query.ts
Other components
- Developer or agent
Connections 31
- Developer or agent → CLI: invokes
graphlint/cli.py - Developer or agent → Python API: calls
README.md - CLI → Python API: dispatches
graphlint/cli.py - Python API → Project config: loads config
graphlint/api.py - Python API → Incremental indexer: builds index
graphlint/api.py - Python API → Query engine: runs queries
graphlint/api.py - Python API → Language registry: creates registry
graphlint/api.py - Language registry → Python analyzer: selects backend
- Language registry → Rust analyzer: selects backend
- Language registry → C/C++ analyzer: selects backend
- Language registry → C# analyzer: selects backend
- Language registry → TS/JS analyzer: selects backend
- Python analyzer → Graph data types: produces parse data
graphlint/analyzer/language/python/parser.py - Rust analyzer → Graph data types: produces parse data
graphlint/analyzer/language/rust/parser.py - C/C++ analyzer → Graph data types: produces parse data
graphlint/analyzer/language/cfamily/__init__.py - C# analyzer → Graph data types: produces parse data
graphlint/analyzer/language/csharp/parser.py - TS/JS analyzer → Graph data types: produces parse data
graphlint/analyzer/language/typescript/parser.py - Incremental indexer → Language registry: scans files
graphlint/incremental/indexer.py - Incremental indexer → Graph builder: builds graph
graphlint/incremental/indexer.py - Graph builder → Graph data types: uses graph types
graphlint/analyzer/graph.py - Graph builder → Reachability analysis: analyzes reachability
graphlint/analyzer/graph.py - Graph builder → Warning detection: collects warnings
graphlint/analyzer/graph.py - Incremental indexer → File hashing: checks file hashes
graphlint/incremental/indexer.py - Incremental indexer → Index persistence: persists changes
graphlint/incremental/indexer.py - Index persistence → SQLite index: writes index
graphlint/incremental/_db_ops.py - SQLite index → Index schema: initializes schema
graphlint/storage/db.py - Query engine → SQLite index: reads index
graphlint/query/engine.py - Python API → Result formatting: formats results
graphlint/api.py - Result formatting → Query engine: formats query output
graphlint/query/formatter.py - Developer or agent → DSH tools: uses agent tools
README.md - DSH tools → CLI: runs CLI query
integrations/dsh/src/tools/query.ts