> ## 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.

# Public API

> Wyrly DI v2.2 の安定した public exports。

このページでは、Wyrly DI v2.2 の安定した公開 API をまとめます。

リポジトリの `API.md` に記載されていないものは、内部モジュールやディープインポートを含め、セマンティックバージョニングの保証対象外です。

## `@wyrly/core`

コアのエントリポイント:

```ts theme={null}
import { createContainer, Injectable, token } from "@wyrly/core";
```

主なエクスポート:

| Export            | Purpose                               |
| ----------------- | ------------------------------------- |
| `token`           | 型付きインジェクショントークンを作成する                  |
| `Injectable`      | 明示的な `deps` と `lifetime` のための標準デコレーター |
| `createContainer` | ルート DI コンテナを作成する                      |
| `graphToJson`     | 依存グラフを JSON にシリアライズする                 |
| `graphToDot`      | 依存グラフを DOT にシリアライズする                  |
| `graphToMermaid`  | 依存グラフを Mermaid にシリアライズする              |

コアの型:

* `Token`
* `ClassToken`
* `InjectionToken`
* `Lifetime`
* `Container`
* `Scope`
* `Provider`
* `DependencyGraph`
* `ValidationResult`

## 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`          |
| `@wyrly/fastify` | `diPlugin`, `getDI`, `FastifyRequestToken`, `FastifyReplyToken`         |
| `@wyrly/yoga`    | `yogaDIPlugin`, `yogaContext`, `createYogaDIContext`                    |
| `@wyrly/apollo`  | `apolloDIPlugin`, `createApolloDIContext`, `toFetchRequest`             |

## Full API list

完全な公開 API の一覧はリポジトリにあります。

[API.md](https://github.com/valid-lab/wyrly/blob/main/API.md)
