Navigated to /docs/core/api

Core API reference

Choose the root, router, runtime, server, config, plugin, and experimental development entry points for the task.

Import from the narrowest public entry point

The root package provides common application APIs. Use the focused entry points for routing, browser rendering, server work, configuration, plugins, and development tooling. The /runtime entry point is available from Core 1.0.4.

TSPublic import map — copy only the imports you use
tsimport { createResource, createStore, createTavo, Seo } from "@tavojs/core";
import { defineRoutePage, navigate } from "@tavojs/core/router";
import { createSessionStorage } from "@tavojs/core/server";
import { defineConfig } from "@tavojs/core/config";
import { definePlugin } from "@tavojs/core/plugin";
import { createPagesTestHarness } from "@tavojs/core/dev";

Use entry points by responsibility

  • @tavojs/core: components, JSX, stores, actions, forms, resources, styling, localization, and common application APIs.

  • @tavojs/core/router: Auto Pages routes, navigation, loaders, actions, middleware, subscriptions, and route types.

  • @tavojs/core/runtime: focused browser rendering and template APIs, including createRoot, createStore, Deferred, ErrorBoundary, Image, and JSX types.

  • @tavojs/core/server: Node SSR, document rendering, sessions, and server utilities.

  • @tavojs/core/config and @tavojs/core/plugin: project configuration and Plugin API v1.

  • @tavojs/core/dev: experimental inspection, testing, instrumentation, validation, scheduling, and devtools.

  • @tavojs/core/server-only and the JSX runtime paths are technical integration boundaries.

Treat declarations as the exact contract

Guides explain how APIs fit together; generated TypeScript declarations remain authoritative for overloads, generic parameters, and return values in the installed version.

Rendering and production entry points

API / optionTypeDefaultBehavior
@tavojs/corestablesymbol-specificCommon application APIs. DOM, focus, ref, directive, and transition symbols are browser-only; JSX values, static rendering, and style registries also work on the server.
@tavojs/core/routerstablebrowser + serverAuto Pages routing, navigation, route modules, loaders, actions, middleware, subscriptions, and route types.
@tavojs/core/runtimestable since 1.0.4browserFocused browser rendering and template APIs: createRoot, createStore, directives, selected components, and JSX values and types.
@tavojs/core/serverstableserverNode SSR, document rendering, sessions, and server utilities.
@tavojs/core/configstablebuildConfiguration authoring helpers, exact project types, and Vite integration.
@tavojs/core/pluginstablebuild + server + browserPlugin-author declarations, manifests, phases, permissions, capabilities, stores, and compatibility helpers.
@tavojs/core/devexperimentaldevelopment + testsInspection, testing, instrumentation, validation, scheduling, devtools, configuration loading, overlays, and development servers.
@tavojs/core/server-onlystableserver markerEmpty side-effect boundary that rejects execution in a browser bundle.

Browse by responsibility

Search the complete API or open a focused reference for one framework responsibility.

Components, JSX, and DOM

Component contracts, JSX output, roots, refs, directives, focus, observers, and transitions from the root package.

Read guide →

Errors and code splitting

Error boundaries and lazy component contracts for pending, failure, and loaded states.

Read guide →

Runtime contracts

Shared state helpers, storage and unsubscribe contracts, diagnostics, and API stability metadata.

Read guide →

MVC, stores, and services

createTavo, controllers, application boot, services, stores, persistence, and selectors.

Read guide →

Data, actions, and async

Reference actions, forms, resources, deferred values, async ownership, and their public data contracts.

Read guide →

Localization, SEO, and assets

Localization state and routing, document head, SEO metadata, images, fonts, scripts, and style registries.

Read guide →

Router and Auto Pages

Routes, navigation, loaders, middleware, actions, route modules, status, prefetching, and subscriptions.

Read guide →

Server rendering and sessions

Node request handling, rendering, static caches, image optimization, environment loading, and sessions.

Read guide →

Configuration

Stable authoring helpers and exact project and Vite configuration contracts.

Read guide →

Plugin API

Plugin-author declarations, manifests, permissions, capabilities, phases, stores, and compatibility helpers.

Read guide →

Development and testing

Experimental testing, validation, diagnostics, instrumentation, scheduling, inspection, overlays, configuration loading, and development servers.

Read guide →