{"id":13836980,"url":"https://github.com/kashav/go-url-shortener","last_synced_at":"2025-04-10T02:42:35.558Z","repository":{"id":57501207,"uuid":"85441408","full_name":"kashav/go-url-shortener","owner":"kashav","description":"Shorten URLs with GitHub repositories and the http-equiv attribute.","archived":false,"fork":false,"pushed_at":"2024-07-31T17:17:00.000Z","size":3665,"stargazers_count":149,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T06:32:53.191Z","etag":null,"topics":["golang","http-equiv","refresh","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kashav.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-19T00:41:21.000Z","updated_at":"2024-12-29T16:15:52.000Z","dependencies_parsed_at":"2024-11-19T22:46:12.056Z","dependency_job_id":null,"html_url":"https://github.com/kashav/go-url-shortener","commit_stats":null,"previous_names":["kshvmdn/shorten","kshvmdn/point","kashav/point"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashav%2Fgo-url-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashav%2Fgo-url-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashav%2Fgo-url-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kashav%2Fgo-url-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kashav","download_url":"https://codeload.github.com/kashav/go-url-shortener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248145035,"owners_count":21055034,"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":["golang","http-equiv","refresh","url-shortener"],"created_at":"2024-08-04T15:00:58.569Z","updated_at":"2025-04-10T02:42:35.534Z","avatar_url":"https://github.com/kashav.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# go-url-shortener\n\nA simple URL shortener that uses GitHub as a backend. This uses the [`http-equiv` refresh attribute](https://developer.mozilla.org/en/docs/Web/HTML/Element/meta#attr-http-equiv) to do URL redirection.\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/132016.png)](https://asciinema.org/a/132016)\n\n## Usage\n\nYou should export your personal GitHub access token as `GO_URL_SHORTENER_ACCESS_TOKEN`. Request one [here](https://github.com/settings/tokens) with the `repo` and `delete_repo` permissions.\n\nBasic usage:\n\n  ```sh\n  % git clone https://github.com/kashav/go-url-shortener \u0026\u0026 cd $_\n  % go build ./cmd/shortener/main.go\n  % ./main --help\n  usage: go-url-shortener [\u003cflags\u003e] \u003ccommand\u003e [\u003cargs\u003e ...]\n\n  Create and manage shortened URLs with GitHub pages.\n\n\n  Flags:\n    --[no-]help     Show context-sensitive help (also try --help-long and --help-man).\n    --[no-]verbose  Show detailed output.\n\n  Commands:\n  help [\u003ccommand\u003e...]\n      Show help.\n\n  create [\u003cflags\u003e] \u003curl\u003e\n      Create a new entry.\n\n  list\n      Print a list of active entries.\n\n  remove \u003crepo\u003e...\n      Remove one or more entries.\n\n\n  % ./main create --help\n  usage: go-url-shortener create [\u003cflags\u003e] \u003curl\u003e\n\n  Create a new entry.\n\n\n  Flags:\n        --[no-]help     Show context-sensitive help (also try --help-long and --help-man).\n        --[no-]verbose  Show detailed output.\n    -c, --cname=CNAME   Optional CNAME record for this repository.\n    -n, --name=NAME     Endpoint for the shortened URL, chosen randomly if empty.\n    -p, --[no-]private  Make this repository private.\n    -s, --[no-]subdir   Use a subdirectory in a pre-existing repository, instead of creating a new\n                        repository.\n    -r, --repo=REPO     A pre-existing repository to be used with the --subdir option (expects `foo/bar`\n                        for `https://github.com/foo/bar`). Pushes to the default branch.\n\n  Args:\n    \u003curl\u003e  The URL to shorten.\n\n  % ./main list --help\n  usage: go-url-shortener list\n\n  Print a list of active entries.\n\n\n  Flags:\n    --[no-]help     Show context-sensitive help (also try --help-long and --help-man).\n    --[no-]verbose  Show detailed output.\n\n  % ./main remove --help\n  usage: go-url-shortener remove \u003crepo\u003e...\n\n  Remove one or more entries.\n\n\n  Flags:\n    --[no-]help     Show context-sensitive help (also try --help-long and --help-man).\n    --[no-]verbose  Show detailed output.\n\n  Args:\n    \u003crepo\u003e  List of entries to remove.\n  ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashav%2Fgo-url-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkashav%2Fgo-url-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkashav%2Fgo-url-shortener/lists"}