# Examples

Each subdirectory is a self-contained, runnable example that exercises a specific
usage pattern of [`lakera-red-sdk`](https://www.npmjs.com/package/lakera-red-sdk).

## Quick start

```bash
# Copy all examples into your project
npx lakera-red-sdk init-examples

# Pick one and run it
cd lakera-red-examples/echo
cp .env.example .env        # fill in your credentials
npm install
npm start
```

## Available examples

| Example              | What it demonstrates                                                               |
| -------------------- | ---------------------------------------------------------------------------------- |
| [echo](./echo)       | Simplest integration — echoes attacks back. Verifies SDK setup works.              |
| [chatbot](./chatbot) | Stateful multi-turn chatbot with LLM (Claude) and session cleanup via try/finally. |
