Self-hosted link shortener.
Shorten, track, own your data.
Shorten URLs, track clicks, manage redirects from your own domain. The Bitly alternative where your analytics data never leaves your server. No cloud dependency, no per-click pricing.
Running in under 60 seconds.
curl -fsSL https://stockyard.dev/lasso/install.sh | sh
DATA_DIR=./data lasso
Redirects: http://localhost:8890/{slug}
Dashboard: http://localhost:8890/ui
API: http://localhost:8890/api
curl -s -X POST http://localhost:8890/api/links \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/very/long/page?utm_source=twitter",
"slug": "demo"
}'
# → Short link: http://localhost:8890/demo
# → Redirects to the original URL, click tracked
Three things people use this for.
go.yourcompany.com/demo looks professional and keeps all analytics on your infrastructure.Teams outgrow spreadsheet-based captures tracking around the same time they realize SaaS alternatives want $15 to $50 per seat per month. Lasso is a single binary that handles the same job without the recurring bill.
Deploy Lasso as a systemd service, a Docker container, or a bare process. It reads PORT and DATA_DIR. The /api/health endpoint returns status for monitoring.
A consultant keeps Lasso running on a home server. Client captures stay on local disk, simplifying privacy in every contract.
Free to run. Pro when you need more.
- 50 short links
- Click tracking (count only)
- Custom slugs
- 301/302 redirect control
- JSON API
- Basic dashboard
- 7-day click history
- Unlimited links
- Full click analytics (referrer, geo, device)
- Custom domain support
- Bulk link creation
- Link expiration and scheduling
- QR code generation
- UTM parameter builder
- Click history (90 days)
- CSV export
When Lasso is the right tool.
Lasso solves one problem: shortening URLs and tracking clicks on your own infrastructure. If you want Bitly-style link management without the analytics paywall, it does the job. Free covers 50 links with basic click counts. Pro ($0.99/mo) adds unlimited links, full analytics, custom domains, and QR codes.
Part of the Stockyard family.
Learn about Stockyard →How Pro gets activated.
When your payment goes through, you'll receive an email at the address you used at checkout. The email contains your license key.
Set it as an environment variable before starting Lasso:
LASSO_LICENSE_KEY=stockyard_your_key_here lasso License: Pro (your-email@example.com) Dashboard: http://localhost:8890/ui
That's it. Pro features unlock immediately on startup. No restart required, no account to log into, no phone-home check. The key is verified locally.
Check your spam folder first. If it's not there after 5 minutes, email hello@stockyard.dev with your payment confirmation and we'll send the key manually.
CUSTOM_DOMAIN=go.example.com and point your DNS. Lasso handles the rest.Try Lasso in 30 seconds.
Single binary. Free to start. $0.99/mo for unlimited.
Need the full stack? → Stockyard Complete