| Crates.io | github-discussions-mirror |
| lib.rs | github-discussions-mirror |
| version | 0.1.9 |
| created_at | 2025-10-28 20:43:09.5329+00 |
| updated_at | 2025-11-07 15:17:00.040796+00 |
| description | A tool to mirror and export GitHub discussions as JSON and static HTML |
| homepage | https://codeberg.org/untitaker/github-discussions-mirror |
| repository | |
| max_upload_size | |
| id | 1905621 |
| size | 164,258 |
A tool to:
For a demo, see https://github.com/untitaker/rayhunter-discussions-mirror
cargo build --release
# or
cargo install github-discussions-mirror
export GITHUB_TOKEN=your_token_here
./target/release/github-discussions-mirror sync -r owner/repo
Your data is in ./data. JSON and images.
You can periodically rerun this command and it will sync new changes from
GitHub to ./data efficiently.
Based on the files in ./data, you can now generate a static site:
./target/release/github-discussions-mirror generate
The HTML files are now in ./site.
Static site generation is entirely based on ./data's contents, i.e. fully
offline. It generates the entire site from scratch each time.
To have a live mirror, you have to retain the ./data folder, sync it
periodically, then generate the static site from it each time.
For various reasons you may want to re-do the data sync. Mostly when bugs are fixed in this tool.
You can pass --force to sync to sync entirely from scratch.
You can also do --since-days=4 to reset the checkpoint by 4 days and refetch
only discussions that have seen activity since 4 days before the last sync.
MIT (see Cargo.toml and LICENSE)