Skip to content

bjjb/urleen

Repository files navigation

URLín

A little URL squisher, backed by Redis, a very small Go server, and with a teensy clean HTML5 front-end. Run it on your secure short domain, and spam the internets with pretty little URLs.

Here's a screenshot:

A squished URL

Build it with go build and install it with go install. Get help with urleen -h.

The front-end ships with 2k .woff containing the three icons, a service worker (so it'll load fast on modern mobile browsers) and a manifest.json so it'll work like an offline app, even though there's little point in a URL squisher working offline.

If you don't like the front-end, use a different one, and either let urleen serve it (with the -w flag) or put it behind a server; urleen will respond to GET /<id> with a redirect, and POST / by remembering the (JSON) contents of the request body, provided it's a valid URL. The tiny IDs are sequential base 62 numbers.

It was built to replace an old Rails 3 app, and to polish my Go chops and to experiment with some HTML5 features that seem to be gaining browser support.

Feel free to fork and improve, or to criticise with issues.