{"id":30116391,"url":"https://github.com/regshift/url-shortner","last_synced_at":"2025-10-06T23:46:24.904Z","repository":{"id":206357463,"uuid":"716409801","full_name":"regshift/URL-Shortner","owner":"regshift","description":"This is a  URL shortner which uses one of the fastest go framework fiber along with one of the fastest in memory database redis","archived":false,"fork":false,"pushed_at":"2023-11-11T05:15:47.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T09:05:15.924Z","etag":null,"topics":["fiber","golang","redis"],"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/regshift.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":"2023-11-09T04:28:46.000Z","updated_at":"2023-11-09T11:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ef5a174-20ec-4e52-b479-18d5c5c5cb67","html_url":"https://github.com/regshift/URL-Shortner","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"15b261a1cdd73f005530a62f11210e496edff253"},"previous_names":["arunk2121/url-shortner","notorious-cyborg/url-shortner","regshift/url-shortner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/regshift/URL-Shortner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regshift%2FURL-Shortner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regshift%2FURL-Shortner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regshift%2FURL-Shortner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regshift%2FURL-Shortner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regshift","download_url":"https://codeload.github.com/regshift/URL-Shortner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regshift%2FURL-Shortner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269705489,"owners_count":24462172,"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-10T02:00:08.965Z","response_time":71,"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":["fiber","golang","redis"],"created_at":"2025-08-10T09:36:47.372Z","updated_at":"2025-10-06T23:46:19.869Z","avatar_url":"https://github.com/regshift.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Lightning-Fast URL Shortener with Golang Fiber and Redis\n\nA high-performance URL shortener built with Golang using the Fiber web framework and Redis as the database.\n\n## Features\n\n- Lightning-fast URL shortening.\n- Utilizes the Golang Fiber framework for efficient handling.\n- Uses Redis for quick and reliable storage.\n\n## Getting Started\n\n### Prerequisites\n\n- Golang: [Install Golang](https://golang.org/doc/install)\n- Redis: [Install Redis](https://redis.io/download)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/yourusername/lightning-fast-url-shortener.git\n   ```\n\n2. Change into the project directory:\n\n   ```bash\n   cd lightning-fast-url-shortener\n   ```\n\n3. Build and run the project:\n\n   ```bash\n   go build\n   ./url-shortener\n   ```\n   \n## API Endpoint\n\n### Shorten URL\n\n- **URL:** `POST /`\n- **Request:**\n  - **Method:** `POST`\n  - **Endpoint:** `/`\n  - **Request Body:**\n    ```json\n    {\n      \"url\": \"https://www.yourdomain.com\"\n    }\n    ```\n- **Response (Success):**\n  - **Status Code:** `200 OK`\n  - **Response Body:**\n    ```json\n    {\n      \"shorted_url\": \"http://localhost:3000/s/abc123\",\n      \"error\": \"\"\n    }\n    ```\n- **Response (Error):**\n  - **Status Code:** `400 Bad Request`\n  - **Response Body:**\n    ```json\n    {\n      \"shorted_url\": \"\",\n      \"error\": \"Invalid URL\"\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregshift%2Furl-shortner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregshift%2Furl-shortner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregshift%2Furl-shortner/lists"}