{"id":19747255,"url":"https://github.com/buemura/url-shortener","last_synced_at":"2026-04-17T12:34:14.444Z","repository":{"id":253193540,"uuid":"842762719","full_name":"buemura/url-shortener","owner":"buemura","description":"A simple URL shortener application built with Golang, Postgres, and Redis. This app takes a long URL provided by a user and returns a shortened version. The shortened URLs can be stored and retrieved efficiently using Redis for quick lookups and Postgres for persistence.","archived":false,"fork":false,"pushed_at":"2024-08-17T00:43:59.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T07:59:36.450Z","etag":null,"topics":["golang","postgresql","redis","templ"],"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/buemura.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":"2024-08-15T03:03:29.000Z","updated_at":"2024-08-17T00:45:07.000Z","dependencies_parsed_at":"2025-02-28T00:35:05.806Z","dependency_job_id":"9831bf3a-b197-43eb-b8ce-480f61246684","html_url":"https://github.com/buemura/url-shortener","commit_stats":null,"previous_names":["buemura/url-shortener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buemura/url-shortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buemura%2Furl-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buemura%2Furl-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buemura%2Furl-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buemura%2Furl-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buemura","download_url":"https://codeload.github.com/buemura/url-shortener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buemura%2Furl-shortener/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269432993,"owners_count":24415971,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","postgresql","redis","templ"],"created_at":"2024-11-12T02:17:17.613Z","updated_at":"2026-04-17T12:34:09.424Z","avatar_url":"https://github.com/buemura.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener\n\nA simple URL shortener application built with Golang, Postgres, and Redis. This app takes a long URL provided by a user and returns a shortened version. The shortened URLs can be stored and retrieved efficiently using Redis for quick lookups and Postgres for persistence.\n\n## Architecture diagram\n\n![arch](/docs/image.png)\n\n## Features- Shorten long URLs\n\n- Store and retrieve URLs using Postgres and Redis\n- Redirect users to the original URL when the shortened link is accessed\n\n## Tech Stack-**Backend**: Golang\n\n-**Database**: Postgres (for persistence) -**Cache**: Redis (for fast lookups)\n\n## Setup\n\n1. Install dependencies:\n\n```bash\ngo mod tidy\n```\n\n2. Set up environment variables:\n   Create a `.env` file from `.env.exampl` and replace the values with your secrets\n\n```bash\ncp .env.example .env\n```\n\n3. Set up docker container\n\n```bash\ndocker-compose up -d\n```\n\n4. Run the app\n\n```bash\ngo run cmd/main.go\n```\n\n5. Open browser at `http://localhost:8080`\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuemura%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuemura%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuemura%2Furl-shortener/lists"}