VESPER PAGES

Cloudflare Pages demos connecting to the Vesper channel API at calapi.ai. All pages require a Vesper API key entered at runtime — keys are stored in sessionStorage only and never sent anywhere except calapi.ai.

SPY Tape — Polling spy-poll.html HTTP read-only Reads the last 5 SPY trades from the erik/sg-spy-tape Vesper channel via plain HTTP GET, repeated every 5 seconds. Simplest possible connection model: fetch, render, wait, repeat. Good baseline for debugging auth and CORS. SPY Tape — Live WebSocket spy-ws.html WebSocket real-time read-only Exchanges the API key for a 60-second single-use ticket via POST /auth/ticket, then opens a persistent WebSocket at wss://calapi.ai/ws. Subscribes to the channel and receives updates the moment they are published — no polling lag. Reconnects automatically on disconnect. SPY Tape — Control Panel spy-control.html HTTP WebSocket interactive Toggle between polling and WebSocket modes while the page is running. In polling mode, set the interval (in seconds) and change it on the fly — the timer restarts immediately. Switching modes tears down the current connection and starts the new one cleanly.