This is Warga Tiga's URL shortener based on nelsontky's Github Page shortener.
-
For example, url.wargati.ga/1 should link to this repo.
-
To add a new short link:
- Make sure you have a Github account, if you don't then register. It's easy.
- Go to https://github.com/farellfaiz/wargatiga-url-shortener/issues.
- Add an issue by clicking the New Issue button.
- Fill the issue form with the title being the link you want to shorten (including the
http(s)://
). - Shorten your link by clicking the Submit New Issue button.
-
Unlike many URL shorteners, this one
does not need a databaseuses a "database" in the form of GitHub issues and can be entirely hosted on GitHub pages. -
There is no need for the pound symbol - short URLs look clean like this:
url.wargati.ga/1
instead of looking like this:url.wargati.ga/#1
.
Thanks to @kidGodzilla for the pretty neat explanation here.
- 404.html handles all requests
- Small javascript snippet fetches a JSON representation of the GitHub issue via the JSON API, and redirects to the issue title, as a URL.
- Profit?