Skip to main content
Modules group related providers into composable units with inferred tokens.

defineModule

Register on any container:

DefinedModule shape

types is a compile-time map for documentation; it is not populated at runtime.

Child containers with import

Compose feature containers with internal dependencies:
Merge into the app root:

Import options

Emits an import container event when observers are attached.

createBrushyApp

Shortcut for bootstrapping a single root module:
In development, enableBrushyDebug(container) is called automatically.

Export / introspection

Used by debug tooling and Container monitor.

Patterns

See Container for register, resolve, and parent/child hierarchy.