urleen

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2021 License: MIT Imports: 11 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL