A modern, real-time collaborative todo application built with Datastar and Cloudflare Workers.
Live Demo: datastar.mohil.dev
Built with Datastar - a hypermedia framework that delivers reactive frontends without writing any client-side JS. All interactivity is driven by HTML attributes.
Multiple users can collaborate on the same todo list in real-time using Server-Sent Events (SSE) and Cloudflare Durable Objects for state synchronization.
- Cloudflare Workers for serverless compute at the edge
- Durable Objects for consistent real-time state management
- D1 Database for persistent storage
- Datastar for reactive UI without client JS
- Hono for routing
- React for server-side rendering
- Tailwind CSS for styling
# Install dependencies
bun install
# Generate database schema
bun run db:generate
# Apply migrations locally
bun run db:migrate:local
# Start development server
bun run devbun run deploy- Hypermedia-driven interactions using Datastar's
data-on-*attributes - Real-time broadcasting via Durable Objects and SSE streams
- Server-side rendering with React components
This showcases how modern web apps can be built with minimal complexity while delivering maximum performance and real-time capabilities.