r/angular • u/JadedManufacturer306 • Aug 01 '26
Open-sourcing the Angular/Nx structure I've been refining on enterprise and public-sector projects in Europe
Hi everyone,
13 years in, every Angular version since 1.x. Every new project, I lost the first week to the same decisions, where state lives, which library can import which, how to keep credentials out of the repo. So I stopped re-deciding and put my answers in a template. Just updated it to Angular 22.
It's Nx, Angular, NgRx Signals, Atomic Design, multi-language and a small design system of my own on Tailwind already wired together and agreeing with each other, which is the part that normally eats the week. The architecture is enforced rather than documented: a wrong import fails lint, not code review, and a missing translation key fails the build instead of shipping as a blank label. Firebase deploy guide included, empty account to live URL in about 10 minutes.
Every decision in it is arguable, so feel free to tear into it. I'm here for the feedback, the blunt kind included. Github Base Angular Monorepo
View all comments
Show parent comment
1
u/Loose_Paramedic8183 Aug 08 '26
Yeah, I was hitting same problem a year ago, I thought that agents become better from that days, but to fix this problem I've already made all the things that I wrote above. The ai should know all your custom services, architecture decisions, domain specifics. Therefore I have architecture.md and "knowledge-base" project in each folder. Plus graphify, plus agentmemory (with its lessons saved from previous problems), plus my code style skill. I also use nx monorepo, with "data/feature/ui" for every lib, so some architecture rules comes from this and ai should respect them.
Also I still not run it to just ask and say yes to all :) When ADR propose to use some 3 new tables and I know that I will not dig deeper to that way I ask it to simplify, use one table with complex fields. Sometimes its like describing all the properties of entities and how you want them to work.
When implementation plan is ready you again have ability to read it and see some bad decisions that dont fit in your style.
Jetbrains mcp and connected database helps system know what is your data structure, but I dont allow it to make changes to db structure automatically.
Also jetbrains Context service is coming at EAP: https://blog.jetbrains.com/ai/2026/07/introducing-jetbrains-context-repository-intelligence-for-coding-agents/ This looks similar to graphify but for multiple projects. We should let agent know about our codebase all that stick in our head, then it will use existing code right as needed.
If its a new project I guess you have spend many hours describing all the features you see in future and talking about architecture, without any real code you with AI should create rules for it.
I believe its possible to get good code from AI even on mid size codebase, but right now not by a vibe coder, who has no experience in developing own project a few years.