Skip to content

A starter and reference for building full-stack web applications on Cloudflare Workers

Notifications You must be signed in to change notification settings

epicweb-dev/epicflare

Repository files navigation

epicflare logo

A starter and reference for building full-stack web applications on Cloudflare Workers

Build Status TypeScript Bun Cloudflare Workers Remix


epicflare ships a Remix-powered UI, server routing, and OAuth-protected MCP endpoints so you can build both a user-facing app and tooling APIs on the same Worker.

Quick Start

bunx create-epicflare

This will clone the template, install dependencies, run the guided setup, and start the dev server.

See docs/getting-started.md for the full setup paths and expectations.

Tech Stack

Layer Technology
Runtime Cloudflare Workers
UI Framework Remix 3 (alpha)
Package Manager Bun
Database Cloudflare D1
Session/OAuth Cloudflare KV
MCP State Durable Objects
E2E Testing Playwright
Bundler esbuild

How It Works

Request → worker/index.ts
              │
              ├─→ OAuth handlers
              ├─→ MCP endpoints
              ├─→ Static assets (public/)
              └─→ Server router → Remix components
  • worker/index.ts is the entrypoint for Cloudflare Workers
  • OAuth requests are handled first, then MCP requests, then static assets
  • Non-asset requests fall through to the server handler and router
  • Client assets are bundled into public/ and served via the ASSETS binding

Documentation

Document Description
docs/getting-started.md Setup, environment variables, deploy
docs/environment-variables.md Adding new env vars
docs/agents/setup.md Local development and verification

Built with ❤️ by Epic Web

About

A starter and reference for building full-stack web applications on Cloudflare Workers

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •