{"_id":"@amorish/protocol","name":"@amorish/protocol","dist-tags":{"beta":"0.1.0-beta.1","latest":"0.1.0-beta.1"},"versions":{"0.1.0-beta.1":{"name":"@amorish/protocol","version":"0.1.0-beta.1","description":"Shared types, schemas, and message contracts for the Amorish widget bridge — install widgets into any Lovable app.","license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup","prepublishOnly":"tsup"},"keywords":["amorish","widget","marketplace","lovable","iframe","postmessage","embed","sdk"],"peerDependencies":{"zod":"^3.0.0 || ^4.0.0"},"publishConfig":{"access":"public"},"_id":"@amorish/protocol@0.1.0-beta.1","gitHead":"b09dedc59e2bd3346468fd919be8e95eaabc5114","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-DKlfmI7DdqmtP84509YJBdQKHNZZasQxftO31T2H5E6ESrOyXK175PCW+LOBBAsqyY3pxVGU0jP+cWr046wxrw==","shasum":"fc750a55434dd5aef568f49d4b04e3670a0f1d7d","tarball":"https://registry.npmjs.org/@amorish/protocol/-/protocol-0.1.0-beta.1.tgz","fileCount":8,"unpackedSize":76707,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDiajawLQ5b+7G8SWfhM1oDPQGKfp43dn9UUGbQ9u+D5wIhAJyy8pjf6XO3IdFBs0uMKikQhTGRmIooSeHFglLS28B7"}]},"_npmUser":{"name":"deekshant-amorish","email":"deekshant@highclarity.com"},"directories":{},"maintainers":[{"name":"deekshant-amorish","email":"deekshant@highclarity.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/protocol_0.1.0-beta.1_1776394395651_0.7134457534830463"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-17T02:53:15.590Z","0.1.0-beta.1":"2026-04-17T02:53:15.832Z","modified":"2026-04-17T02:53:16.005Z"},"maintainers":[{"name":"deekshant-amorish","email":"deekshant@highclarity.com"}],"description":"Shared types, schemas, and message contracts for the Amorish widget bridge — install widgets into any Lovable app.","keywords":["amorish","widget","marketplace","lovable","iframe","postmessage","embed","sdk"],"license":"MIT","readme":"# @amorish/protocol\n\nShared types, Zod schemas, and message contracts for the **Amorish** widget bridge.\n\nAmorish lets any Lovable app embed widgets that are themselves Lovable apps —\nplug-and-play widgets like reviews, chat, booking, analytics, and more, with a\nsecure `postMessage` bridge that handles theming, auth, data, and events.\n\nThis package contains zero runtime code beyond schema validation. It is the\nsingle source of truth for the protocol — both `@amorish/host` and\n`@amorish/widget` depend on it.\n\n## Install\n\n```bash\nnpm i @amorish/protocol zod\n```\n\n## What's in here\n\n- `AmorishManifest` — the shape every widget app must publish\n- `Permission` — declarable capabilities (`read:theme`, `read:user`, `read:data`, `write:storage`)\n- `HostMessage` / `WidgetMessage` — typed envelopes for every message on the bridge\n- `AmorishTheme` — canonical design-token shape the host pushes to widgets\n- `manifestSchema`, `messageSchema` — Zod schemas for runtime validation\n- `PROTOCOL_VERSION` — bumped on breaking changes\n\nSee the full spec at <https://amorish.dev/docs/protocol>.\n","readmeFilename":"README.md","_rev":"1-93fab4fb2d6082def06196c0407c05d4"}