OTF Webv0.25.0
HomeDocsAPI
Change theme
↑↓navigate↵selectescclose
HomeDocsAPI
  • Overview
  • Core
  • Reactive Macros
  • Server
  • CLI
  • web-form
  • web-i18n
  • web-test
  • web-docs
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

CoreThe @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.CLIThe otfw command — dev server, production build, and static generation.

Packages

web-formcreateForm, the form object, and the register binding for forms and validation.web-i18ncreateI18n, the reactive t() translator, the fmt formatters, and the <T> component.web-testrender, queries, userEvent, and cleanup for component testing.web-docsConfig, layouts, components, and build plugins for docs & blog sites.
Next →Core
© Open Tech Foundation