{"id":15591281,"url":"https://github.com/dan-mba/url-shortener","last_synced_at":"2026-03-17T13:04:25.165Z","repository":{"id":36981226,"uuid":"222448554","full_name":"dan-mba/url-shortener","owner":"dan-mba","description":"Fastify app URL shortener","archived":false,"fork":false,"pushed_at":"2025-04-28T03:14:09.000Z","size":1867,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-28T11:23:24.343Z","etag":null,"topics":["fastify","fetch","javascript","mongodb","mongoose","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://mixed-hail.glitch.me","language":"TypeScript","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/dan-mba.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":"2019-11-18T12:51:35.000Z","updated_at":"2025-04-24T09:45:00.000Z","dependencies_parsed_at":"2023-02-14T06:46:01.687Z","dependency_job_id":"37024a7c-e835-401c-a066-11628413ca07","html_url":"https://github.com/dan-mba/url-shortener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-mba%2Furl-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-mba%2Furl-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-mba%2Furl-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dan-mba%2Furl-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dan-mba","download_url":"https://codeload.github.com/dan-mba/url-shortener/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251303343,"owners_count":21567678,"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":["fastify","fetch","javascript","mongodb","mongoose","nodejs","typescript"],"created_at":"2024-10-02T23:40:51.539Z","updated_at":"2026-03-17T13:04:20.108Z","avatar_url":"https://github.com/dan-mba.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener Microservice\n\n\n### POST API\n\n1. I can POST a URL to `[url]/api/shorturl/new` and I will receive a shortened URL in the JSON response. Example : `{\"original_url\":\"https://www.google.com\",\"short_url\":2}`\n2. If I pass an invalid URL that doesn't follow the valid `http(s)://www.example.com(/more/routes)` format, the JSON response will contain an error like `{\"error\":\"invalid URL\"}`. \n3. When I visit the shortened URL, it will redirect me to my original link.\n\n\n#### Creation Example:\n\nPOST [url]/api/shorturl/new - body (urlencoded) :  url=https://www.google.com\n\n#### Usage:\n\n[url]/api/shorturl/2\n\n#### Will redirect to:\n\nhttps://www.google.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-mba%2Furl-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdan-mba%2Furl-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdan-mba%2Furl-shortener/lists"}