A simple Short URL generator using Cloudflare Workers + KV + Remix.
Checkout the deployed version here url.vgirish.net.
- Remix
- Cloudflare Workers
- Cloudflare KV
- Tailwind CSS
- Turbo Repo
- ESLint
- Prettier
You can also use the API to generate a short URL by making a POST request
Client | Sample Code |
---|---|
curl |
curl -XPOST -H "Content-Type: application/json" -d '{"url": "https://www.google.com/"}' |
fetch |
fetch( 'https://url.vgirish.net/generate', { method: 'post', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({url: "https://www.google.com/"}) } ) |