I wrote a Cloudflare KV wrapper! I'd love feedback and if you'd add/remove things, including things

I wrote a Cloudflare KV wrapper! I'd love feedback and if you'd add/remove things, including things that are not clear or could be improved (to the library overall or the KV workers bit). I almost did it with the REST API (to avoid having to init it within the
fetch()
context and not at the root). But decided the fetch context (only the
namespace_id
needed + location within that context) might be more worth it than having to force the users to find their
account_id
, the
namespace_id
and the
Bearer token
. Would've preferred a lot more ofc if it was available at the root, but ALAS. Here is the Cloudflare KV-specific docs!
https://polystore.dev/documentation#cloudflare-kv
Add a unified API for any KV store like localStorage, Redis, FileSystem, etc.
Was this page helpful?