{"id":22274364,"url":"https://github.com/pankalog/mustang-rs","last_synced_at":"2026-04-28T20:35:21.707Z","repository":{"id":265776228,"uuid":"896616538","full_name":"pankalog/mustang-rs","owner":"pankalog","description":"A simple, blazing-fast URL shortener made in Rust using Redis and Axum.","archived":false,"fork":false,"pushed_at":"2024-11-30T21:46:47.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T14:51:22.459Z","etag":null,"topics":["axum","redis","rust","shortener","tinyurl"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/pankalog.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":"2024-11-30T20:55:32.000Z","updated_at":"2024-11-30T21:46:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"f01e36d6-c078-41cf-8906-89493c05aefc","html_url":"https://github.com/pankalog/mustang-rs","commit_stats":null,"previous_names":["pankalog/mustang-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankalog%2Fmustang-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankalog%2Fmustang-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankalog%2Fmustang-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pankalog%2Fmustang-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pankalog","download_url":"https://codeload.github.com/pankalog/mustang-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245503233,"owners_count":20626131,"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":["axum","redis","rust","shortener","tinyurl"],"created_at":"2024-12-03T13:19:23.122Z","updated_at":"2026-04-28T20:35:16.669Z","avatar_url":"https://github.com/pankalog.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mustang\n\nA simple, blazing-fast URL shortener made in Rust using Redis and Axum.\n\n## Description\n\nMustang is a URL shortener service that leverages the speed and efficiency of Redis and the Axum web framework. It provides a straightforward API for creating and retrieving shortened URLs.\n\n## Installation\n\nTo install and run Mustang, you need to have Rust and Cargo installed. Clone the repository and build the project using Cargo:\n\n```sh\ngit clone https://github.com/pankalog/mustang-rs\ncd mustang-rs\ncargo build --release\n```\n\n## Usage\n\nBefore running the application, ensure you have a Redis server running and set the necessary environment variables:\n\n```sh\nexport REDIS_CONN_STRING=redis://127.0.0.1:6379/\nexport BIND_HOST=127.0.0.1\nexport BIND_PORT=8080\n```\n\nRun the application:\n\n```sh\ncargo run --release\n```\n\n## API Endpoints\n\n### Create a Shortened URL\n\n**`POST /`**\n\nRequest Body:\n```json\n{\n  \"destination_url\": \"https://example.com\"\n}\n```\n\nResponse:\n```json\n{\n  \"short_id\": \"abc123\",\n  \"full_url\": \"http://localhost:8080/abc123\",\n  \"destination_url\": \"https://example.com\"\n}\n```\n\n### Retrieve a Shortened URL\n\n**`GET /{shortened_id}`**\n\nResponse:\n- **307 Temporary Redirect** to the destination URL if found.\n- **404 Not Found** if the shortened ID does not exist.\n\n### OpenAPI Documentation\n\n**`GET /openapi.json`**\n\nReturns the OpenAPI documentation for the API in JSON format. You can also find it on the root of the repository.\n\n## Authors\n\n- Panos Kalogeropoulos - [pkal.dev](https://pkal.dev)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpankalog%2Fmustang-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpankalog%2Fmustang-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpankalog%2Fmustang-rs/lists"}