@agentprodready/composition
v1.0.1
Published
**Composition root ownership — instantiate and wire platform dependencies without scattering `new` across the app.**
Readme
@agentprodready/composition
Composition root ownership — instantiate and wire platform dependencies without scattering new across the app.
| | |
|---|---|
| Status | Production contracts published |
| Install | npm install @agentprodready/composition |
| Module | ESM · Node.js >=22 <25 |
| License | MIT |
| Repository | ameenmari/agentprodready |
When to use
You are assembling a production host (or studying how the reference host is wired).
Prefer not to start here if you are embedding a weekend agent — createAgent owns embedded composition for you.
Install
npm install @agentprodready/compositionSample
import { CompositionRoot } from '@agentprodready/composition';
const root = new CompositionRoot();
root.build();
// Host registers providers/adapters on the root — Composition owns instantiation lifetime.
await root.dispose();Ownership
| Owns | Does not own | |---|---| | Instantiation ownership; composition graph lifetime | Authorization; Runtime orchestration; capability selection policy |
Documentation
License
MIT © 2026 ameenmari
