@useragent-kit/productkit-adapter-scale
v0.0.1
Published
SCALE-backed adapter that mounts ProductKit over SCALE messages for Triangle User Agent integrations
Maintainers
Readme
@polkadot-apps/productkit-adapter-scale
SCALE-backed adapter that mounts @polkadot-apps/productkit over a SCALE host
or an existing host bridge.
Install
npm install @polkadot-apps/productkit-adapter-scale @polkadot-apps/productkitUse mountScaleProductKit() from product code to install the narrow ProductKit
surface on window.host.
Positioning
This adapter exists for the narrow ProductKit compatibility layer, not for
the full @polkadot/api-protocol surface.
- use it when you have a SCALE-backed host bridge that only needs the ProductKit subset
- prefer
@polkadot-apps/product-sdkfor most new product integrations - use
@polkadot/api-protocolif you need the canonical full contract rather than the narrow compatibility subset
Minimal example
import { mountScaleProductKit } from "@polkadot-apps/productkit-adapter-scale";
mountScaleProductKit({
productAccountId: "browse.dot",
});Compatibility
- product-side package
- peer dependency on
@polkadot-apps/productkit - intended for SCALE-backed
window.hostbridges
Documentation
- Web product guide: https://github.com/paritytech/host-sdk/blob/main/site/src/content/docs/getting-started/web-product.md
- Positioning: https://github.com/paritytech/host-sdk/blob/main/site/src/content/docs/ecosystem/productkit-vs-api-protocol.md
- Quickstart: https://github.com/paritytech/host-sdk/blob/main/site/src/content/docs/getting-started/index.md
