Interactive demos
Preview page for the interactive components. Each one runs the real @ylcnfrht/ioc source in the page.
Lifetimes and scopes
Section titled “Lifetimes and scopes”root provider
Event log
buildServiceProvider({ validateScopes: true })
Hover an instance to see everywhere it is shared. Each row is one resolution: the service and the instances injected into it.
Dependency graph
Section titled “Dependency graph”6registrations
0cycles
0captive
0missing
SI singletonSC scopedTR transient cycle captive dependencyClick a service to resolve it for real.
No cycles, nothing missing, no captive dependencies.
Landing-page demo
Section titled “Landing-page demo”node app.ts
$ node app.ts
For free-form code, open the playground.