{"id":25059671,"url":"https://github.com/0xb10c/github-metadata-mirror","last_synced_at":"2026-04-12T11:03:25.306Z","repository":{"id":183457917,"uuid":"644144086","full_name":"0xB10C/github-metadata-mirror","owner":"0xB10C","description":"GitHub metadata mirror - gohugo.io site to generate a GitHub metadata (Issues/PRs) mirror - uses https://github.com/0xB10C/github-metadata-backup data","archived":false,"fork":false,"pushed_at":"2025-06-06T13:39:00.000Z","size":423,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T12:59:05.528Z","etag":null,"topics":["github-metadata","hugo-site","mirror"],"latest_commit_sha":null,"homepage":"https://mirror.b10c.me","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/0xB10C.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-22T23:09:53.000Z","updated_at":"2025-08-21T22:08:35.000Z","dependencies_parsed_at":"2024-03-14T02:25:43.526Z","dependency_job_id":"82cc2055-04b7-4462-b4b8-4c015e016f8e","html_url":"https://github.com/0xB10C/github-metadata-mirror","commit_stats":null,"previous_names":["0xb10c/github-metadata-mirror"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xB10C/github-metadata-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xB10C%2Fgithub-metadata-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xB10C%2Fgithub-metadata-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xB10C%2Fgithub-metadata-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xB10C%2Fgithub-metadata-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xB10C","download_url":"https://codeload.github.com/0xB10C/github-metadata-mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xB10C%2Fgithub-metadata-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29532437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T03:01:11.216Z","status":"ssl_error","status_checked_at":"2026-02-17T03:00:31.803Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["github-metadata","hugo-site","mirror"],"created_at":"2025-02-06T15:36:04.234Z","updated_at":"2026-04-12T11:03:25.285Z","avatar_url":"https://github.com/0xB10C.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub metadata mirror\n\nA Python-based generator for a static HTML GitHub issues and pull-request\nmirror using backup data from [github-metadata-backup](https://github.com/0xB10C/github-metadata-backup).\n\n## Usage\n\nThis tool generates a static HTML site from a github-metadata-backup in a\nsingle step. It reads the backup JSON files, builds an in-memory index, then\nrenders HTML pages one at a time.\n\n**Dependencies**: Python 3.11+ and [mistune] for Markdown rendering.\n\n```\npip install mistune\n```\n\nRun `build.py` with the path to the backup directory and an output directory:\n\n```\npython build.py \\\n    --input /path/to/backup \\\n    --output /path/to/output \\\n    --title \"My GitHub Mirror\" \\\n    --owner \u003cowner\u003e \\\n    --repository \u003crepository\u003e\n```\n\nThe generated static files can be served by nginx, caddy, or any other\nweb server.\n\n### Options\n\n- `--input`: Path to the github-metadata-backup directory (contains `issues/` and `pulls/` subdirectories).\n- `--output`: Output directory for the generated HTML site.\n- `--title`: Site title shown in the navigation bar.\n- `--owner`: GitHub repository owner (used for link rewriting and linking back to GitHub).\n- `--repository`: GitHub repository name.\n- `--footer`: Optional footer HTML shown on every page.\n- `--base-url`: Base URL path if hosting in a subdirectory (e.g. `/mirror/`). Defaults to `/`.\n- `-s` / `--subset`: Only process the first 100 issues and 100 pull requests. Useful for testing.\n\n## Example\n\nTo generate a mirror from the Bitcoin Core [bitcoin/bitcoin] metadata backup\n(assuming it's located in `/var/backup/github-metadata-backup-bitcoin-bitcoin`):\n\n```\npython build.py \\\n    --input /var/backup/github-metadata-backup-bitcoin-bitcoin \\\n    --output ./public \\\n    --title \"Bitcoin Core GitHub Mirror\" \\\n    --owner bitcoin \\\n    --repository bitcoin \\\n    --footer \"\u003cb\u003eThis mirror is hosted by 0xB10C\u003c/b\u003e\" \\\n    --base-url \"/bitcoin-bitcoin/\"\n```\n\nWhen testing with large repositories, pass `-s` to process only a subset of\n100 issues and pull requests. This significantly speeds up the build.\n\nThe static files are written to the `--output` directory. From there, use\nnginx, caddy, or any other web server to host them.\n\n[bitcoin/bitcoin]: https://github.com/bitcoin/bitcoin\n[mistune]: https://github.com/lepture/mistune\n\n## Development\n\n### Tests\n\nTests use Python's built-in `unittest` and require `pytest`:\n\n```\npip install pytest\npython -m pytest tests/ -v\n```\n\n### Linting\n\n```\npip install ruff\nruff check .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xb10c%2Fgithub-metadata-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xb10c%2Fgithub-metadata-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xb10c%2Fgithub-metadata-mirror/lists"}