{"id":18185061,"url":"https://github.com/jaandrle/randommdn","last_synced_at":"2025-07-29T11:08:04.715Z","repository":{"id":171633885,"uuid":"648195564","full_name":"jaandrle/randomMDN","owner":"jaandrle","description":"Posting a random article from MDN.","archived":false,"fork":false,"pushed_at":"2025-01-02T19:04:17.000Z","size":48,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-25T03:41:02.703Z","etag":null,"topics":["cli","css","html","javascript","mastodon","mastodon-bot","mdn","mdn-docs","rss","webdev"],"latest_commit_sha":null,"homepage":"https://front-end.social/@randomMDN","language":"JavaScript","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/jaandrle.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":"2023-06-01T12:20:12.000Z","updated_at":"2025-06-04T04:36:54.000Z","dependencies_parsed_at":"2025-04-09T19:51:40.961Z","dependency_job_id":"6666574c-b882-42dc-82b4-c90bc31ef99e","html_url":"https://github.com/jaandrle/randomMDN","commit_stats":null,"previous_names":["jaandrle/mastodon-randommdn","jaandrle/randommdn"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jaandrle/randomMDN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2FrandomMDN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2FrandomMDN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2FrandomMDN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2FrandomMDN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaandrle","download_url":"https://codeload.github.com/jaandrle/randomMDN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaandrle%2FrandomMDN/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267677168,"owners_count":24126312,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","css","html","javascript","mastodon","mastodon-bot","mdn","mdn-docs","rss","webdev"],"created_at":"2024-11-02T22:05:51.260Z","updated_at":"2025-07-29T11:08:04.669Z","avatar_url":"https://github.com/jaandrle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# randomMDN\nThis repository posts a random article from [MDN Web Docs](https://developer.mozilla.org/en-US/).\nIt is also a npm package exporting method `randomMDN`.\n\nFor automatic posting, the [GitHub Action](https://docs.github.com/en/actions) is used,\nsee [`.github/workflows/scheduled-posts.yml`](./.github/workflows/scheduled-posts.yml).\n\nInspired by [Random MDN (@randomMDN) / Twitter](https://twitter.com/randomMDN).\n\n## Mastodon\nYou can find the bot on [randomMDN (@randomMDN@front-end.social) - Front-End Social](https://front-end.social/@randomMDN).\n\n## RSS\nYou can find the rss feed on [front-end.social/@randomMDN.rss](https://front-end.social/@randomMDN.rss)[^MaR].\n\n## NPM \u0026 CLI\n1. Instalation (for now for early adapters)\n\t1. latest *lts* version of NodeJS ⇒ for installation follow [nvm-sh/nvm: Node Version Manager](https://github.com/nvm-sh/nvm)[^ORnpm]\n\t1. `npm install https://github.com/jaandrle/randomMDN --location=global`\n1. usage cli\n\t```bash\n\t\u003e_:randomMDN --help\n\n\tDescription\n\t\tThis script posts a new random article from MDN¹ to a given mastodon instance.\n\t\tTo post to the correct mastodon instance, use the `--url` and `--token` options.\n\t\tThe script has been highly inspired by the similar project² for Twitter.\n\t\t\n\t\t[1] https://developer.mozilla.org/en-US/\n\t\t[2] https://github.com/random-mdn/random-mdn-bot\n\n\tUsage\n\t\t$ randomMDN \u003ccommand\u003e [options]\n\n\tAvailable Commands\n\t\tjson        Print random article as JSON\n\t\techo        Print random article\n\t\ttext        Print random article as text – default\n\t\tmastodon    Post to mastodon\n\t\trss         Prints RSS feed for beeing used for example in [Newsboat, an RSS reader](https://newsboat.org/).\n\n\tFor more info, run any command with the `--help` flag\n\t\t$ randomMDN json --help\n\t\t$ randomMDN echo --help\n\n\tOptions\n\t\t-v, --version    Displays current version\n\t\t-h, --help       Displays this message\n\t```\n1. usage package: `import { randomMDN } from \"randomMDN\";`\n\n## Acknowledgments\n- [random-mdn/random-mdn-bot: Serverless functions tweeting/sending/... random MDN articles](https://github.com/random-mdn/random-mdn-bot)\n- [A Beginner's Guide to the Mastodon API - Post a Status Update with cURL or Python - DEV Community](https://dev.to/bitsrfr/getting-started-with-the-mastodon-api-41jj)\n- [Simple Mastodon bot in 100 lines.](https://gist.github.com/NeKzor/e7d8551c4f55fbe4ec16252e0f6fa012)\n\n[^MaR]: FYI: [Mastodon and RSS](https://derekkedziora.com/notes/20221112094802)\n[^ORnpm]: Alternatively `curl -sL install-node.vercel.app/lts | bash`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaandrle%2Frandommdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaandrle%2Frandommdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaandrle%2Frandommdn/lists"}