{"id":18909973,"url":"https://github.com/jonasbn/pxy-redirect","last_synced_at":"2026-03-07T12:30:19.205Z","repository":{"id":136289441,"uuid":"554401917","full_name":"jonasbn/pxy-redirect","owner":"jonasbn","description":"Experimental service for deployment on DigitalOceans app platform","archived":false,"fork":false,"pushed_at":"2025-01-14T05:46:10.000Z","size":76,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T05:27:21.259Z","etag":null,"topics":["app","digitalocean","do","go","golang","service"],"latest_commit_sha":null,"homepage":"https://pxy.fi/","language":"HTML","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/jonasbn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-10-19T18:52:53.000Z","updated_at":"2025-01-14T05:46:13.000Z","dependencies_parsed_at":"2023-11-20T08:00:08.398Z","dependency_job_id":"f4de01ae-ee33-41f3-9ec6-f099816dd711","html_url":"https://github.com/jonasbn/pxy-redirect","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/jonasbn%2Fpxy-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fpxy-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fpxy-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonasbn%2Fpxy-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonasbn","download_url":"https://codeload.github.com/jonasbn/pxy-redirect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898462,"owners_count":19715212,"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":["app","digitalocean","do","go","golang","service"],"created_at":"2024-11-08T09:38:50.334Z","updated_at":"2026-03-07T12:30:19.171Z","avatar_url":"https://github.com/jonasbn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pxy-redirect\n\n## Introduction\n\nThis is service I created for deployment on [DigitalOcean][DO]. The service has been replace by a serverless function [pxy-redirect-ow-function][FUNCTION]\n\nIt supports some documentation I have written up, which resulted in a bug. The bug could be observed when displaying a Markdown page on GitHub. which exceeded the size limit of what could be rendered a Markdown. Please see my [blog post][BLOG] for the long version.\n\n## Description\n\nThe service takes a HTTP request, parses it and redirects to the designated documentation page on the [releases.llvm.org][LLVM] website.\n\nThe acceptable URLs being:\n\n- `/\u003cversion\u003e/\u003cfragment\u003e`\n\nSo the first part has to be a number and the second part a string corresponding to the equivalent on the [releases.llvm.org][LLVM] website.\n\nExample:\n\n`/5/rsanitize-address`\n\nWould be parsed and altered and redirected to:\n\n`https://releases.llvm.org/5.0.0/tools/clang/docs/DiagnosticsReference.html#rsanitize-address`\n\n## Diagnostics\n\nThis is a collection of errors which can be emitted from the service. Not all are visible to the end user and not all error scenarios are documented.\n\nThis section and documentation is primarily aimed and what can be recovered from.\n\n### Unable to assemble URL (400)\n\nThis is the most common error it will provide additional information as to why the request was regarded as a bad request.\n\n#### insufficient parts in provided url\n\nThe the request does not contain enough parts to assemble the redirect target URL.\n\n#### first part of url is not a number\n\nThe first part of the URL should be a number (integer), which is translated to a version number.\n\n#### second part of url is not a string\n\nThe second part of the URL should be a string.\n\n### Unable to parse received URL error (500)\n\nThe URL could not be parsed.\n\n### `ListenAndServe` fatal error\n  \nThis error is emitted if the service is unable to start. The error message will contain details.\n\nThe error is not visible to the end-user as such, but the service will be unavailable.\n\n## Resources and References\n\n- [pxy-redirect-ow-function][FUNCTION]\n- [My TIL collection: clang diagnostic flags](https://github.com/jonasbn/til/blob/master/clang/diagnostic_flags.md) (GitHub)\n- [My TIL collection: clang diagnostic flags](http://jonasbn.github.io/til/clang/diagnostic_flags.html) (website)\n- [clang diagnostic flags matrix generator](https://github.com/jonasbn/clang-diagnostic-flags-matrix)\n- [llvm releases documentation site][LLVM]\n- [DigitalOcean][DO]\n\n[DO]: https://www.digitalocean.com/\n[LLVM]: https://releases.llvm.org/\n[pxy.fi]: https://pxy.fi/\n[FUNCTION]: https://github.com/jonasbn/pxy-redirect-ow-function\n[BLOG]: https://dev.to/jonasbn/challenges-solutions-and-more-challenges-and-more-solutions-4j3f\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fpxy-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonasbn%2Fpxy-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonasbn%2Fpxy-redirect/lists"}