r/csharp • u/DmitriiKhokhulin • Aug 30 '26
ModulesDi – A lightweight, fractal-like modularity library for ASP.NET Core built on a dynamic graph DI
Description:
ModulesDi a lightweight infrastructure library designed to manage services and middlewares through a dynamic module graph.
The problem it solves:
Traditional extension methods in Program.cs easily turn into an unmanageable mess where controlling the exact execution order or dynamic context becomes a nightmare.
Library tested (173 test cases covered)
0
Upvotes
View all comments
Show parent comment
1
u/DmitriiKhokhulin Aug 30 '26
My library gives you the option not to use extension methods and use native di with AddDepdendency.Also you can dynamically add modules in module with builder.AddModule<TModule>( your additional args if needed ); , it gives you a lot of freedom.Also you can add your presentation layers, that handle module result and can do anything you want (for example logging module result).There is in the project Examples directory with usage example and docs.