Awesome Open Source
Awesome Open Source

Url-Shorten-Worker

A URL Shortener created using Cloudflare Worker

API

API Documentation (API)

Getting start

Workers KV

Go to Workers KV and create a namespace.

WorkerSettingsKV Namespace

Bind an instance of a KV Namespace to access its data in a Worker.

Variable nameLINKS, KV namespace

Where Variable name should set as LINKS and KV namespace is the namespace you just created in the first step.

index.jsCloudflare Worker

Copy the index.js code from this project to Cloudflare Worker.

Save and Deploy

Click Save and Deploy

Demo

https://lnks.tools/

Note: Because someone abuse this demo website, all the generated link will automatically expired after 24 hours. For long-term use, please deploy your own.

Demo24



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Javascript (1,072,185
Serverless (9,903
Cloudflare (2,512
Shortener (1,899
Url Shortener (1,524
Cloudflare Workers (453
Bitly (413
Shorten Urls (98
Tinyurl (46