{"id":13617979,"url":"https://github.com/mrtazz/katana","last_synced_at":"2026-03-27T03:43:23.834Z","repository":{"id":2955081,"uuid":"3969121","full_name":"mrtazz/katana","owner":"mrtazz","description":"ready to go heroku hosted URL shortener based on guillotine","archived":false,"fork":false,"pushed_at":"2017-01-09T22:12:01.000Z","size":35,"stargazers_count":75,"open_issues_count":1,"forks_count":25,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T20:51:26.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"unwiredcouch.com/katana","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrtazz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-09T04:43:16.000Z","updated_at":"2024-04-22T20:28:01.000Z","dependencies_parsed_at":"2022-08-30T23:01:15.512Z","dependency_job_id":null,"html_url":"https://github.com/mrtazz/katana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fkatana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fkatana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fkatana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtazz%2Fkatana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtazz","download_url":"https://codeload.github.com/mrtazz/katana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249061136,"owners_count":21206456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:52.064Z","updated_at":"2026-03-27T03:43:23.797Z","avatar_url":"https://github.com/mrtazz.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Katana [![Code Climate](https://codeclimate.com/github/mrtazz/katana.png)](https://codeclimate.com/github/mrtazz/katana)\n\n## Overview\nOpinionated personal URL shortener which runs on [Heroku][1] and uses [Redis to\ngo][2] as a backend. Shortening is done through the fabulous [Guillotine][3]\nengine and its Redis adapter.\n\nIf you set `HTTP_USER` and `HTTP_PASS` all methods except `GETs` require basic\nauthentication.\n\nIf you set `ROOT_REDIRECTS_TO_URL` traffic that GETs '/' will get redirected there.\n\n## Usage\nYou can use it exactly as any other guillotine app:\n\n    curl -X POST http://sho.rt --user foo:bar -i -F\"url=http://github.com\" -F\"code=gh\"\n\n## Features\n- Authentication\n- Custom [Tweetbot][7] compatible endpoint\n\n## Setup\n\n    git clone git://github.com/mrtazz/katana.git\n    cd katana\n    heroku create\n    heroku addons:add redistogo\n    # or if you want to use Heroku redis\n    heroku addons:create heroku-redis:hobby-dev\n    heroku domains:add sho.rt\n    git push heroku master\n    # for authentication\n    heroku config:add HTTP_USER=\"theuser\"\n    heroku config:add HTTP_PASS=\"thepass\"\n    # for redirection\n    heroku config:add ROOT_REDIRECTS_TO_URL=\"http://www.yourlongerdomain.io\"\n\n### Tweetbot\nThere is a custom endpoint which is compatible with how tweetbot expects custom\nURL shorteners to behave. Activate it by setting\n\n    TWEETBOT_API=true\n\nin your environment variables. After that you can add URLs with a `GET` to\n\n    http://sho.rt/api/create/?url=http://github.com\n\nKeep in mind that this endpoint is not authenticated.\n\n## Thanks\n[@technoweenie][4] for the awesome guillotine and [@roidrage][5] for\n[s3itch][6] which somehow got me started wanting a personal URL shortener.\n\n[1]: http://heroku.com\n[2]: http://redistogo.com\n[3]: https://github.com/technoweenie/guillotine\n[4]: https://twitter.com/technoweenie\n[5]: https://twitter.com/roidrage\n[6]: https://github.com/mattmatt/s3itch\n[7]: http://tapbots.com/software/tweetbot/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fkatana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtazz%2Fkatana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtazz%2Fkatana/lists"}