@amorish/protocol
v0.1.0-beta.1
Published
Shared types, schemas, and message contracts for the Amorish widget bridge — install widgets into any Lovable app.
Maintainers
Readme
@amorish/protocol
Shared types, Zod schemas, and message contracts for the Amorish widget bridge.
Amorish lets any Lovable app embed widgets that are themselves Lovable apps —
plug-and-play widgets like reviews, chat, booking, analytics, and more, with a
secure postMessage bridge that handles theming, auth, data, and events.
This package contains zero runtime code beyond schema validation. It is the
single source of truth for the protocol — both @amorish/host and
@amorish/widget depend on it.
Install
npm i @amorish/protocol zodWhat's in here
AmorishManifest— the shape every widget app must publishPermission— declarable capabilities (read:theme,read:user,read:data,write:storage)HostMessage/WidgetMessage— typed envelopes for every message on the bridgeAmorishTheme— canonical design-token shape the host pushes to widgetsmanifestSchema,messageSchema— Zod schemas for runtime validationPROTOCOL_VERSION— bumped on breaking changes
See the full spec at https://amorish.dev/docs/protocol.
