Skip to content
Buy me a coffee

Interactive demos

Preview page for the interactive components. Each one runs the real @ylcnfrht/ioc source in the page.

Clock singletonUnitOfWork scopedRequest transient

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.

    6registrations
    0cycles
    0captive
    0missing
    ConfigSILoggerSIDbSIUserRepositorySCUserServiceSCUserControllerTR
    SI singletonSC scopedTR transient cycle captive dependencyClick a service to resolve it for real.
    No cycles, nothing missing, no captive dependencies.
    node app.ts
    $ node app.ts

    For free-form code, open the playground.