antoine-coulon / skott

All-in-one devtool to automatically analyze, search and visualize project modules and dependencies from JavaScript, TypeScript (JSX/TSX) and Node.js (ES6, CommonJS)
MIT License
684 stars 27 forks source link

Feature request: list frequency of import/export arrows per file node #181

Open MengLinMaker opened 5 days ago

MengLinMaker commented 5 days ago

Summary

For context, I'm using skott to help port libraries between frameworks. But porting a library with a team requires coordination and prioritisation.

I would like to prioritise files that are imported most frequently so less blockers occur.

Details

Could add a config somewhere to show how frequency of imports/exports per file on each node.

I'd imagine implementation is a matter of changing nodeId or some sort of name to display the number of imports and edges.

Or an alternative UX is to sort each row by number of exports.

Standard questions

Would you consider contributing a PR?

YES

antoine-coulon commented 2 days ago

Hey @MengLinMaker, thanks again for thinking about enhancing the visualization!

frequency of imports/exports per file on each node

Could you please provide an example of what you meant?

MengLinMaker commented 2 days ago

Critical files are imported to other files frequently. Non-critical files are not imported less frequently.

20241121_010438.jpg

This would be used to indicate which files should be ported with high priority. A number could be added to show how many times a file is imported.