{"id":28185112,"url":"https://github.com/wabarc/broker","last_synced_at":"2026-04-16T19:03:36.558Z","repository":{"id":36973164,"uuid":"305154704","full_name":"wabarc/broker","owner":"wabarc","description":"Distribute archived webpages to GitHub and beyond","archived":false,"fork":false,"pushed_at":"2023-12-15T14:24:34.000Z","size":907,"stargazers_count":1,"open_issues_count":29,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T08:11:41.398Z","etag":null,"topics":["archive","github","javascript","nodejs","telegram","typescript","wayback","wayback-archiver"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wabarc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-18T17:12:04.000Z","updated_at":"2022-10-23T04:14:32.000Z","dependencies_parsed_at":"2023-12-15T15:42:30.782Z","dependency_job_id":null,"html_url":"https://github.com/wabarc/broker","commit_stats":{"total_commits":93,"total_committers":3,"mean_commits":31.0,"dds":"0.16129032258064513","last_synced_commit":"2d0a253d8762cc6c2ad7fc928e32f844e5354cd1"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":"wabarc/project-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wabarc%2Fbroker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wabarc%2Fbroker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wabarc%2Fbroker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wabarc%2Fbroker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wabarc","download_url":"https://codeload.github.com/wabarc/broker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528361,"owners_count":21922623,"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":["archive","github","javascript","nodejs","telegram","typescript","wayback","wayback-archiver"],"created_at":"2025-05-16T06:11:20.524Z","updated_at":"2026-04-16T19:03:31.536Z","avatar_url":"https://github.com/wabarc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broker\n\nRead this in other languages: English | [简体中文](./README_zh-CN.md)\n\nDistribute archived webpages.\n\n## Prerequisites\n\n- A GitHub account ([create](https://github.com/join))\n- A GitHub repository ([create](https://github.com/new))\n- Personal access token ([create](https://github.com/settings/tokens/new))\n\nPersonal access token only required scope of read repository.\n\n## Installation\n\nUsing npm:\n\n```bash\nnpm install @wabarc/broker\n```\n\nUsing yarn:\n\n```bash\nyarn add @wabarc/broker\n```\n\n## Example\n\nAs CLI:\n\n```bash\n$ broker\nUsage: broker [subcommand] [options]\n\nCLI tool for distribute webpages to Wayback Machine.\n\nOptions:\n  -v, --version                output the current version\n  -h, --help                   display help for command\n\nCommands:\n  github|gh [options]          Distribute webpages to GitHub repository.\n  duty-machine|duty [options]  Distribute webpages to duty-machine.\n  help [command]               display help for command\n\n$ broker help gh\nUsage: broker github|gh [options]\n\nDistribute webpages to GitHub repository.\n\nOptions:\n  -t, --token [string]            GitHub account token.\n  -o, --owner [string]            GitHub account name.\n  -r, --repo [string]             GitHub repository name.\n  -s, --source [string] \u003csource\u003e  Webpages source (default: \"telegram\")\n  -c, --channel [string]          source platform name\n  -l, --limit [number]            fetch message limit one time (default: 25)\n  -h, --help                      display help for command\n```\n\nIf the environment variable `BROKER_MSG_LIMIT` exists, it used as the `--limit` option.\n\nAs npm package:\n\n```javascript\nimport { Broker } from '@wabarc/broker';\n\nconst broker = new Broker().source({ platform: 'telegram', channel: 'channel-name' }).github({\n  token: 'your9bb2faaccountf9f8d486b10baab23token',\n  owner: 'github-account-name',\n  repo: 'testing',\n});\n\nconst done = await broker.begin();\nconsole.log(done)\n```\n\n## Instance methods\n\nThe available instance methods are listed below.\n\n- broker#source({ platform?: 'telegram', channel: string })\n- broker#github({ token: string, owner: string, repo: string })\n- broker#begin()\n\n## License\n\nThis software is released under the terms of the GNU General Public License v3.0. See the [LICENSE](https://github.com/wabarc/broker/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwabarc%2Fbroker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwabarc%2Fbroker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwabarc%2Fbroker/lists"}