Installation
Install the Maestrio SDK in your project using your preferred package manager.
Install with your AI assistant
Use this pre-built prompt to install and configure the Maestrio SDK in seconds.
npm
npm install @maestrio/sdkpnpm
pnpm add @maestrio/sdkyarn
yarn add @maestrio/sdkScript tag (CDN)
You can also load the SDK directly via a script tag. The UMD build exposes a global MaestrioSDK object.
<script src="https://unpkg.com/@maestrio/sdk/dist/maestrio-sdk.umd.cjs"></script>
<script>
const sdk = MaestrioSDK.createMaestrio({
apiKey: "your-api-key",
baseUrl: "https://app.maestrio.ai",
projectId: "your-project-id",
});
</script>Requirements
- Browser environment — the SDK uses the DOM to render the feedback widget
- ES2017+ — if using the ES module build, your bundler should target modern browsers
The SDK has minimal dependencies (
litfor the web component,better-resultfor error handling) and adds ~15KB gzipped to your bundle.
Next step
Once installed, head to the Quick Start to initialize the SDK and show the feedback widget.