Val-scoped storage powered by blobs

This val pairs the lowdb lib with val.town built-in blob storage.

Usage:

import { blobStorage } from "https://esm.town/v/pomdtr/blob-storage/mod.ts"; const storage = await blobStorage( { posts: [] } as { posts: string[] } // default data, used for types ]); // use the update method to mutage the data await storage.update(({ posts }) => { posts.push("Hello"); }); // use the `data` attribute to read console.log(storage.data.posts)