r/angular • u/DmitryFI5 • Jan 02 '26
🎉 I built a VS Code extension to visualize Angular project structure and architecture
Enable HLS to view with audio, or disable this notification
Happy New Year, everyone! 🎄❄️✨
I have recently released GraphLens – a VS Code extension that generates interactive graphs and tree views of your Angular projects' structure and architecture in real-time.
GraphLens is intentionally designed to rely on pure static parsing and local processing rather than AI to ensure deterministic, consistent results and provide 100% data privacy. The main goal was to make the mental model of the project architecture visible and tangible at a glance.
✨ Bonus: Since it's the holiday season, I also added a toggleable Holiday Atmosphere mode with garlands, Santa hats and falling snow to keep the vibe chill 😉
👉 Links: GitHub Docs & Issues | VS Code Marketplace | GitHub Demo
Would appreciate hearing your feedback or feature requests!
11
u/Normal-Reaction5316 Jan 02 '26
Very cool. What did you use for building the graph? - I ask because I have a similar display need but for a completely different purpose, namely visualizing how regex expressions are evaluated.
9
u/Foxar Jan 02 '26
Saving this shit for later, great idea.
2
u/shellsofblue Jan 02 '26
This looks fantastic. I've a large angular project, I'll need to try this out on. Be great for refactoring.
2
u/Sweet_Maize_4275 Jan 02 '26
nice!!
1
u/GregHouse89 Jan 02 '26
Looks awesome. I will try it, although I basically stopped using modules in Angular… How does it do with standalone apps?
1
u/dsound Jan 03 '26
This is great! Do you happen to know if there's anything like this for React?
1
u/Soma91 Jan 03 '26
Looks very cool. Can you describe the difference of your visualization to what nx graph creates?
1
u/Xintsuai Jan 03 '26
Amazing!
1
u/coffee_is_all_i_need Jan 03 '26
Looks good! I need this for NestJS.
1
u/pyrophire Jan 03 '26
It seems to fail to load on any repo that has a shared module that exports other modules, components, directives, etc with the error [Overflow of recursive calls]
1
u/_Invictuz Jan 03 '26 edited Jan 03 '26
Sick, my routes are a mess, would love to see a visual graph of them to identify issues.
You're about 6 major versions behind with the NgModules though. Would it be feasible to diagram standalone dependencies or service dependencies? I'm not really sure of this use case. Maybe a chart of the provider/injection hierarchy to determine shared services at the route (environment hierarchy) and component (element hierarchy) to identify shared vs duplicate providers which is a common cause of bugs?
1
u/Gloomy_Course_4483 Jan 03 '26
Does it work with modules, only?
1
u/Reset_This Jan 04 '26
with material not work very well, i see error with matFromField and matSelectModule
1
u/Global_Inflation7 Jan 04 '26
Seems that post author is banned for something. It's mentioned in GitHub discussions. Let's wait for author's return.
1
u/MoreRest4524 Jan 05 '26
During the "GraphLens: Initial exploration", I can see it indexing various parts of the solution, then stops with: TypeError: Cannot read properties of undefined (reading 'options'), and I can't do anything after that - is there anyway to show more detailed errors ?
1
u/Specialist_Winter836 Jan 05 '26
Amazing 👏
1
u/Neat_Charge5144 Jan 08 '26
Hey can you also include services in a view?
1
u/MushroomTime5819 Jan 13 '26
I like the idea and the efforts that you put into it. Thank you.
However, it did not work for my project. I will come back soon to fix this.
0
u/piou_pio Jan 02 '26
hi what is the name of the extension on vscode? is it avaible on webstorm?
-2
u/revilo-1988 Jan 02 '26
Is this perhaps adaptable to other languages? I can imagine it could be useful for other languages like C# or Java projects.
1
u/[deleted] Jan 03 '26
[removed] — view removed comment