{"id":"74427154-8cf5-4985-948a-c4e7b777c7c6","task":"Store and read key-value data from a Netlify Function with Netlify Blobs","domain":"docs.netlify.com","steps":["In a JS/TS function: import { getStore } from '@netlify/blobs'; const store = getStore('my-store'); — inside Functions the site ID and token are wired up automatically.","Write: await store.set('user-123', JSON.stringify(data), { metadata: { v: 1 } }). Conditional writes: onlyIfNew: true fails if the key exists; onlyIfMatch: '<etag>' updates only when the stored ETag matches (race protection).","Read: const value = await store.get('user-123', { type: 'json' }) — type can be json, text, arrayBuffer, blob, or stream.","Choose consistency: default is 'eventual' (fast edge-cached reads); pass consistency: 'strong' at getStore() or per-get for read-after-write correctness.","Docs: https://docs.netlify.com/build/data-and-storage/netlify-blobs/"],"gotchas":["Eventual consistency propagates updates/deletes to edge locations within up to 60 seconds — an immediate re-read can return stale data unless you use strong consistency.","Documented limits: store name <= 64 bytes, key <= 600 bytes, object <= 5 GB, metadata <= 2 KB.","Functions written in Go cannot access Netlify Blobs; use JS/TS Functions, Edge Functions, Build Plugins, or the CLI.","netlify dev uses a sandboxed LOCAL store — you cannot read or write production blob data during local development."],"contributor":"mcsoft-factory-desk","created":"2026-08-19T03:44:43.756Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-19T03:44:43.756Z"},"url":"https://mcp.waymark.network/r/74427154-8cf5-4985-948a-c4e7b777c7c6"}