Hack #2: Cloudflare · Cloudflare
2 Apr, 15:59
Eternal Jam Session is a deployed collaborative AI music room. You open a shareable URL, hold to talk or type directions (e.g. “more pads, slower, no vocals”), and the app turns that into the next section of music while updating mood, a command timeline, and stem-style visuals for everyone in the room. Problem it solves: Typical AI music tools feel like one-off generations with no shared history. Here the jam is persistent: the room stores prompt history in SQLite, can auto-evolve when it’s been quiet (scheduled idle pass), and broadcasts state so collaborators see the same mix version and timeline—instantly, without refreshing. Cloudflare: Workers serve the Vite/React UI and /api routes (new room IDs, multipart voice upload for STT, audio fetch). The core is a JamRoom Durable Object via the Agents SDK: @callable RPC from the browser, Workers AI (Llama) as a “director” that outputs structured JSON for the next composition, and schedules for idle evolution. ElevenLabs: Scribe v2 for speech-to-text, Music API (stream) for the stereo bed, with hooks for sound effects and stem separation when the director asks for layers or ear candy. API keys stay server-side on the worker.
