Skip to main content

API Reference

The authoritative, always-current API reference for every koel package is the pub.dev "API" tab, generated from the in-source dart doc comments on each release. We deliberately do not vendor a copy of the generated HTML here — a checked-in copy rots and bloats, while the pub.dev tab is regenerated on every publish and versioned per release.

Every public symbol carries a doc comment (enforced by the public_member_api_docs analyzer lint) and every package builds clean under dart doc (the melos run docs gate, NFR-16), so the reference is complete by construction.

Per-package reference

PackageWhat it coversAPI reference
koelThe meta-package (re-exports core + http + flutter)pub.dev/documentation/koel
koel_coreProtocol kernel: events, errors, pipeline, reducer, clientpub.dev/documentation/koel_core
koel_httpHttpAgent, SSE parser, transport interceptorspub.dev/documentation/koel_http
koel_flutterController, scope, session storage, content parser, resolverpub.dev/documentation/koel_flutter
koel_widgetsThemeable chat UI primitivespub.dev/documentation/koel_widgets
koel_testMockAgent, fixtures, conformance runnerpub.dev/documentation/koel_test
koel_lintsThe analyzer plugin + lint profilepub.dev/documentation/koel_lints
koel_agnoAgno backend bridgepub.dev/documentation/koel_agno
koel_langgraphLangGraph backend bridgepub.dev/documentation/koel_langgraph
koel_runtimeCopilotKit runtime (v2 native-SSE) bridgepub.dev/documentation/koel_runtime

The links resolve once the packages are first published (Story 9.9). Until then, run dart doc locally in any package — or melos run docs from the repo root to build all ten at once.

Generating it locally

# all ten release packages, the NFR-16 build gate:
melos run docs

# or one package's HTML reference:
cd packages/koel_core && dart doc