Katana

ready to go heroku hosted URL shortener based on guillotine
Alternatives To Katana
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Gshort80
2 years ago2gpl-3.0CSS
URL Shortener without all the crap
Katana70
7 years agomitRuby
ready to go heroku hosted URL shortener based on guillotine
Url Shortener V226
6 months ago3agpl-3.0Python
URL Shortener and MDISK convertor
Go_url_shortener18
3 years agon,ullmitGo
Shortify - URL Shortner in go
Url Shortner Django12
a year agomitHTML
Created a Url Shatner using Django and deployed it on Heroku.
Shorten11
8 years ago2CSS
A basic url shortener
Vue Shortener6
a year agon,ullVue
:fire: Vue.js URL Shortener
U6
6 months ago9mitHTML
spam safe url shortener
Shoutlink6
4 years ago11Ruby
:sparkles: A temporary url shortener with Heroku-like memorable random names, powered by Sinatra
Url Shortener4
3 years ago1JavaScript
Custom URL Shortener & Link Management
Alternatives To Katana
Select To Compare


Alternative Project Comparisons
Readme

Katana Code Climate

Overview

Opinionated personal URL shortener which runs on Heroku and uses Redis to go as a backend. Shortening is done through the fabulous Guillotine engine and its Redis adapter.

If you set HTTP_USER and HTTP_PASS all methods except GETs require basic authentication.

If you set ROOT_REDIRECTS_TO_URL traffic that GETs '/' will get redirected there.

Usage

You can use it exactly as any other guillotine app:

curl -X POST http://sho.rt --user foo:bar -i -F"url=http://github.com" -F"code=gh"

Features

  • Authentication
  • Custom Tweetbot compatible endpoint

Setup

git clone git://github.com/mrtazz/katana.git
cd katana
heroku create
heroku addons:add redistogo
# or if you want to use Heroku redis
heroku addons:create heroku-redis:hobby-dev
heroku domains:add sho.rt
git push heroku master
# for authentication
heroku config:add HTTP_USER="theuser"
heroku config:add HTTP_PASS="thepass"
# for redirection
heroku config:add ROOT_REDIRECTS_TO_URL="http://www.yourlongerdomain.io"

Tweetbot

There is a custom endpoint which is compatible with how tweetbot expects custom URL shorteners to behave. Activate it by setting

TWEETBOT_API=true

in your environment variables. After that you can add URLs with a GET to

http://sho.rt/api/create/?url=http://github.com

Keep in mind that this endpoint is not authenticated.

Thanks

@technoweenie for the awesome guillotine and @roidrage for s3itch which somehow got me started wanting a personal URL shortener.

Popular Heroku Projects
Popular Url Shortener Projects
Popular Cloud Computing Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Ruby
Redis
Heroku
Url Shortener