Wyrly keeps framework integration thin. The core package owns tokens, providers, containers, scopes, validation, and graph inspection. Adapters create request scopes and expose them in framework-native ways.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.
Next.js App Router
Install:withDI for Route Handlers:
Express
Use the Express adapter to create one scope per request and access it from the request object.Hono
Use the Hono adapter for edge-friendly request scopes.Fresh
Use@wyrly/fresh for Fresh 2.x applications. The package is published on JSR.
GraphQL
Use the GraphQL adapter when each GraphQL request should own a DI scope and request-local loaders. This is useful for DataLoader instances, request context, authentication state, and disposable resources.Pick the adapter at the edge
Keep framework adapters in the outer layer of your application. Domain objects and use cases should depend on ports and value objects, not onRequest, Response, or framework context objects.