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

# Packages

> Wyrly DI パッケージとインストール先。

Wyrly は、焦点を絞った小さなパッケージ群として公開されています。

## パッケージ一覧

| Package          | Deno JSR | npm | Description                                        |
| ---------------- | -------- | --- | -------------------------------------------------- |
| `@wyrly/core`    | yes      | yes | Core container、tokens、lifetimes、validation         |
| `@wyrly/express` | yes      | yes | Express 5 middleware                               |
| `@wyrly/hono`    | yes      | yes | Hono middleware                                    |
| `@wyrly/graphql` | yes      | yes | GraphQL request scope                              |
| `@wyrly/next`    | yes      | yes | Next.js App Router helpers                         |
| `@wyrly/fresh`   | yes      | no  | Fresh 2.x helpers                                  |
| `@wyrly/fastify` | yes      | yes | Fastify 5 `diPlugin`（request scope + auto dispose） |
| `@wyrly/yoga`    | yes      | yes | GraphQL Yoga 5 `yogaDIPlugin`                      |
| `@wyrly/apollo`  | yes      | yes | Apollo Server 4+ `apolloDIPlugin`                  |

## コアパッケージ

まず core package をインストールします。

```sh theme={null}
deno add jsr:@wyrly/core
```

または:

```sh theme={null}
npm install @wyrly/core
```

## 必要に応じてアダプターを追加する

Next.js application の場合:

```sh theme={null}
npm install @wyrly/next @wyrly/core
```

Hono application の場合:

```sh theme={null}
deno add jsr:@wyrly/hono jsr:@wyrly/core
```

Express application の場合:

```sh theme={null}
npm install @wyrly/express @wyrly/core
```

Fastify application の場合:

```sh theme={null}
npm install @wyrly/fastify @wyrly/core
```

または:

```sh theme={null}
deno add jsr:@wyrly/fastify jsr:@wyrly/core
```

GraphQL Yoga の場合:

```sh theme={null}
npm install @wyrly/yoga @wyrly/core
```

または:

```sh theme={null}
deno add jsr:@wyrly/yoga jsr:@wyrly/core
```

Apollo Server の場合（peer: `@apollo/server`、`graphql` — [Framework adapters](/ja/guides/framework-adapters) を参照）:

```sh theme={null}
npm install @wyrly/apollo @wyrly/core
```

または:

```sh theme={null}
deno add jsr:@wyrly/apollo jsr:@wyrly/core
```

## レジストリリンク

* [JSR `@wyrly/core`](https://jsr.io/@wyrly/core)
* [npm `@wyrly/core`](https://www.npmjs.com/package/@wyrly/core)
* [GitHub repository](https://github.com/valid-lab/wyrly)
