r/devtools • • 7d 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:

  1. 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 .strand graph 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.
  2. 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.

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/B33TheCoder 5d ago

Alright thank you. I will.

1

u/kantorcodes1 3d ago edited 3d ago

Leaving this here for when you have a minute, no rush at all. The Strand entry goes in the catalog README under Tools & Integrations, in your own words, and this guide covers the format: https://github.com/hashgraph-online/awesome-ai-plugins/blob/main/CONTRIBUTING.md

Happy to help if any part of it is unclear.

2

u/B33TheCoder 2d ago

My bad, I've been really busy these past few days I will add it in a few minutes. Thank you for the reminders.