{"id":27019083,"url":"https://github.com/jabbalaci/urlshortener-go","last_synced_at":"2026-01-11T23:50:36.059Z","repository":{"id":79215696,"uuid":"599285595","full_name":"jabbalaci/UrlShortener-go","owner":"jabbalaci","description":"A URL shortener command-line app. for bit.ly; implemented in Go.","archived":false,"fork":false,"pushed_at":"2023-02-25T14:33:56.000Z","size":248,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T17:18:56.973Z","etag":null,"topics":["bitly","cli","go","urlshortener"],"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/jabbalaci.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":"2023-02-08T20:36:07.000Z","updated_at":"2023-04-02T18:25:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5967c4f8-d4ce-4c00-a4f7-be2e017c5b55","html_url":"https://github.com/jabbalaci/UrlShortener-go","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"a0d66df980a3e02b012dda2078839129c28ef73d"},"previous_names":["jabbalaci/go-urlshortener"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jabbalaci/UrlShortener-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabbalaci","download_url":"https://codeload.github.com/jabbalaci/UrlShortener-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabbalaci%2FUrlShortener-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262928212,"owners_count":23386100,"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":["bitly","cli","go","urlshortener"],"created_at":"2025-04-04T17:19:01.011Z","updated_at":"2026-01-11T23:50:36.030Z","avatar_url":"https://github.com/jabbalaci.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener (Go)\n\nA URL shortener command-line app. for [bit.ly](https://bitly.com/).\nImplemented in Go, using [bit.ly's API v4](https://dev.bitly.com/api-reference/).\n\nYou can use it in interactive mode only.\n\n## Installation\n\n    $ go install github.com/jabbalaci/UrlShortener-go/cmd/urlshortener@latest\n\nIt was tested under Linux and Windows.\n\n## Pre-requisite\n\nFor this to work, you need an access token from bit.ly. Don't worry, it's free.\nAfter registration you can generate one for yourself. Then, add it as an\nenvironment variable called `BITLY_ACCESS_TOKEN`. For instance, under Linux\nadd the following line to the end of your `~/.bashrc` file:\n\n```bash\nexport BITLY_ACCESS_TOKEN=\"...\"\n```\n\nUnder Linux, the copy to clipboard functionality requires the Linux\ncommand `xsel`. You can install it via your package manager.\n\n## Usage\n\n    $ urlshortener\n    Long URL: https://github.com/jabbalaci/UrlShortener-go\n\n    https://bit.ly/41dBYWh\n\n    # expanded from shortened URL: https://github.com/jabbalaci/UrlShortener-go (matches)\n\n    Copy shortened URL to clipboard [Yn]? y\n    # copied ✓\n    Zoom into this short URL [yN]? y\n    # yes ✓\n    # written to /tmp/urlshortener-1795634551.html\n\nProvide the long URL, and it'll give you back the shortened bit.ly URL.\n\nIf you want, you can copy the short URL to the clipboard.\n\nIf you want, you can create a local HTML file that shows\nthe short URL using large fonts. This is useful if you do\na presentation / lecture and you quickly want to share a link with\nyour audience.\n\nScreenshot of the local HTML page:\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"80%\" src=\"assets/screenshot.png\" alt=\"screenshot\" style=\"border: 1px solid black;\"\u003e\n\u003c/div\u003e\n\nThe characters in the funny ID are also pronounced to\navoid confusion between similar characters like `o`, `O`, `0`, etc.\n\nIn addition, there's also a QR code pointing on your URL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Furlshortener-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabbalaci%2Furlshortener-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabbalaci%2Furlshortener-go/lists"}