Created as a submission to dev.to challange: https://dev.to/challenges/cloudflare
demo here: link to the demo
npm install
npm run dev
Open http://localhost:3000 with your browser to see the result.
By default app is using KV Cloudflare storage, but you can switch to your own!
If you would like to use your own, change exported storage object in /app/_config/storage.ts
It should impelement interface:
export interface Storage<T> {
get: (key: string) => Promise<T>;
set: (key: string, value: string) => Promise<void>;
remove: (key: string) => Promise<void>;
}