Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.kontext.so/llms.txt

Use this file to discover all available pages before exploring further.

The sdk-js-demo repo ships a minimal Vite app you can run end-to-end against your own publisher token.

Clone and configure

git clone https://github.com/kontextso/sdk-js-demo.git
cd sdk-js-demo
npm install
# Edit main.js and set PUBLISHER_TOKEN to your real token.
npm run dev
The repo ships PUBLISHER_TOKEN = '<your publisher token>' as a placeholder. Replace it with your token from the publisher dashboard before running. Until then the SDK will return ad.error on /init.

What you should see

After npm run dev, open the printed local URL in a browser. The demo presents a chat interface with seeded user + assistant messages. As you send a message, the SDK fires /preload in the background and renders an ad below the assistant’s reply.