# Lua.sh

Lua.sh is a self-hosted web & publishing app. Open-source platform for creating shortened URLs with advanced analytics, custom domains, and API integration for marketing and development teams.

Canonical page: https://ourlocalhost.com/app/9007/lua-sh

## Description

Open-source platform for creating shortened URLs with advanced analytics, custom domains, and API integration for marketing and development teams.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

48/100 (Fair), based on 4 of 5 factors.
- Maintained: 72 (last commit 80 days ago)
- Popular: 51 (344 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 20 (1 serious finding, 13 minor, tests)

## Security check

1 serious finding: Uses cross-spawn 7.0.3, which has a known critical vulnerability.
Automated checks on commit b1929e1, 4 Dec 2026. Not an audit.

## Links

- Official website: https://www.lua.sh/
- GitHub: https://github.com/luadotsh/lua

## Common questions

### Why do all API tokens get rejected on my self-hosted install?

You likely haven't generated the Passport OAuth signing keys. Run `php artisan passport:keys` — these keys are gitignored so each environment generates its own, and without them the API guard rejects every token.

### How do I enable Google or GitHub sign-in?

Set `GOOGLE_CLIENT_ID`/`GOOGLE_CLIENT_SECRET` or `GITHUB_CLIENT_ID`/`GITHUB_CLIENT_SECRET` in your environment. Each optional integration stays off until its credentials are set, so the UI only shows what your install can actually use.

### Is it safe to run the database seeders again when deploying updates?

Yes. The seeders create the plans and the Passport personal access client that API keys are issued from, and both are idempotent, so `php artisan db:seed` is safe to re-run on deploy.

### What database and backend stack does lua.sh require?

It's a Laravel (PHP) application with a MySQL relational database, and a Vue 3 / Inertia.js frontend. You'll need PHP, the database, and a web server configured before serving your instance.

### Can I set expiration dates and custom slugs for links?

Yes. You can set expiration dates for links and manage them from the interface, and personalize links with custom, memorable slugs.

## Alternatives

- Bitly
- Dub Links
- Rebrandly: Rebrandly is the easiest way to create, share and manage branded links.
- Shlink: A self-hosted URL shortener application that lets you create and manage shortened links under your own domain, with both command-line and R…
- Short.io
- TinyURL: Converts long URLs into short, secure links, supports branded domains, bulk shortening via API, link analytics, QR code generation, and das…
- kutt: Kutt is a modern self-hosted URL shortener that lets individuals, teams, and self-hosters create, edit, and manage links privately while vi…

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