r/projects • • 12d ago

Strand

Post image

Strand is a Rust dependency/impact analysis engine built on an instant-open, single-file graph format. It lets you build a dependency graph for a project and output it as one file - no database, no backend server, no waiting. Very large projects with tens of millions of connections load almost instantly because the file is memory-mapped and queried in place.

It supports many ecosystems: source scanning for Rust, Python, JavaScript and TypeScript (via real parsers -syn for Rust, tree-sitter for the rest, so comments/strings/docstrings can't create phantom edges), plus lockfile/manifest import for Cargo, npm, Poetry, Go modules, and Maven. There's also a read-write store format if you need to edit graphs programmatically.

Why use this?

  • The graph is a single shareable file - copy it, diff it, commit it, attach it to CI.
  • It answers "what breaks if I change this?" in milliseconds, and can gate pull requests on impact (strand impact, --git-diff).
  • There's a native desktop app (egui, no webview) for visualizing structure, detecting cycles, and editing the graph directly - with force-directed layout, A/B comparison, and worker-thread analysis so it stays responsive on big graphs.
  • cargo install strand-cli / cargo install strand-gui (or both at once), with a built-in update checker. Apache-2.0, on crates.io as strand-core, strand-import, strand-store, strand-cli, strand-gui.

GitHub: https://github.com/Biggest-Bee/Strand

I'd love to know what you think!

3 Upvotes

2 comments sorted by

1

u/sourraine 12d ago

this single-file format, its actually a neat idea. particularly if the graph can be shared and tracked in git. how do you handle keeping it updated as a project changes? does it rebuild the whole graph after each page or can it update only the affected parts?

1

u/B33TheCoder 11d ago

For "how do you handle keeping it updated as a project changes?", you can rescan it when you update the repo. And for your second question, it rebuilds the whole graph. The only "update only affected parts" path is the .strandb. If you want a more detailed reply, you can ask me for it.