# DSLF

> DSLF (Damn Small Link Forwarder) is a self-hosted link shortener and Linktree alternative written in Rust. Configuration is a CSV file, with no database, dashboard or account required.

- **Tagline:** Your links, on your own box.
- **Source:** https://github.com/vpetersson/dslf
- **Language:** Rust
- **License:** Apache-2.0
- **Container image:** `ghcr.io/vpetersson/dslf`
- **Live demo:** https://301.vpetersson.com
- **Why I built it:** https://vpetersson.com/2026/01/14/ai-is-killing-saas-part-2-linktree-link-shorteners-and-the-leverage-you-buy-back/
- **At a glance:** 5 MB binary; under 10 MB resident; 0 databases; amd64 and arm64

Damn Small Link Forwarder is a self-hosted link shortener and link-index page. The configuration is a CSV file. There is no database, no dashboard and no account, because a redirect does not need any of them.

## Run it

The image ships with example configuration, so it starts before you have written
anything of your own.

```bash
docker run -p 3000:3000 \
  -v $(pwd)/redirects.csv:/app/redirects.csv \
  ghcr.io/vpetersson/dslf:latest
```

Write one row per link: the path, where it goes, and `301` or `302`. Mount the file at
runtime, or bake it into an image. Then point a domain at it. Any host that can run a
container will do, because it is one process listening on one port.

## The second file, if you want it

`redirects.csv` is the only file you need. Add `link-index.yaml` and the root path
serves a link-index page instead of a 404.

```yaml
profile:
  name: "Your Name"
  bio: "Short line about you"

theme:
  preset: mocha # mocha | macchiato | frappe | latte
  buttonStyle: glass # glass | solid | outline
```

Both files can be mounted at runtime, so changing a link is a file edit and a restart
rather than a deploy.

---

Source: https://vpetersson.com/projects/dslf/
