{"id":31068645,"url":"https://github.com/kryptonbd/go-choto-link","last_synced_at":"2025-10-19T20:48:24.518Z","repository":{"id":302337187,"uuid":"947895604","full_name":"KryptonBD/Go-Choto-link","owner":"KryptonBD","description":"URL shortener built in Go","archived":false,"fork":false,"pushed_at":"2025-03-13T12:20:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T04:44:11.181Z","etag":null,"topics":["go","golang","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KryptonBD.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,"zenodo":null}},"created_at":"2025-03-13T12:20:34.000Z","updated_at":"2025-06-30T16:39:19.000Z","dependencies_parsed_at":"2025-07-01T21:23:00.621Z","dependency_job_id":null,"html_url":"https://github.com/KryptonBD/Go-Choto-link","commit_stats":null,"previous_names":["kryptonbd/go-choto-link"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KryptonBD/Go-Choto-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FGo-Choto-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FGo-Choto-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FGo-Choto-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FGo-Choto-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KryptonBD","download_url":"https://codeload.github.com/KryptonBD/Go-Choto-link/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FGo-Choto-link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275327138,"owners_count":25445049,"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-09-15T02:00:09.272Z","response_time":75,"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":["go","golang","url-shortener"],"created_at":"2025-09-15T21:56:53.244Z","updated_at":"2025-09-15T21:56:57.669Z","avatar_url":"https://github.com/KryptonBD.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Choto-Link\n\nChoto-Link is a URL shortening service built with Go and Redis. It provides a RESTful API for creating, managing, and accessing shortened URLs with features like rate limiting and custom short URLs.\n\n## Features\n\n- URL shortening with auto-generated or custom short URLs\n- Configurable URL expiration (default 24 hours)\n- Rate limiting to prevent abuse\n- RESTful API for CRUD operations\n- Redis-based storage for high performance\n- Docker support for easy deployment\n\n## Prerequisites\n\n- Go\n- Docker and Docker Compose (for containerized deployment)\n\n## Installation\n\n1. Clone the repository\n\n2. Rename the `.env.example` file to `.env` and update with your credentials\n\n3. Build and run using Docker Compose:\n\n```bash\ndocker-compose up --build\n```\n\nThe service will be available at `http://localhost:8080`\n\n## API Endpoints\n\n### Create Short URL\n\n```http\nPOST /api/shorten\n```\n\nRequest body:\n\n```json\n{\n  \"url\": \"https://example.com/very-long-url\",\n  \"custom_short\": \"custom123\", // optional\n  \"expiry\": 3600 // optional, in seconds\n}\n```\n\n### Get Original URL\n\n```http\nGET /api/shorten/:shortUrl\n```\n\n### Update Short URL\n\n```http\nPUT /api/shorten/:shortUrl\n```\n\nRequest body:\n\n```json\n{\n  \"url\": \"https://example.com/new-url\"\n}\n```\n\n### Delete Short URL\n\n```http\nDELETE /api/shorten/:shortUrl\n```\n\n### Redirect to Original URL\n\n```http\nGET /:shortUrl\n```\n\n## FAQ\n\n#### What is Choto?\n\nChoto is a Bengali word that means \"small\" or \"short\". It's a common term used in Bangladesh to refer to something that is small in size or duration.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fgo-choto-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkryptonbd%2Fgo-choto-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fgo-choto-link/lists"}