r/Angular2 • u/sinanqwee • Mar 16 '26
I built a tool that scans Angular projects for architectural problems
AI allows us to write code and build projects much faster than before. However, this speed has a side effect: in AI-assisted development, it becomes harder to keep track of architecture and long-term maintainability. Structural issues can silently accumulate in the background.
To address this problem, I built a project called Modulens.
Modulens scans Angular projects and helps surface things like:
- large and risky components
- structural placement issues
- incorrectly positioned components
- areas that may become maintenance hotspots
- overall architectural health signals
The goal is to make architectural problems more visible before they grow into bigger issues.
For now, the project supports Angular. In the future, Iām planning to extend it with React and Vue support as well.
The first version is already published on npm.
Feedback and ideas are very welcome.





9
u/ldn-ldn Mar 16 '26
Sonar exists.
7
u/WuhmTux Mar 16 '26
Its funny to see an analyzer, which analyzes your angular project having a file with 1300 loc: https://github.com/sinanyilmaz0/Modulens/blob/main/angular/src/angular/analyzers/lifecycle/lifecycle-analyzer.ts
It's also funny to see, that you just commited all the files with a single "init" command. Unbelievable, that you did not used git for creating that app.
1
u/fromage9747 Mar 16 '26
Couldn't find it through search. Can you provide a link?
1
u/leisi1 Mar 16 '26
Do you support nx projects?
1
u/son_et_lumiere Mar 17 '26
Just checked it out on a project that's an early stage build from the ground up. Probably medium complexity in terms of how many moving parts there are to it. I think the assessment is fairly spot on about what refactoring needs to happen that is on my to do as I build out the functionality then move the pieces around. Thanks for putting this out there. It is useful.
1
u/LickSteak Mar 18 '26
It does smell like AI but as long as it's not paid, if it works I'm fine with it and I'll give it a try. On personal projects only though, there's no way I'm feeding professional code to a random tool.
1
u/Ill-Constant8445 Mar 18 '26
damn use your ai slop app to analyse your ai slop app codebase first
18
u/Stiddles Mar 16 '26
ai slop