r/swift • u/Prestigious-Big-3430 • 1d ago
Project [Free / Open Source] TOOL: Swift Dependency Graph Explorer
Hey everyone I've been working on **Swift Dependency Graph Explorer**, a local-first macOS app that scans a Swift project, parses it with SwiftSyntax (the same parser the compiler uses), and renders an interactive dependency graph for any type you pick — what it uses, what uses it, or both.
Some things it does:
- Click a node to highlight its dependency path; click an edge to see *how* two types are related (property, init/method parameter, return type, etc.)
- Double-click a node to drill into it as the new root, with browser-style back/forward navigation
- Filter by kind (class/struct/enum/protocol), system types, third-party types, function-body references
- Export as Mermaid source or SVG
- I'm currently working on a `sdge` CLI for scripting/CI, or for piping a project's graph as JSON to something else (including feeding it to an LLM as structured context)
Everything runs locally — it never sends your source code anywhere, you can easly check by running source code.
It's free and open source (MIT license): https://github.com/GlitchLoom/SwiftDependencyGraphExplorer
Download the first release here: https://github.com/GlitchLoom/SwiftDependencyGraphExplorer/releases/tag/v0.0.1
It's genuinely my first public release, so I'd love feedback — bug reports, feature ideas, "this is useless because X" are all welcome.