A fast, simple, and open-source URL shortener. Try it out at znc.sh
- Frictionless: Shorten links instantly with zero signup or authentication.
- Open analytics: Every link features a public, transparent statistics dashboard.
- Open-source & Self-hostable: Freely fork, customize, and run your own deployment via Docker or Cargo.
- Robust & Minimalist: Built with Rust for speed, paired with a bold, brutalist UI.
| Home Page | Url Statistics |
|---|---|
While you can deploy Z!NC in a variety of environments, here are two recommended ways of getting started:
Requires Rust and Cargo installed on your machine.
To build and run the application locally, use Cargo:
cargo runOnce running, simply navigate to http://localhost:3000 in your browser!
You can quickly deploy Z!NC using Docker Compose. Create a docker-compose.yml file:
version: '3.8'
services:
zinc:
image: gilnobrega/zinc:latest
container_name: zinc_shortener
restart: unless-stopped
ports:
- "8080:3000"
volumes:
- ./data:/data
environment:
- ZINC_SERVER__PORT=3000
- ZINC_SERVER__BASE_DOMAIN=znc.sh
- ZINC_SERVER__SITE_NAME=Z!NC
- ZINC_DATABASE__URL=sqlite:///data/zinc.db?mode=rwcThen start the service:
docker-compose up -dOnce the container is up, simply navigate to http://localhost:8080 in your browser!
This project adheres to a lean, server-driven architecture utilizing:
- Rust (Axum): For blazing-fast, concurrent HTTP routing.
- Askama: For strongly-typed, compiled HTML templates.
- Sea-ORM + SQLite: A robust async ORM paired with SQLite in WAL mode for lightweight yet maximum-performance storage.
- Tailwind CSS: For crafting the bold, minimalist brutalist UI.
For detailed configuration options (including rate limiting, links customization, database structure, and analytics), please refer to the Configuration Documentation.
Contributions are always welcome! Whether it's a bug report, a new feature, or a typo fix, feel free to open an issue or submit a pull request. Let's build a better, minimalist web together.
This project is licensed under the MPL 2.0 License.

