This is an example of a Cloudflare Worker that uses Cloudflare Workers KV to store a simple todo list. It is a part of the Tiny AI platform.
Visit tiny.technology and attach as Worker to your chat.
URL: https://tiny-ai-worker-todo-example.cagatay.workers.dev/openapi.json
- Node.js
- Wrangler CLI
- Cloudflare Workers account
- Cloudflare Workers KV
- Create a new Cloudflare Workers KV namespace
https://developers.cloudflare.com/kv/reference/how-kv-works/
- Update the wrangler.toml file with your Cloudflare account ID and KV namespace ID
kv_namespaces = [
{ binding = "TODO_LIST", id = "YOUR_KV_NAMESPACE_ID" }
]
git clone git@github.com:TinyAI-ID/tiny-ai-worker-todo-example.git;
cd tiny-ai-worker-todo-example;
npm install;
wrangler publish
wrangler dev
MIT-0