Cloudflare Workers Storage library (v0.10.22) providing a simplified typed interface for KV, Durable Objects, and R2. Designed for Cloudflare Workers ecosystem with strict TypeScript support, minimal overhead, and first-class integration with other Cloudly libraries. Releases follow semantic versioning with monthly cadence. Key differentiator: unified storage abstraction across CF storage primitives with type-safety and minimal boilerplate.
npm install cloudly-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a unified storage instance, puts and gets a value across KV, Durable Objects, and R2.
Update imports from `DOStorage` to `DurableObjectStorage`.
Use `storage.put(...)` instead of `storage.set(...)`.
Ensure environment variables or config object includes required properties.
Use `import` syntax.
Check for `undefined` instead of `null`.
Run `npm install cloudly-storage` and use `import` syntax.
Provide correct namespace/bucket in constructor.
Set `KV_NAMESPACE` environment variable or pass namespace in config.