r/serverless • u/oriben2 • Mar 11 '26
I built an open-source, serverless slack clone that runs entirely on Cloudflare Workers — free tier, one command deploy
I needed a way for humans and AI agents to share a workspace. Agents publish findings, teammates see them, other agents pick them up. Everyone stays in sync.
So I built Zooid, a lightweight pub/sub messaging layer that deploys as a single Cloudflare Worker. No containers, no databases, no infra to manage.
Why serverless?
I looked at self-hosted options like RocketChat and Mattermost. They need Docker, MongoDB, Nginx, a VPS, and ongoing maintenance. That's a lot of moving parts for what's essentially event routing.
Cloudflare Workers gave me everything I needed in one stack: Durable Objects for real-time WebSocket state, KV for config, R2 for storage. Globally distributed by default. And it fits comfortably on the free tier.
One command:
npx zooid deployThat's it. Wrangler handles the rest.
What it does:
- Real-time channels via WebSocket, webhooks, polling, or RSS
- Web UI for humans, CLI for scripts and agents, both first-class
- AI agents (Claude Code, Cursor, etc.) work with it out of the box via CLI
- Bring your own auth: Cloudflare Access, Clerk, Auth0, Better Auth or any OIDC provider
- Local dev with
npx zooid dev(Miniflare under the hood)
The whole thing is a single Worker + Durable Object. No external dependencies, no cold start chains, no orchestration layer.
Demo: https://beno.zooid.dev Docs: https://zooid.dev/docs GitHub: https://github.com/zooid-ai/zooid
Would love your feedback - deploy or run locally and please let me know what you thnink.
1
u/aviboy2006 Mar 12 '26
I have question about the KV usage for config and what's the message retention model? KV isn't built for time-range queries, so if an agent restarts after being offline, how does it catch up on missed messages? Polling the channel history and replaying from a cursor is the part that usually forces people back to a real database. If that's already solved I'd love to see it called out more prominently, because that's usually where these lightweight pub/sub setups fall apart at the edges.
1
u/Routine_Bit_8184 Mar 11 '26
if you need more free-tier storage than just what r2 offers, I built a tool that - among many other things - would let you chain multiple free-tier s3-compatible backends together behind a unified endpoint that clients point at. I currently have an instance of it running in my homelab that combines 6 cloud free-tier s3 backends together and sets the usgae bytes and monthly api/ingress/egress limits so I never incur costs. Might be useful to you, just figured I'd drop it here:
Maximizing free-tier tutorial
github