{"id":18485432,"url":"https://github.com/system76/beebee","last_synced_at":"2025-09-04T04:05:44.469Z","repository":{"id":40828390,"uuid":"58216426","full_name":"system76/beebee","owner":"system76","description":"URL shortener for http://s76.co","archived":false,"fork":false,"pushed_at":"2024-03-01T22:28:29.000Z","size":42819,"stargazers_count":58,"open_issues_count":1,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-23T17:45:47.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://s76.co","language":"Elixir","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/system76.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-06T15:24:13.000Z","updated_at":"2024-08-10T20:10:42.000Z","dependencies_parsed_at":"2024-11-06T12:50:40.595Z","dependency_job_id":"d669185a-5421-4db3-b9aa-dafc3d358a69","html_url":"https://github.com/system76/beebee","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/system76%2Fbeebee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system76%2Fbeebee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system76%2Fbeebee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system76%2Fbeebee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/system76","download_url":"https://codeload.github.com/system76/beebee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912761,"owners_count":21017043,"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-11-06T12:45:13.231Z","updated_at":"2025-04-08T19:32:36.738Z","avatar_url":"https://github.com/system76.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BeeBee\n\n[![BB-8](http://vignette2.wikia.nocookie.net/starwars/images/6/63/BB-8thumbsup.png/revision/latest/scale-to-width-down/220?cb=20160402062321)](http://starwars.wikia.com/wiki/BB-8)\n\n## Requirements\n\nBeeBee requires Elixir \u003e= 1.10 and Redis \u003e= 3.0.\n\n## Setup\n\n1. run `mix deps.get`\n2. run `mix run --no-halt`\n3. enjoy!\n\n## Usage\n\nBeeBee exposes four API endpoints, `POST /_add`, `PUT /_update`, `DELETE /_delete/:short_tag` and `GET /_stats`.\n\n### `POST /_add`\n\n**Accepts:**\n\n```js\n{\n  \"url\": \"https://github.com\", // URL to be shortened\n  \"short_tag\": \"github\" // OPTIONAL short tag\n}\n```\n\nIf a short tag is omitted, one will be randomly generated for you.\n\n**Returns:**\n\n```js\n{\n  \"short_tag\": \"github\" // Short tag now mapped to the provided URL\n}\n```\n\n### `DELETE /_delete/:short_tag`\n\n**Returns:**\n\nstatus code 204\n\n### `GET /_stats`\n\n**Returns:**\n\n```js\n[\n  {\n    \"short_tag\": \"github\",\n    \"url\": \"https://github.com\",\n    \"count\": 0\n  },\n  // ...\n]\n```\n\nAny other route will try and find a matching short tag, increment the count, and\nreturn a 301 to the provided URL.\n\nA 404 with an empty body will be returned for missing short tags\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem76%2Fbeebee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystem76%2Fbeebee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem76%2Fbeebee/lists"}