rs-short

Lightweight link shortener written in Rust, with features such as caching, spambot protection and phishing detection.

rs-short is about 1,000 lines of Rust built on Actix, with server-side templates, no JavaScript and no unsafe code, and it needs roughly 5 to 20 MB of RAM. It does not store visitors' IP addresses, keeps serving links while the database is locked, and fights abuse with an adjustable captcha, a regex blocklist and a phishing flag that shows victims a warning page. It uses SQLite, PostgreSQL or MySQL, is licensed under the MPL-2.0, and is maintained by the French nonprofit La Contre-Voie, which runs a public instance.

License
MPL-2.0
Runs on
Rust

Commits per month, last 12 months

0 commits

How to self-host rs-short

rs-short runs on Rust. The project's own install guide is the place to start; most people put it on a small server with Docker and a reverse proxy for HTTPS.

  1. Get a server: a home server, a VPS, or a managed app host.
  2. Install it the way the project's docs describe, usually with Docker Compose.
  3. Put it behind HTTPS and set up backups before you add real data.
  4. Update it regularly. Watch the project's releases.

New to self-hosting? Start with the beginner's guide.

Similar apps

  • YOURLS

    Set of PHP scripts that will allow you to run Your Own URL Shortener. Features include password protection, URL customization, bookmarklets, statistics, API, plugins, jsonp.

    12.3k stars
  • Kutt

    Modern URL shortener with support for custom domains and custom URLs.

    11.2k stars
  • Shlink

    URL shortener with REST API and command line interface. Includes official progressive web application and docker images.

    5.4k stars
  • Chhoto URL

    Simple, lightning-fast URL shortener with no bloat (fork of simply-shorten).

    1k stars
  • Flare

    Nonbloated, modern, and highly configurable file/screenshot vault server with support for ShareX, Flameshot, and Spectacle. Offers OCR search and more.

    138 stars
  • bit

    Fast, lightweight, resource-efficient, compiled URL shortener.

    112 stars

Questions

Is rs-short free?

Yes. rs-short is open source under the MPL-2.0 license, so you can use it without paying for a license. You pay only for the server it runs on.

Can I self-host rs-short?

Yes. rs-short runs on Rust. Follow the install guide in the project's documentation, or use a host that installs it for you.

Topics

URL Shorteners

App data from awesome-selfhosted (CC BY-SA 3.0), stars and activity from GitHub.