Convention-based comments engine for the edge, built on Cloudflare Workers KV
and written in Rust via workers-rs.
Data is stored at the exact path it is posted to, so your URL scheme doubles as your storage scheme — no database or schema required.
| Method | Path | Description |
|---|---|---|
POST |
/path/to/data |
Store the text/plain body at the path |
GET |
/path/to/data |
Fetch the stored value as text/plain |
GET |
/path/to/ |
List all keys under the prefix (newline-delimited; note the trailing slash) |
For example, if you have 3 blogs you can store comments like:
/blog3/my-post-slug/comment-id/reply-id/second-level-reply
You need a stable Rust toolchain with the
wasm32-unknown-unknown target (pinned via rust-toolchain.toml) and
wrangler v4+.
- Copy
wrangler.example.tomltowrangler.tomland set your KV namespace id - Run a local dev server:
npx wrangler dev - Deploy to the Cloudflare network:
npx wrangler deploy
- No authentication yet. This should be an origin block and preferably some form of user authentication — contributions welcome (see CONTRIBUTING.md).
- Licensed under MIT. By participating in this project you agree to the Code of Conduct.
- Bootstrapped from the
workers-rstemplate — the Rust SDK for Cloudflare Workers. Rust-based Workers compile to thewasm32-unknown-unknowntarget, and so must all dependencies. workercrate documentation
For issues with the edge-comments project itself,
open an issue here.
If you have any problems with the worker crate, please open an issue on the
upstream issue tracker on the
workers-rs repository.