このページでは、Wyrly DI v2.0 の安定した公開 API をまとめます。 リポジトリのDocumentation Index
Fetch the complete documentation index at: https://docs.wyrly.dev/llms.txt
Use this file to discover all available pages before exploring further.
API.md に記載されていないものは、内部モジュールやディープインポートを含め、セマンティックバージョニングの保証対象外です。
@wyrly/core
コアのエントリポイント:
| Export | Purpose |
|---|---|
token | 型付きインジェクショントークンを作成する |
Injectable | 明示的な deps と lifetime のための標準デコレーター |
createContainer | ルート DI コンテナを作成する |
graphToJson | 依存グラフを JSON にシリアライズする |
graphToDot | 依存グラフを DOT にシリアライズする |
graphToMermaid | 依存グラフを Mermaid にシリアライズする |
TokenClassTokenInjectionTokenLifetimeContainerScopeProviderDependencyGraphValidationResult
Adapter packages
| Package | Key exports |
|---|---|
@wyrly/express | diMiddleware, ExpressRequestToken, ExpressResponseToken |
@wyrly/hono | di, getDI, HonoContextToken, RequestToken |
@wyrly/fresh | di, withDI, FreshContextToken, RequestToken |
@wyrly/graphql | createGraphQLDIContext, GraphQLRequestToken, GraphQLResponseToken |
@wyrly/next | withDI, withActionDI, createServerDI, NextRequestToken |