Skip to content

API reference

Generated Dart reference for the public theme and scene packages.

The Dart API reference is generated from package doc comments at the same revision as the handbook.

Public packages

PackageAPI ReferenceScope
theme_sdkBrowse APIThemeDefinition, GreeterHost, state slots, and component factory contracts
sceneBrowse APISceneRuntime, ThemeTokens, background renderers, and motion builders
scene_schemaBrowse APISceneDocument, ScenePredicate, component/layout/preset contracts, validation, and JSON codec
greeter_componentsBrowse APIOptional reusable greeter widgets (StandardGreeterComponents)

For usage patterns and ownership boundaries, see Develop theme components and the Code map.

Documentation conventions

  • Document parameter contracts, return semantics, resource ownership, and short examples in /// doc comments directly on public symbols.
  • Keep cross-module tutorials in the handbook guides and link to this API reference rather than duplicating member lists.

Generate API docs locally

cd docs/site
npm run api

npm run api resolves dependencies, runs dart analyze, and invokes dart doc using the repository’s FVM SDK (or AKARI_FLUTTER_BIN / AKARI_DART_BIN overrides). Output HTML is written to docs/site/public/api/dart/ and ignored by Git.

To generate local documentation for the Rust backend, see the Backend code guide.