A markdown CMS that fits in one Cloudflare Worker
Last month I got tired of opening VS Code every time I wanted to fix a typo in a post. I wanted a lightweight web UI that could edit Markdown files stored in a git repo — ideally something I could open on my phone. The result: a Cloudflare Worker that proxies GitHub’s REST API and renders a minimal editing UI. How it works The Worker handles four routes: GET / — lists all .md files in the repo GET /edit?file=path/to/post.md — loads the file and renders a <textarea> POST /save — calls the GitHub API to commit the updated file GET /preview — renders Markdown to HTML via micromark No database. No build step on save. Just an API call and a commit. ...