Skip to content

Install di-craft

di-craft is published as an ESM-first TypeScript library and includes its type declarations.

Terminal window
npm install di-craft
Import Use it for
di-craft Tokens, providers, containers, scopes, and annotations
di-craft/node Async request scopes backed by AsyncLocalStorage
di-craft/next/server Next.js App Router server composition
di-craft/next/client Hydrating serializable client state

Next, build your first container.