{"id":23138408,"url":"https://github.com/encodeous/random-xkcd","last_synced_at":"2026-05-13T07:02:08.856Z","repository":{"id":103555634,"uuid":"311172823","full_name":"encodeous/random-xkcd","owner":"encodeous","description":"A project that brings you a random xkcd post every time!","archived":false,"fork":false,"pushed_at":"2024-04-15T20:25:47.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T09:46:18.334Z","etag":null,"topics":["azure","dotnet","fun","html","xkcd"],"latest_commit_sha":null,"homepage":"","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/encodeous.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":"2020-11-08T23:08:01.000Z","updated_at":"2022-05-14T22:41:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d0086a8-a499-4654-97ff-bdacdf16c8e0","html_url":"https://github.com/encodeous/random-xkcd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/encodeous/random-xkcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encodeous%2Frandom-xkcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encodeous%2Frandom-xkcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encodeous%2Frandom-xkcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encodeous%2Frandom-xkcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encodeous","download_url":"https://codeload.github.com/encodeous/random-xkcd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encodeous%2Frandom-xkcd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32971672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["azure","dotnet","fun","html","xkcd"],"created_at":"2024-12-17T13:10:50.693Z","updated_at":"2026-05-13T07:02:08.820Z","avatar_url":"https://github.com/encodeous.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## `random_xkcd::A_random_project`\n\n\u003e xkcd is a webcomic of romance, sarcasm, math, and language.\n\nThis project grabs a completely random comic at the click of a button.\n\n## `A random comic for you! (Updated every few minutes)`\n\n![A random xkcd](https://ec-xkcd.azurewebsites.net/api/xkcd)\n\nAnd a dark mode one too!\n\n![A random xkcd](https://ec-xkcd.azurewebsites.net/api/xkcddark)\n\n## `tl;dr`\n\nFor markdown, add `![alt text](https://ec-xkcd.azurewebsites.net/api/xkcd)` to your profile page for a random comic every time you reload! (Or once every few minutes due to caching, like GitHub)\n\nFor html, add `\u003cimg src=\"https://ec-xkcd.azurewebsites.net/api/xkcd\" alt=\"alt text\"\u003e` to the page.\n\nThe same applies for the dark mode, where the API link is `https://ec-xkcd.azurewebsites.net/api/xkcddark`\n\n*Please note: If this api does not work, it probably means I have ran out of azure credits!*\n\n## `API`\n\nSend a http request to [https://ec-xkcd.azurewebsites.net/api/xkcd](https://ec-xkcd.azurewebsites.net/api/xkcd \"https://ec-xkcd.azurewebsites.net/api/xkcd\") and it will respond with a random xkcd as a png.\n\nA dark mode version is also available where a greyscale and color invert filter has been applied to the image.\n\n[https://ec-xkcd.azurewebsites.net/api/xkcddark](https://ec-xkcd.azurewebsites.net/api/xkcddark \"https://ec-xkcd.azurewebsites.net/api/xkcddark\")\n\n## `How it works`\n\n1. On every HTTP request, the program reads the RSS feed of xkcd to obtain the latest post.\n2. Then, a random post, r is selected in the range `[1, x]` where x is the latest post.\n3. A HTTP request to `https://xkcd.com/\u003cr\u003e` is made, and the HTML is parsed.\n4. The image is extracted and then loaded into memory.\n5. The API then returns the extracted image.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencodeous%2Frandom-xkcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencodeous%2Frandom-xkcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencodeous%2Frandom-xkcd/lists"}