Strand - Dependencies/Impact Analysis engine
Hi guys, I've been working on Strand. Strand is a local command-line and GUI tool which can tell you a node's dependencies, and what would happen if those changed. Strand is in Rust and analyses Rust, Python and JS/TS code, and also some lock and build metadata. Nothing is sent outside your computer.
https://github.com/Biggest-Bee/Strand
Functionality
- Analysis of dependencies, analysis of secondary effects (see above), cycle analysis and 'why’, which identifies the minimal chain of dependencies.
- Inter-language relationships where possible.
Design:
- Graphs are represented using a compressed sparse row format. Data is stored in a file and accessed with mmap. [Insert specific data e.g. ‘Analysis of requires Xs initially and Yms to analyse secondary effects for N nodes’.]
- There is single writer access. Multiple readers can mmap the file. I am currently considering how best to handle situations where the file is modified whilst being mmapped (which can cause SIGBUS).
- This is a may analysis and there is no type analysis. Consequently, there are areas which cannot always be analysed – for instance, in JS and Python, calls such as obj.m() on an object created within that code, plus more generally issues of dynamic dispatch.
- For large graphs, the impact analysis is approximate. This is noted in the results.
Please let me know your views on:
Of lock files, temp-file-write/ rename and/or checksum verification upon opening, which do you favour for use with an mmap? What have you found problematic?
Should I first implement a basic name-based function to find function calls, and then add type-aware functionality? Or should I jump to a more sophisticated solution?
Any specific issue relating to my Rust implementation. Perhaps structural or performance related.
I am happy to discuss further the inner workings of Strand.
(in case anyone want to try it out, run these commands: cargo install strand-cli(for the cli), cargo install strand-gui(for the gui), or cargo install strand-gui strand-cli(for both))

p/gatrends
p/dino-kids
p/runevr
p/google-cloud-platform
p/producthunt
p/expert-chase-deleted-1107920
p/magic-lasso-adblock
p/meridian-16
p/problemhunt
p/dex-by-exmergo
p/neoagent
p/pretty-prompt
p/skim-5
p/mindpal-ai
p/palance
p/clocknext
p/ohhai
p/netfox
p/monocloud-for-startups-free-for-1-year
Replies
Be the first to reply
Have a question or a thought to share? Add a comment above to start the conversation.