Developer Rewrites Chat App with Cloudflare

Why this is here: The chatroom limits Luna AI assistant responses to 30 requests per hour within each room, balancing accessibility with resource management.
A developer in China rebuilt free4.chat, a web-based voice and text chatroom, using Cloudflare’s full stack. The project began four years ago and was previously rewritten in Elixir. This latest version uses Next.js 15 and Dyte/RTK for real-time communication.
The chatroom allows instant connection via a shared link without requiring registration. Users can share voice, text, images, files, and screens. A feature called Luna, an AI assistant, responds to questions tagged with "@luna" within each room, maintaining separate conversation histories.
The developer moved from AWS EC2 and Cloudflare Pages to a fully Cloudflare-hosted setup to reduce server maintenance. One ongoing challenge involves integrating the AI assistant directly as a voice participant, as the current real-time kit does not expose the necessary underlying interfaces. The developer welcomes feedback and contributions on GitHub.
Surfaced by the Solutions lens — one of the vital signs ovr.news reads.
How we evaluated this
AI summary
read the original for the full story — Read on v2ex.com . How we work →