Guides using Netlify Blobs for zero-config object storage on Netlify. Covers getStore(), CRUD operations, metadata, list queries, deploy-scoped vs site-scoped stores, and local development setup.
Ships in netlify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Netlify Blobs is zero-config object storage available from any Netlify compute (functions, edge functions, framework server routes). No provisioning required.
npm install @netlify/blobs
import { getStore } from "@netlify/blobs";
const store = getStore({ name: "my-store" });
// Use "strong" consistency when you need immediate reads after writes
const store = getStore({ name: "my-store", consistency: "strong" });
These are the only store methods. Do not invent others.
// String or binary data
await store.set("key", "value");
await store.set("key", fileBuffer);
// With metadata
await store.set("key", data, {
metadata: { contentType: "image/png", uploadedAt: new Date().toISOString() },
});
// JSON data
await store.setJSON("key", { name: "Example", count: 42 });
// Text (default)
const text = await store.get("key"); // string | null
// Typed retrieval
const json = await store.get("key", { type: "json" }); // object | null
const stream = await store.get("key", { type: "stream" });
const blob = await store.get("key", { type: "blob" });
const buffer = await store.get("key", { type: "arrayBuffer" });
// With metadata
const result = await store.getWithMetadata("key");
// { data: any, etag: string, metadata: object } | null
// Metadata only (no data download)
const meta = await store.getMetadata("key");
// { etag: string, metadata: object } | null
await store.delete("key");
const { blobs } = await store.list();
// blobs: [{ etag: string, key: string }, ...]
// Filter by prefix
const { blobs } = await store.list({ prefix: "uploads/" });
getStore()): Persist across all deploys. Use for most cases.getDeployStore()): Tied to a specific deploy lifecycle.| Limit | Value |
|---|---|
| Max object size | 5 GB |
| Store name max length | 64 bytes |
| Key max length | 600 bytes |
Local dev uses a sandboxed store (separate from production). For Vite-based projects, install @netlify/vite-plugin to enable local Blobs access. Otherwise, use netlify dev.
Common error: "The environment has not been configured to use Netlify Blobs" — install @netlify/vite-plugin or run via netlify dev.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/netlify:netlify-blobsfrom netlify
npx claudepluginhub kael-odin/codex-plugins-zh --plugin netlify12 skills in this plugin
/netlify-ai-gateway使用 Netlify AI Gateway 接入 AI 模型的指南。在添加 AI 功能或选择/更换 AI 模型时使用;选型前必须先阅读本技能。涵盖支持的提供商(OpenAI、Anthropic、Google)、SDK 设置、环境变量和可用模型列表。/netlify-caching控制 Netlify CDN 缓存的指南。在配置缓存头、设置 stale-while-revalidate、实现按需缓存清除,或了解 Netlify CDN 缓存行为时使用。涵盖 `Cache-Control`、`Netlify-CDN-Cache-Control`、缓存标签、持久缓存和框架专属缓存模式。/netlify-cli-and-deploy使用 Netlify CLI 和部署站点的指南。在安装 CLI、关联站点、部署(基于 Git 或手动)、管理环境变量或运行本地开发时使用。涵盖 `netlify dev`、`netlify deploy`、Git 与非 Git 工作流,以及环境变量管理。/netlify-confignetlify.toml 配置参考。在配置构建设置、重定向、重写、响应头、部署上下文、环境变量或任何站点级配置时使用。涵盖完整的 netlify.toml 语法,包括带通配符/条件的重定向、响应头、部署上下文、Functions 配置和 Edge Functions 配置。/netlify-deploy使用 Netlify CLI 将项目部署到 Netlify。当用户需要关联仓库、验证部署设置、执行部署,或在预览和生产流程之间选择时使用。/netlify-edge-functions编写 Netlify Edge Functions 的指南。在构建中间件、基于地理位置的逻辑、请求/响应处理、身份验证检查、A/B 测试,或任何低延迟边缘计算场景时使用。涵盖 Deno 运行时、`context.next()` 中间件模式、地理位置,以及何时选择边缘函数而非 Serverless 函数。Other plugins' skills for the same job