Overview API Reference Complete reference for everything OTF Web exports, grouped by package. Start with the Core runtime and Reactive Macros — the rest are optional add-ons.
Core Core The @opentf/web runtime — mountApp, router, Link, lifecycle, and helpers. Reactive Macros $state, $derived, $effect, $ref, $expose, and the lifecycle hooks the compiler provides. Server @opentf/web/server — middleware, cookies, API routes, createFetchHandler, and runtime adapters. CLI The otfw command — dev server, production build, and static generation. Packages web-form createForm, the form object, and the register binding for forms and validation. web-i18n createI18n, the reactive t() translator, the fmt formatters, and the <T> component. web-test render, queries, userEvent, and cleanup for component testing. web-docs Config, layouts, components, and build plugins for docs & blog sites.