You’ll need a publisher account to obtain your
publisherToken and placement codes.npm
CDN
Or load the SDK from our CDN as a global script:window.KontextSdk. Replace {publisherToken} with your actual token.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install @kontextso/sdk-js via npm or load it from CDN.
publisherToken and placement codes.npm install @kontextso/sdk-js@4
<script src="https://server.megabrain.co/sdk/js?type=global&publisherToken={publisherToken}"></script>
window.KontextSdk. Replace {publisherToken} with your actual token.