Url shortner
Go to file
Nicolai Ort 2bd82ceb01
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Merge branch 'main' of git.odit.services:kauft.es/linkylinky
2023-11-04 16:43:38 +01:00
.woodpecker feat(ci)!: Switch to woodpecker 2023-11-04 16:43:24 +01:00
migrations Added migration for clientside redirects 2021-09-25 18:25:53 +02:00
src Added BADGE API endpoint (no auth needed) 2022-02-02 15:25:55 +01:00
.env Get all api endpoints 2021-08-14 11:50:03 +02:00
.gitignore add lockfile [skip-ci] 2021-08-14 10:44:41 +02:00
CHANGELOG.md 🚀RELEASE 0.8.0 2022-02-02 15:33:38 +01:00
docker-compose.yml Added optional db volume to docker-compose 2021-08-14 13:09:40 +02:00
Dockerfile Update registry.odit.services/hub/library/node Docker tag to v18 2022-04-22 14:46:43 +00:00
knexfile.js Prod db now resides in db folder 2021-08-14 12:56:02 +02:00
LICENSE Added license 2021-08-14 16:00:45 +02:00
package.json Update dependency release-it to v15 2022-04-30 12:47:14 +00:00
README.md Added examples to readme 2022-01-12 18:17:50 +01:00
renovate.json Enabled dep dashboard 2021-10-15 16:23:21 +02:00
yarn.lock Update dependency release-it to v15 2022-04-30 12:47:14 +00:00

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