How I Built EdgePress

EdgePress is the blog engine that runs mkapps.net. It’s written entirely in Rust, uses Leptos for rendering and runs on Cloudflare Workers. I wanted to find out how far full-stack Rust gets you on the web.

What I wanted

The goal was a web app written in Rust from end to end that runs on Cloudflare Workers, compiles to WebAssembly, renders on the server so search engines see real HTML, handles its own content and supports more than one language.

Stack

ComponentTechnologyWhy
LanguageRustMemory safety, performance, WASM compilation
FrameworkLeptosReactive SSR, signals-based state management
RuntimeCloudflare WorkersGlobal edge network, free tier
StylingTailwindCSS + DaisyUIFast UI work
ContentMarkdown + Front MatterSimple, portable content format

What it does

Pages are rendered on the server inside a Worker, so they’re served from Cloudflare’s edge network (300+ locations) close to whoever is reading. Workers start as lightweight isolates rather than containers, so there’s no cold-start penalty in the usual serverless sense, and server-side rendering means crawlers get complete HTML.

Posts are plain Markdown files with front matter for title, date, tags and images. The site is multilingual (English and German right now, more languages can be added) and generates an RSS feed automatically.

The UI is TailwindCSS with DaisyUI. It’s responsive, follows the system’s dark or light preference, and is easy enough to restyle for a different brand.

Why these choices

Rust on the web

JavaScript frameworks work fine. What Rust adds is that a lot of errors show up at compile time instead of in production, memory safety without a garbage collector, and a straightforward path to WebAssembly. Thanks to zero-cost abstractions, readable code usually doesn’t cost performance.

Leptos

Leptos is a full-stack Rust framework with fine-grained, signal-based reactivity. It renders HTML on the server, the same component code runs on server and client, and the JavaScript payload stays small.

Cloudflare Workers

The code runs near the reader, deployment is a single command, and the free tier is enough for a blog:

ResourceFree Tier Limit
Requests100,000/day
CPU Time10 ms per request
Worker Size3 MB (compressed)

A typical personal blog won’t hit these limits.

Architecture

┌─────────────────────────────────────────────────────┐
│                  Cloudflare Edge                    │
│  ┌───────────────────────────────────────────────┐  │
│  │           EdgePress (WASM)                    │  │
│  │  ┌─────────────┐  ┌─────────────────────────┐ │  │
│  │  │   Leptos    │  │   Content Processing    │ │  │
│  │  │   (SSR)     │──│   (Markdown → HTML)     │ │  │
│  │  └─────────────┘  └─────────────────────────┘ │  │
│  └───────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────┘
                          │
                          ▼
              ┌───────────────────────┐
              │   R2 Storage          │
              │   - Posts (Markdown)  │
              │   - Assets (Images)   │
              │   - Translations      │
              └───────────────────────┘

What was harder than expected

Getting Leptos SSR to run inside a Worker took the most effort. The WASM build and the path remapping between what Leptos expects and what the Workers runtime provides needed a fair amount of fiddling.

Bundle size matters more on the edge than on a normal server, so I spent a good while keeping the WASM small. Thinking in terms of a globally distributed runtime also changes some habits from traditional server apps.

The tooling (worker-build, wrangler, the Rust/WASM toolchain) works, but it’s still moving quickly. Expect things to change between versions.

Features, pricing and availability are on the EdgePress page.