> ## 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.

# Example app

> Run the Vite demo against your own publisher token.

The [`sdk-js-demo`](https://github.com/kontextso/sdk-js-demo) repo ships a minimal Vite app you can run end-to-end against your own publisher token.

## Clone and configure

```bash theme={null}
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
```

<Note>
  The repo ships `PUBLISHER_TOKEN` preset to a shared demo token, so it runs out of the box. Replace it with your own token from the [publisher dashboard](/publishers#getting-started-is-easy) to test against your account — an invalid token makes the SDK return `ad.error` on `/init`.
</Note>

## 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.

## Links

* [NPM Package](https://www.npmjs.com/package/@kontextso/sdk-js)
* [JavaScript Demo Project](https://github.com/kontextso/sdk-js-demo)
