// the find
cmliu/CF-Workers-TEXT2KV
这个是一个通过 Cloudflare Workers 搭建,将文本文件存储到 Cloudflare Workers KV 键值存储中,并且可以通过 URL 请求读取或更新这些文本文件。
A single-file Cloudflare Worker that stores and serves plain text files in Workers KV, letting you read or overwrite a file's contents by hitting a URL with a token query param. It's aimed at people in the CF-Workers self-hosting scene who want a trivially simple remote config or subscription-link store, not a general file storage service.
The whole thing is one worker.js with zero dependencies, so there's nothing to audit beyond a few hundred lines and nothing to break via npm. KV read/write for small text blobs is genuinely a good fit for CF's edge network — low latency, no server to run. It ships Windows/Linux helper scripts for pushing local files to KV, which covers the actual workflow people want (edit locally, sync up).
Auth is a token passed as a URL query string, which means it ends up in server logs, browser history, and Referer headers on any outbound link — this is a real credential leak pattern, not a theoretical one. The default token ships as the literal string 'passwd', and nothing in the code forces you to change it before deploying. There's no rate limiting on the token check, so it's brute-forceable against a worker with no built-in lockout. File size is capped by URL length since updates go through query params, and the README's answer to that is 'edit the KV value directly' rather than supporting a POST body — a basic fix that was skipped.