- 稳定性
- 稳定
- 作用域
- 全局
- 边界
- packages/integrations/storage
storagepackages/integrations/storage
Provider-agnostic
可用提供方
S3standby
R2在用
GCSstandby
Filebasestandby
传入请求storage
{ bucket: "assets", key: "logo.svg" }
Adapter 解析1毫秒
storage 分发124毫秒
已确认3毫秒
提供方
R2
P50 延迟
132 毫秒
成功率
96%
+0.5%
今日总量
3,066
packages/integrations/storageprovider-agnostic
使用方式storage.ts
typescriptstorage.ts
1import { getStorage } from "@nebutra/storage";
2
3const storage = await getStorage();
4
5await storage.put({
6 bucket: "exports",
7 key: `reports/${tenant}/${date}.csv`,
8 body: csvBuffer,
9 contentType: "text/csv",
10});
11
12const blob = await storage.get({ bucket: "exports", key });