Framework-agnostic tooling that lets XRAY Mini Apps talk to host shells, plus React hooks on top of the core messenger.
xray-mini-app-sdk– core messaging utilities, types, and constants for secure iframe communication.xray-mini-app-sdk-react– React hooks that wrap the core messenger for idiomatic host and client patterns.
yarn install– install dependencies.yarn build– runstscin every workspace.yarn clean– removesdistfolders for each package (if the package defines the script).yarn publish:core/yarn publish:react– publishes the respective package to npm (--access publicis pre-configured).
- Update versions in the relevant package(s).
- Run
yarn installif dependencies changed to refresh the lockfile. - Run
yarn buildto verify the emitted bundles. - Publish with
yarn publish:coreoryarn publish:react.
Both packages ship TypeScript declarations alongside ESM builds, so they work out of the box in modern bundlers.