Url shortner
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Nicolai Ort 98b8e9578f
continuous-integration/drone/push Build is passing Details
Merge pull request 'Update registry.odit.services/hub/library/node Docker tag to v18' (#24) from renovate/registry.odit.services-hub-library-node-18.x into main
Reviewed-on: #24
11 months ago
migrations Added migration for clientside redirects 2 years ago
src Added BADGE API endpoint (no auth needed) 1 year ago
.drone.yml Docker speedbuild 1 year ago
.env Get all api endpoints 2 years ago
.gitignore add lockfile [skip-ci] 2 years ago
CHANGELOG.md 🚀RELEASE 0.8.0 1 year ago
Dockerfile Update registry.odit.services/hub/library/node Docker tag to v18 11 months ago
LICENSE Added license 2 years ago
README.md Added examples to readme 1 year ago
docker-compose.yml Added optional db volume to docker-compose 2 years ago
knexfile.js Prod db now resides in db folder 2 years ago
package.json Update dependency release-it to v15 11 months ago
renovate.json Enabled dep dashboard 1 year ago
yarn.lock Update dependency release-it to v15 11 months ago


LinkyLinky 🔗

A small url shortener, originaly developed for kauft.es


  • Url shortinging to 18-byte hex ids
  • Special shortening "providers" for well-used services

Provider patterns

The base pattern is always baseurl/providerOrShortCode

Provider Pattern Resolves to Example Notes
Native (Shortcode) /id Whatever the database entry points to https://kauft.es/den-hut None
YouTube (Video) /yt/id https://youtu.be/id https://kauft.es/yt/dQw4w9WgXcQ None
YouTube (Playlist) /ytpl/id https://youtube.com/playlist?list=id https://kauft.es/ytpl/PLKIxB9vhdS_3x0A5za3mmu1wdoolgRQ65 Remember: Private playlists will result in user-side errors
Amazon /a/id https://amazon.de/dp/id https://kauft.es/a/B08Z2TXCPY Recognizes all kind of cursed amazon urls (+smile and others)
eBay /e/id https://ebay.de/itm/id https://kauft.es/e/373831556670 Only tested with German eBay
Reddit /r/id https://redd.it/id https://kauft.es/r/4vapin Powered by the awesome work of u/TheAppleFreak https://kauft.es/r/4vapin

Dev Setup 🛠

Runs on port 3000


yarn migrate
yarn dev


npm i
npm run migrate
npm run dev

Docker 🐳

Runs on port 3000

docker-compose build
docker-compose up