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
| Package | What it covers | API reference |
|---|---|---|
koel | The meta-package (re-exports core + http + flutter) | pub.dev/documentation/koel |
koel_core | Protocol kernel: events, errors, pipeline, reducer, client | pub.dev/documentation/koel_core |
koel_http | HttpAgent, SSE parser, transport interceptors | pub.dev/documentation/koel_http |
koel_flutter | Controller, scope, session storage, content parser, resolver | pub.dev/documentation/koel_flutter |
koel_widgets | Themeable chat UI primitives | pub.dev/documentation/koel_widgets |
koel_test | MockAgent, fixtures, conformance runner | pub.dev/documentation/koel_test |
koel_lints | The analyzer plugin + lint profile | pub.dev/documentation/koel_lints |
koel_agno | Agno backend bridge | pub.dev/documentation/koel_agno |
koel_langgraph | LangGraph backend bridge | pub.dev/documentation/koel_langgraph |
koel_runtime | CopilotKit runtime (v2 native-SSE) bridge | pub.dev/documentation/koel_runtime |
The links resolve once the packages are first published (Story 9.9). Until then, run
dart doclocally in any package — ormelos run docsfrom 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