DocNow/unshrtn

Name: unshrtn

Owner: Documenting the Now

Description: A LevelDB backed URL unshortening microservice written in JavaScript

Created: 2014-09-05 15:49:57.0

Updated: 2017-12-25 10:46:55.0

Pushed: 2017-12-01 16:22:55.0

Homepage:

Size: 64

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

unshrtn

Build Status

unshrtn is a LevelDB backed URL unshortening microservice written in JavaScript and Node for quick, asynchronous processing of requests. unshrtn remembers what it has already looked up so it can save you the trouble of keeping track of URLs when you are looking up a lot of them at one time and they haven't necessarily been de-duplicated. It uses the metaweb library to do the lookups.

In addition to returning the unshortened URL unshrtn will also return metadata for the page including:

rl http://localhost:3000?url=https://bitly.com/4kb77v

hort": "https://bitly.com/4kb77v",
ong": "https://www.youtube.com/watch?v=oHg5SJYRHA0",
anonical": "https://www.youtube.com/watch?v=oHg5SJYRHA0",
tatus": 200,
ontent_type": "text/html; charset=utf-8",
itle": "RickRoll'D - YouTube"

The easiest way to get unshrtn up and running is with Docker.

docker run -p 3000:3000 docnow/unshrtn

You can also install it with npm:

npm install -g unshrtn

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.