{"id":16888034,"url":"https://github.com/otbe/serverless-url-shortener","last_synced_at":"2026-05-11T07:11:44.779Z","repository":{"id":95957370,"uuid":"123626002","full_name":"otbe/serverless-url-shortener","owner":"otbe","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-02T20:39:31.000Z","size":246,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T08:11:28.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/otbe.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":"2018-03-02T20:13:30.000Z","updated_at":"2018-03-05T11:08:45.000Z","dependencies_parsed_at":"2023-03-24T03:49:11.021Z","dependency_job_id":null,"html_url":"https://github.com/otbe/serverless-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/otbe%2Fserverless-url-shortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fserverless-url-shortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fserverless-url-shortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fserverless-url-shortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otbe","download_url":"https://codeload.github.com/otbe/serverless-url-shortener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566930,"owners_count":20473451,"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":[],"created_at":"2024-10-13T16:48:30.920Z","updated_at":"2026-05-11T07:11:39.744Z","avatar_url":"https://github.com/otbe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-url-shortener\n\nA starter kit for an url shortener service.\nIts **serverless**, **DBless** and has a nice **GraphQL API** :)\n\n## How it works\n\nEmpty files with a specific S3 website hosting header are used as redirect markers. A Cloudfront distribution sits in front of the S3 bucket which can be used to setup a **custom domain** (like goo.gl) for your short urls.\n\nA small GraphQL API lets you create and list redirects.  \n![List](./assets/list.png) ![Create](./assets/create.png)\n\n## How to use\n\nMake sure you have valid AWS credentials in your environment and then run:\n\n`$ yarn deploy`\n\nThis will output the endpoint for your GraphQL API (something like https://\\\u003cid\\\u003e.execute-api.\\\u003cregion\\\u003e.amazonaws.com/dev/graphql).\nThis stack deploys a Cloudfront distribution with an url like \\\u003cid\\\u003e.cloudfront.net. After you created a redirect you can use this url to test the redirection. In the example above this would be `http://\u003cid\u003e.cloudfront.net/my-google`\n\n## Gotchas\n\n* no tracking (but you can use cloudfront logs to analyze your requests)\n* no A/B testing\n* no segmentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotbe%2Fserverless-url-shortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotbe%2Fserverless-url-shortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotbe%2Fserverless-url-shortener/lists"}