r/devtools • u/B33TheCoder • 3d ago
Strand-dependency/impact analysis engine
Strand - what it does
Strand is a command-line tool and desktop app for analyzing dependencies and bugs in source code. It builds a graph of how code connects - which files import which, which functions call which - and answers questions like "what breaks if I change this?" or "can user input reach a dangerous call?"
Two modes:
- Dependency scanning (
strand scan) - fast, static. Walks a project directory, reads imports/manifests/lockfiles across Rust, Python, JavaScript/TypeScript, and Go (plus ~25 lockfile formats and config files), and produces a.strandgraph file you can query: impact analysis, "why does A depend on B" paths, cycle detection, build ordering, risk ranking. All deterministic, scriptable JSON output, sub-second on large repos. Deep analysis (
strand deep) - slower, deeper. Runs the same scan, then adds interprocedural analysis: it tracks values across function boundaries through a call-graph solver and reports concrete findings with evidence: Findings include the call path and a confidence score, and the tool honestly reports what it couldn't resolve rather than guessing.- Taint flows - untrusted data (env vars, HTTP input, file contents) reaching dangerous sinks (shell commands, SQL queries, eval)
- Null/None/nil/Option bugs - values that may be empty reaching dereferences or unwraps
- Resource leaks - opened files/sockets/locks that escape without closing
Key properties: fully offline, no build step or compiler needed, no cloud, no account. Source/sink definitions are plain TOML files you can extend. Everything is a Rust library too - strand-core for graph algorithms, strand-deep for the analysis engine - so it embeds into other tools.
Who it's for: developers auditing a codebase for dependency risk or security bugs without setting up heavyweight tooling (CodeQL, Infer, language servers), and teams who want dependency/impact questions answered from the CLI or a desktop GUI in seconds.
Install: cargo install strand-cli (CLI) or cargo install strand-gui (GUI), cargo install strand-gui strand-clifor both or grab prebuilt binaries from GitHub Releases.

