Feel free to take a look at an example which I wrote a few weeks ago: https://github.com/Alex1607/Workers-D1-link-shortener-demo It makes use of the alpha d1 implementation of FlareLine instead of KV but I think it might be a good starting point for you
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
CD
Cloudflare Developers
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news