A simple but powerful selfhosted link shortener service written for Deno
Start the docker image
$ docker run -p 1336:1336 -d hexf/linkd
Add a url
$ curl --request PUT --data "link=https://github.com/hexf&short=github" http://localhost:1336/link
Use the link
$ curl -L http://localhost:1336/github
See the clicks
$ curl http://localhost:1336/link?short=github | jq
The following persistent data storage options are available, by setting the ENV flags as displayed
LINKD_STORAGEPROVIDER=MEMORY
LINKD_STORAGEPROVIDER=REDIS
LINKD_REDIS_HOSTNAME=localhost
LINKD_REDIS_PORT=6379
Set the Base URL
LINKD_URL=https://go.hexf.me/
- Redis Data Storage
- PostgreSQL Data Storage
- Frontend UI
- Kubernetes Manifest
- Docker Compose Examples