Call site never changes
Bind a replacement in a registry and activate it for a scope. The binding runs inside that scope. Callers stay untouched.
Call site never changes
Bind a replacement in a registry and activate it for a scope. The binding runs inside that scope. Callers stay untouched.
One identity, three jobs
A capability is its own registry key, type contract, and default implementation. No tokens, no string lookups, no container.
Misuse doesn't compile
A binding with the wrong signature is a compile error, and requires() makes
a missing binding one too.
Nothing extra
Zero dependencies, ESM only, side-effect free. v0.1.0 bundles to 1.7 KB min+gzip.
New here? Read the Introduction for what mycl is and when to reach for it, or jump straight to the Quick Start.