Skip to content

judge2020/workers-link-shortener

Repository files navigation

Workers Link Shortener (v2)

A link shortener built on Cloudflare Workers utilizing Durable Objects to provide things like analytics.

This is not backwards compatible with Workers Link Shortener v1.

dev

Prerequisites: node LTS, wrangler

  1. clone repository and open in vscode/console
  2. run npm install
  3. edit wrangler.toml and set account_id to your account id
  4. generate a KV namespace like so (the name can be different if you wish):
wrangler kv:namespace create WLS_LINK_LIST
  1. Append the KV namespace config it gives you to your wrangler.toml
  2. run npm run build (builds the frontend, however it is non-functional for now, see #21)
  3. run wrangler publish

Customize frontend configuration

See Configuration Reference.

About

Use Cloudflare Workers KV as a link shortener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published