> ## 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 Next.js demo against your own publisher token.

The [`sdk-react-demo`](https://github.com/kontextso/sdk-react-demo) repo ships a minimal Next.js 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-react-demo.git
cd sdk-react-demo
npm install
# Edit src/app/constants.ts and set PUBLISHER_TOKEN + PLACEMENT_CODE.
npm run dev
```

<Note>
  The repo ships placeholder constants — replace `PUBLISHER_TOKEN` with your token from the [publisher dashboard](/publishers#getting-started-is-easy) and set `PLACEMENT_CODE` to a placement enabled for your publisher (typically `inlineAd`).
</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-react)
* [React Demo Project](https://github.com/kontextso/sdk-react-demo)
