{"id":24177676,"url":"https://github.com/skb08/url-short","last_synced_at":"2026-05-06T19:40:15.758Z","repository":{"id":272033778,"uuid":"915331032","full_name":"Skb08/URL-Short","owner":"Skb08","description":"Go-based URL shortener with support for YAML, JSON, and database-driven path mappings.","archived":false,"fork":false,"pushed_at":"2025-01-11T15:23:30.000Z","size":4770,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T17:12:31.405Z","etag":null,"topics":["golang","json","yaml"],"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/Skb08.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":"2025-01-11T15:16:41.000Z","updated_at":"2025-01-11T15:25:02.000Z","dependencies_parsed_at":"2025-01-11T16:32:23.631Z","dependency_job_id":"42066ac9-a7f6-4a49-a447-c00aba5e5654","html_url":"https://github.com/Skb08/URL-Short","commit_stats":null,"previous_names":["skb08/url-short"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skb08%2FURL-Short","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skb08%2FURL-Short/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skb08%2FURL-Short/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skb08%2FURL-Short/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skb08","download_url":"https://codeload.github.com/Skb08/URL-Short/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541450,"owners_count":19979121,"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":["golang","json","yaml"],"created_at":"2025-01-13T04:15:28.642Z","updated_at":"2026-05-06T19:40:15.692Z","avatar_url":"https://github.com/Skb08.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener 🌐🔗\n\nA simple and user-friendly URL shortener written in Go, supporting flexible URL redirection via YAML, JSON, and database-driven path mappings.\n\n---\n\n## Features ✨\n\n- **Default MapHandler**: Basic in-memory URL mapping.\n- **YAMLHandler**: Load URL mappings from a YAML file.\n- **JSONHandler**: Load URL mappings from a JSON file.\n- **DatabaseHandler**: Extendable to use a database (like BoltDB or SQL) for URL mappings.\n\n---\n\n## How to Run 🚀\n\n### Prerequisites\n\n- Go installed on your system. If you don't have it yet, [Download Go](https://golang.org/dl/).\n\n### Steps\n\n1. **Clone the repository**:\n\n    ```bash\n    git clone https://github.com/\u003cyour-username\u003e/urlshort.git\n    cd urlshort\n    ```\n\n2. **Build the project**:\n\n    ```bash\n    go build\n    ```\n\n3. **Run the application with the desired configuration**:\n\n    - **Default MapHandler**:\n\n      ```bash\n      ./urlshort\n      ```\n\n    - **YAMLHandler**:\n\n      ```bash\n      ./urlshort -yaml urls.yaml\n      ```\n\n    - **JSONHandler**:\n\n      ```bash\n      ./urlshort -json urls.json\n      ```\n\n---\n\n## Example Configuration Files 📄\n\n### Example YAML File (`urls.yaml`)\n\n```yaml\n- path: /example\n  url: https://example.com\n- path: /github\n  url: https://github.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskb08%2Furl-short","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskb08%2Furl-short","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskb08%2Furl-short/lists"}