メインコンテンツへスキップ

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.

まず @wyrly/core をインストールします。フレームワークアダプターは、アプリで必要になったときだけ追加してください。

Deno 2.x

Deno project では JSR を使います。
deno add jsr:@wyrly/core
その後、@wyrly/core から import します。
import { createContainer, Injectable, token } from "@wyrly/core";

Node.js 20+

Node.js とバンドラーベースのアプリケーションでは npm を使います。
npm install @wyrly/core
import { createContainer, Injectable, token } from "@wyrly/core";

Bun

Bun では npm パッケージを使います。
bun add @wyrly/core
import { createContainer, Injectable, token } from "@wyrly/core";

Framework adapters

ランタイムに合うアダプターをインストールします。
RuntimePackage
Next.js App Router@wyrly/next
Express@wyrly/express
Hono@wyrly/hono
Fresh 2.x@wyrly/fresh
GraphQL request context@wyrly/graphql
たとえば Next.js adapter は次のようにインストールします。
npm install @wyrly/next @wyrly/core

要件

  • TypeScript 5+
  • 標準デコレーター
  • experimentalDecorators: false
  • ESM 対応のランタイムまたはバンドラー
  • Deno 2.x、Node.js 20+、Bun、または対応 Web フレームワーク
Wyrly は reflect-metadataemitDecoratorMetadata を必要としません。

リポジトリのローカル開発

Wyrly のソースに貢献する場合:
git clone https://github.com/valid-lab/wyrly.git
cd wyrly
deno task setup:hooks
deno task check
deno task test