Readme

file0 example

https://www.file0.dev/

sets seem to take about 1s and gets about 200ms for a very small json object

You'll need to set F0_SECRET_KEY in your environment variables for this to work. signup at https://www.file0.dev/ to get a key

1
2
3
4
5
6
7
8
import { f0 } from "https://esm.sh/file0";
const t0 = performance.now();
await f0.set("hello.json", JSON.stringify({ hello: "world" }));
const t1 = performance.now();
console.log("set: " + (t1 - t0) + "ms");
console.log(await f0.get("hello.json"));
console.log("get: " + (performance.now() - t1) + "ms");
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
May 28, 2024