How-to Guides
StackBlitz examples
Run FluxyChat SDK demos in your browser with no install. Uses the public /demo/session guest endpoint.
StackBlitz examples
Open a pre-configured project in StackBlitz and chat in seconds. Templates call GET /demo/session on the hosted Worker for a guest JWT. No API key goes in the browser.
Where to open them
| Place | Templates |
|---|---|
| fluxychat.com/docs | All three templates in the Interactive examples section |
| fluxychat.com/guides | Open in StackBlitz on selected guides (Workers, Next.js, agent events) |
| Console → Code Templates | Gallery and custom snippet editor |
Templates
| Template | What you get |
|---|---|
| Basic connection | Vanilla JS: connect, join demo room, send messages |
| React chat UI | React + useChat: room list and composer |
| AI agent chat | Same demo room with an AI agent that replies |
Requirements
The hosted Worker must have DEMO_ENABLED=true and a configured demo room. If demo is off, replace BASE_URL in the StackBlitz project and mint a JWT from your backend with POST /auth/token.
Try the full product UI without signup: Public demo.