This is a #BuildInPublic project of a URL Shortening service built on the Cloudflare Developer Platform.
It makes use of the Key Value service KV to store the shorty and the URL.
It also uses the Workers Analytics Engine to track and report on usage.
Build a new KV service for yourself to track the URLs
npx wrangler kv:namespace create URLS
Replace wrangler.toml settings for the KV section
Create a new Workers Analytics Engine API token
Copy the .dev.vars.example to .dev.vars
(for local development)
Regenerate types
npx wrangler cf-typegen
npm run dev
npm run deploy