{"id":17037958,"url":"https://github.com/kzu/aka","last_synced_at":"2025-10-28T08:48:35.889Z","repository":{"id":141699038,"uuid":"328629811","full_name":"kzu/aka","owner":"kzu","description":"An Azure function implementing a URL shortening service backed by Azure blob storage","archived":false,"fork":false,"pushed_at":"2023-09-12T15:49:40.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T18:56:14.015Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kzu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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},"funding":{"github":"devlooped"}},"created_at":"2021-01-11T10:38:58.000Z","updated_at":"2024-04-05T00:56:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a596fc3-fa5f-41b0-8468-7eea7faf1cf1","html_url":"https://github.com/kzu/aka","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/kzu%2Faka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2Faka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2Faka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2Faka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kzu","download_url":"https://codeload.github.com/kzu/aka/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245032852,"owners_count":20550166,"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-14T08:55:34.514Z","updated_at":"2025-10-28T08:48:35.826Z","avatar_url":"https://github.com/kzu.png","language":"C#","funding_links":["https://github.com/sponsors/devlooped"],"categories":[],"sub_categories":[],"readme":"# Azure serverless URL shortening service\n\nAn Azure function implementing a URL shortening service backed by Azure blob storage \nin the fewest lines of code possible (~70 LoC).\n\n[Read the announcement](https://www.cazzulino.com/minimalist-shortlinks.html)\n\n## Installing\n\n1. Fork the repo\n2. Create an Azure Functions app for it\n3. Add an `X-Authorization` setting containing a shared key used for creating the short links\n4. Add automated deployment from the repo\n\nThe short URLs will be persisted in the same Azure storage account used by the app, in a table \nnamed `Aka`.\n\n## Usage\n\nThe function provides a REST API for URL shortening, as well as the resolving itself.\nAll mutating operations (POST, PUT, DELETE) require the client providing an `X-Authorization` \nvalue that needs to match the setting configured server-side (that is, a shared key/secret).\n\nUsage is trivial: just `POST` or `PUT` to the desired short URL you want, passing the target \nURL in the body, like so: \n\n```\n# create or update shortlink\ncurl -d [TARGET_URL] -H \"X-Authorization: [SHARED_SECRET]\" https://[FUNCTION_APP_URL]/[SHORT_ALIAS]\n```\n\nThe `X-Authorization` must match what you specified in step 3 during install/configuration.\n\nThat's it.\n\nExample redirection [stats](https://github.com/kzu/aka/blob/main/stats/run.csx) badge:\n\n![redirects badge](https://img.shields.io/endpoint.svg?url=https://aka.kzu.dev/stats/redirect\u0026label=%E2%A5%A4%20redirects\u0026color=brightgreen\u0026logo=Azure-Functions\u0026logoColor=brightgreen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzu%2Faka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkzu%2Faka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzu%2Faka/lists"}