Contract Package
Use @ddgutierrezc/legato-contract when you need shared contract primitives without Capacitor runtime behavior.
Install
Section titled “Install”-
Install the package.
Terminal window npm install @ddgutierrezc/legato-contract -
Import from the package root.
import { LEGATO_EVENT_NAMES } from '@ddgutierrezc/legato-contract'; -
Build your app against typed contract events, snapshots, and invariants.
Package role
Section titled “Package role”- Contract-only surface for
track,state,queue,snapshot, anderrors. - Event constants and payload maps, including
LEGATO_EVENT_NAMES. - Capability and invariant helpers.
- Transport-neutral
binding-adaptercontract primitives.
Learn by path
Section titled “Learn by path”- Start with First contract integration for onboarding without Capacitor runtime dependencies.
- Use How-To Guides for task-oriented implementation patterns.
- Read Explanation for contract architecture and snapshot model rationale.
- Continue with the Contract reference for core type and event semantics.
Public export contract
Section titled “Public export contract”- ✅ Supported: root import from
@ddgutierrezc/legato-contract. - ❌ Unsupported: undocumented deep imports like
@ddgutierrezc/legato-contract/dist/*.
Support and community
Section titled “Support and community”- Community hub: Community
- Discord: https://discord.com/invite/Hhnumyk2N
- LinkedIn: https://www.linkedin.com/in/ddgutierrezc