{"id":23315501,"url":"https://github.com/shikaan/wayne","last_synced_at":"2026-04-16T14:09:22.996Z","repository":{"id":91745834,"uuid":"196809488","full_name":"shikaan/wayne","owner":"shikaan","description":"Minimalistic URL Short(en)er","archived":false,"fork":false,"pushed_at":"2019-07-15T20:21:31.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T08:18:11.717Z","etag":null,"topics":["firebase","go","poc"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shikaan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-14T07:59:15.000Z","updated_at":"2019-07-15T20:21:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"2901851a-8c49-462e-83e5-ac7ea5d4ff93","html_url":"https://github.com/shikaan/wayne","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/shikaan%2Fwayne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shikaan%2Fwayne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shikaan%2Fwayne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shikaan%2Fwayne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shikaan","download_url":"https://codeload.github.com/shikaan/wayne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247586180,"owners_count":20962467,"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":["firebase","go","poc"],"created_at":"2024-12-20T15:38:02.903Z","updated_at":"2026-04-16T14:09:17.971Z","avatar_url":"https://github.com/shikaan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Wayne\n===\n\nMinimalistic URL Short(en)er\n\n\u003e [Here](https://www.youtube.com/watch?v=0PQKnjwlN6g) if you don't get the pun.\n\n## :warning: Disclaimer\n\nThis is my first experiment in Go. The software itself is still garbage: buggy,\npoorly designed and what not. It's just my first attempt to get my hands dirty.\n\nI gave it a fancy name so I am more motivated to keep it going.\n\n## How does it work?\n\nThis application exposes three endpoints:\n\n```\nPOST /api/urls\n\nRequest:\n{\n    \"readableHash\": string,\n    \"targetURL\"   : string\n}\n\nResponse:\n    * 201 - Created\n        {\n            \"id\"          : string,\n            \"readableHash\": string,\n            \"targetURL\"   : string\n        }\n```\n\n```\nGET /api/urls\n\nResponse:\n    * 200 - OK\n        [\n            {\n                \"id\"          : string\n                \"readableHash\": string,\n                \"targetURL\"   : string\n            }\n        ]\n```\n\n```\nGET /${readableHash}\n\n\nResponse:\n    * 301 - Moved Permanently\n```\n\nThe first two endpoints are normal CRUD operation: create and list URLs.\nURLs are stored in a Firebase Database and the application expects a `firebase_auth.json` in the root directory to be able to work.\n\nThe database has to have a collection called `urls` whose elements are exactly as you see in the payloads above.\n\nOnce you have created a URL with a readable hash, you can use such hash and hit `localhost:8080/${readableHash}` to be redirected to the `targetURL`.\n\n\n## Getting started\n\nCopy the Firebase service account JSON file in the root directory with the name \"firebase_auth.json\" and then\n\n```\nmake start\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikaan%2Fwayne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshikaan%2Fwayne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshikaan%2Fwayne/lists"}