# Shortlink

Shortlink is a self-hosted URL shortener with an admin dashboard, QR code generation and scan analytics (time, device, new vs returning visitors, and country/region/city). It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/9313/shortlink

## Description

Shortlink is a self-hosted URL shortener with an admin dashboard, QR code generation and scan analytics (time, device, new vs returning visitors, and country/region/city). The first account created on your first visit becomes the admin and all further sign-ups are disabled automatically. Set "Public URL" to the exact address you use to open the app (including http/https and port). Scan locations need the visitor's IP, so they only appear when the app sits behind a reverse proxy that forwards X-Forwarded-For.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

44/100 (Fair), based on 3 of 4 factors.
- Maintained: 75 (last commit 3 days ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)

## Links

- Unraid: https://ca.unraid.net/apps/app_74273a3410fec9c8
- GitHub: https://github.com/AlexSwensen/shortlink

## Common questions

### Who becomes the admin, and can other people sign up?

The first account you create on your first visit automatically becomes the admin, and all further sign-ups are then disabled automatically.

### Why don't scan analytics show the visitor's location?

Location data requires the visitor's IP address, so it only appears when the app runs behind a reverse proxy that forwards the X-Forwarded-For header.

### Why is the 'Public URL' setting important?

Set it to the exact address you use to open the app, including the http/https scheme and port, so generated short links use the correct base URL.

### Do I need to set up a separate database server?

No. The app uses SQLite with Drizzle ORM, storing data in a local file, so no database server is needed; just set DATABASE_URL and run the schema push.

---
Source: Our Local Host (https://ourlocalhost.com/app/9313/shortlink), the self-hosted and open-source app directory.
