Skip to content

A static code analyzer for Angulars Dependency Injection to catch NullInjectorErrors at compile-time

License

Notifications You must be signed in to change notification settings

HaasStefan/ng-di-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-di-analyzer logo

ng-di-analyzer

🧠 Rust-powered static analysis tool to detect NullInjectorError issues in Angular apps at compile-time.

Work in Progress Badge


What is ng-di-analyzer?

ng-di-analyzer is a blazing-fast CLI tool written in Rust that statically analyzes Angular projects to construct a full Dependency Injection (DI) tree and identify all possible paths that could lead to runtime NullInjectorError's.

Angular's DI system is powerful—but also brittle. In large applications, it’s easy to misconfigure providers or forget to add them in the right context. The result? A frustrating and often hard-to-reproduce NullInjectorError at runtime.

This tool shifts that pain to compile time.

Why use it?

  • ✅ Catch NullInjectorErrors before they happen.
  • ⚡ Rust-powered speed: Analyze large Angular codebases in seconds.
  • 🧩 Understand your DI graph like never before.
  • 🔍 Output all potential injection paths leading to errors.

About

A static code analyzer for Angulars Dependency Injection to catch NullInjectorErrors at compile-time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published