Skip to content
/ url-shortener Public template

URL-Shortener is a simple app that is build on Cloudflare Workers using Short.io API.

License

Notifications You must be signed in to change notification settings

francis-du/url-shortener

Repository files navigation

Logo

URL-Shortener

Deploy License

Deploy to Cloudflare Workers


What's this

URL-Shortener is a simple app that is build on Cloudflare Workers using Short.io API.

index

How to use

Web UI

  • Open Website https://short.francis.run

  • Paste the long link you want to shorten.

  • Click the Short button to generate a short link.

Request

parameters description required
?link="" link, which you want to shorten Y
?api="true" Return json data - Required Y
?title="" title of created URL to be shown in short.cm admin panel N
?path"" optional path part of newly created link. If empty - it will be generated automatically N

Debug and Publish

  1. Install Cloudflare Wrangler
npm i @cloudflare/wrangler -g
  1. Build
wrangle build
  1. Preview
wrangle preview
  1. Debug
wrangle dev
  1. Publish
wrangle publish

LICENSE

MIT LICENSE