a leveldb backed url unshortening microservice written in node
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
package.json
test.coffee
unshrtn.coffee

README.md

unshrtn

Build Status

unshrtn is a small leveldb backed URL unshortening microservice written for node. It's a web service you can use from your programming language of choice, which will save you the trouble of going out to the Web to look up the same short URL twice, which can be handy when you are unshortening a bunch of URLs.

% sudo docker build --tag unshrtn:dev .

% sudo docker run -p 80:3000 -d -t unshrtn:dev

% curl localhost?url=https://bitly.com/4kb77v
{
  "short": "https://bitly.com/4kb77v",
  "long": "https://www.youtube.com/watch?v=oHg5SJYRHA0"
}

% curl localhost?url=http://example.com/never-gonna-give-you-up
{
  "short": "http://example.com/never-gonna-give-you-up",
  "long": null,
  "error": "HTTP 404"
}

License:

  • CC0 public domain dedication