Blob storage for EdgeOne Pages.
Persistent key-value storage SDK for EdgeOne Pages Functions. Zero config inside Pages, token mode for external access.
$npm install @edgeone/pages-blob
Source & Template
Live Demo Endpoints
Quick example.
Inside Pages Functions, just import and use. No tokens needed.
functions/index.js
import { getStore } from "@edgeone/pages-blob";
const store = getStore("my-store");
// Write
await store.set("key", "value");
await store.setJSON("config", { theme: "dark" });
// Read
const text = await store.get("key");
const json = await store.get("config", { type: "json" });
// Delete
await store.delete("key");
// List
const { blobs } = await store.list({ prefix: "users/" });