Public host APIs
Communicate with channels, projects, workflows, navigation, and supported platform services through a typed contract.
Miniapp developers
Build typed, portable mini apps that plug into platform surfaces, lifecycle, host APIs, and Module Federation packaging through one public SDK.
Public npm package
Miniapp SDK
pnpm add @theaiplatform/miniapp-sdk Install directly from npmjs. No private registry configuration is required.
One public contract
The SDK keeps host communication, package configuration, and runtime integration explicit so your miniapp remains portable.
Communicate with channels, projects, workflows, navigation, and supported platform services through a typed contract.
Mount responsive product surfaces with explicit lifecycle, event, asset, and cleanup boundaries.
Configure, assemble, and verify Module Federation targets with the SDK Rspack integration and package schema.
Supported targets
Declare only the targets your miniapp needs. Each target ships as an independently verifiable module graph inside the same package.
Interactive workspace surfaces for desktop clients.
Touch-ready surfaces for mobile clients.
Portable tools and actions in a sandboxed runtime.
Service-side handlers for worker runtimes.
Server-side integrations in a Node.js runtime.
Workflow nodes and host-side execution adapters.
Downloading, installing, copying, accessing, or using the SDK constitutes acceptance of its license. The SDK has no separate license fee and is provided as-is. Review the policies that govern SDK use, security research, and marketplace participation.
Start building
Follow the public guides for setup, lifecycle, host communication, package targets, and deployment selection.