Contract package
Contract-only surface for tracks, snapshots, events, errors, capabilities, and invariants.
Use this hub when you need to decide which Legato package to adopt first.
For the canonical package support view, use the Compatibility and Support Matrix.
| If your first risk is… | Start with | Why |
|---|---|---|
| Shared playback semantics across layers (events, snapshots, invariants) | @ddgutierrezc/legato-contract | You stabilize app vocabulary and behavior assumptions before runtime wiring. |
| Native playback runtime integration in a Capacitor app (commands, media session, listeners) | @ddgutierrezc/legato-capacitor + @ddgutierrezc/legato-contract | You get runtime APIs while keeping the same shared contract model across app layers. |
| Native playback runtime integration in an Expo React Native app | @ddgutierrezc/legato-react-native + @ddgutierrezc/legato-contract | You get Expo Modules runtime bindings plus explicit host and parity evidence boundaries. |
Contract package
Contract-only surface for tracks, snapshots, events, errors, capabilities, and invariants.
Capacitor package
Capacitor runtime integration for audioPlayer, mediaSession, listeners, and sync helpers.
React Native package
Expo Modules runtime binding with parity-scoped API, host boundaries, and evidence-guided validation.
@ddgutierrezc/legato-contract aligned to the same supported line.If you want an opinionated onboarding sequence, continue with Golden Paths.