Back to browse
GitHub Repository
3 starsTypeScript

Accord – Serverless Discord Clone Running on Cloudflare Workers

by rkm1999·Feb 17, 2026·2 points·0 comments

AI Analysis

●●SolidWizardryBold Bet
The Take

It runs an entire real‑time chat stack on Cloudflare: Durable Objects hold per‑room socket/state, D1 stores message history, R2 handles uploads, and there's mesh WebRTC plus push notifications — neat as a systems demo. Clever and practical as a reference architecture, but mesh video and Durable Object quotas expose scaling tradeoffs if you try to run a large public Discord competitor.

Category
Target Audience

Developers, Cloudflare Workers users, hobbyists exploring serverless realtime apps and self-hosted chat platforms

Post Description

It's a Discord-inspired chat app that runs entirely on the Cloudflare ecosystem:

Workers for the API and serving the React frontend.

Durable Objects to manage WebSocket connections and state (each chat room is a DO).

D1 (SQLite) for message persistence and history.

R2 for file uploads.

I wanted to see if I could build a fully functional, real-time chat platform without managing a single container or VPS. It supports voice/video calls via WebRTC (mesh topology), file sharing, and even push notifications.

The project is AGPLv3 licensed. I'd love to hear your thoughts on the architecture or answer any questions about working with Durable Objects!

Similar Projects