Skip to main content

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.

This page summarizes the stable public API surface for Wyrly DI v2.0. Anything not listed in the repository’s API.md is not part of the semver guarantee, including internal modules and deep imports.

@wyrly/core

Core entrypoint:
import { createContainer, Injectable, token } from "@wyrly/core";
Common exports:
ExportPurpose
tokenCreate a typed injection token
InjectableStandard decorator for explicit deps and lifetime
createContainerCreate the root DI container
graphToJsonSerialize a dependency graph to JSON
graphToDotSerialize a dependency graph to DOT
graphToMermaidSerialize a dependency graph to Mermaid
Core types include:
  • Token
  • ClassToken
  • InjectionToken
  • Lifetime
  • Container
  • Scope
  • Provider
  • DependencyGraph
  • ValidationResult

Adapter packages

PackageKey exports
@wyrly/expressdiMiddleware, ExpressRequestToken, ExpressResponseToken
@wyrly/honodi, getDI, HonoContextToken, RequestToken
@wyrly/freshdi, withDI, FreshContextToken, RequestToken
@wyrly/graphqlcreateGraphQLDIContext, GraphQLRequestToken, GraphQLResponseToken
@wyrly/nextwithDI, withActionDI, createServerDI, NextRequestToken

Full API list

The full public API list lives in the repository: API.md