Coder Social home page Coder Social logo

tarneaux / shlonk Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 141 KB

A minimal URL shortener written in Rust

License: GNU General Public License v2.0

Rust 80.96% Dockerfile 4.06% Shell 14.97%
link-shortener link-shortener-server minimal self-hosted

shlonk's Introduction

Shlonk - A simple, fast, URL shortener

Shlink is another self-hosted URL shortener. Though it does too much: it has a REST API, a web GUI, and many other features you are probably never going to use.

Shlonk tries to do only one thing, redirect clients to other sites, and does it well with its Yaml configuration file. Here's an example:

urls:
  home: # /home redirects to...
    url: https://git.renn.es/shlonk
  example: # /example redirects to...
    url: https://example.com/
    permanent: true
port: 8080 # Default value
address: 0.0.0.0 # Default value

To launch Shlonk, write this config to a file, say config.yml, and then run:

shlonk -c ./config.yml

That's it. That's the documentation for Shlonk. And guess what: the code is less than 200 lines long.

Installation

Cargo:

cargo install shlonk

Docker installation

See the example docker-compose.

Why the name?

It is a variation on Shlink, and here is a definition from the urban dictionary:

V. To do anything.

Shlonking is a lifestyle choice, a way to express how much better you are than any person who doesn't shlonk the same way you do. Use it as a replacement for any verb in the hopes that more individuals realize the importance of gang shlonk.

I just had to choose that name.

shlonk's People

Contributors

tarneaux avatar

Stargazers

 avatar Luke Hamburg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.