blob-storage
Use when a val needs simple key/value persistence — JSON documents, cached responses, uploaded files, or binary assets. Covers the std/blob API, listing and deleting keys, account-global or val scoping, and storage limits.
Install
With your agent
Install OMGSkills skill "val-town/plugins:plugin/skills/blob-storage" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/val-town/plugins /tmp/plugins && ln -s /tmp/plugins/plugin/skills/blob-storage ~/.claude/skills/blob-storage
From README
Blob Storage Val Town provides built-in key/value blob storage via the std/blob module. Reach for it whenever a val needs to persist simple values — JSON documents, cached API responses, uploaded files, or binary assets — keyed by a string. For relational or structured data you query with SQL, prefer std/sqlite instead. Scoping: account-global or per-val depending on import There are two exports of the blob utility: global.ts, which is scoped to the user account, and main.ts, which is scoped to the val itself. Prefer the main.ts interface and val scoping for new vals. Here is the scoped import: Here are the global imports: The scoped & global blob interfaces have the same methods. Scoped & global blobs are stored separately: you cannot access global blobs with the scoped interface or vice versa. Basic (JSON) getJSON returns undefined when the key is missing, so guard before using the result: Raw and binary data Use set/get for strings, binary, or any BodyInit.
More from this repo
client-side-js
Used when a val needs to ship JavaScript that runs in the browser — React apps, vanilla DOM scripts, canvas/games,...
create-skill
Used when the user wants to persist a preference, skill, or knowledge.
cron-and-intervals
Used when building a val that runs on a schedule — periodic jobs, recurring tasks, polling, cron jobs, monitoring,...
