Generate copy-paste SDK and curl snippets without setting up a project. Point at your Worker, mint a JWT with pnpm first-message, then run locally.
import { FluxyChatClient } from "@fluxy-chat/sdk";
const client = new FluxyChatClient({
baseUrl: "http://127.0.0.1:8787",
userId: "demo-user",
token: process.env.FLUXY_MEMBER_JWT!, // mint via POST /auth/token
});
await client.createMessage("dev-local-general", "Hello from the docs playground");curl -sS -X POST "http://127.0.0.1:8787/messages" \
-H "Authorization: Bearer $FLUXY_MEMBER_JWT" \
-H "Content-Type: application/json" \
-d '{"roomId":"dev-local-general","content":"Hello from the docs playground"}'For a live end-to-end run, use Quickstart or the dashboard demo room.