Any GitHub user's stars → markdown list
Pull a user's recent stars and format as a markdown bullet list. Great for personal awesome-lists or weekly digests.
The one-liner
$ curl -s "https://api.github.com/users/torvalds/starred?per_page=50" \
| jq -r '.[] | "- [\(.full_name)](\(.html_url)) — \(.description // "_no description_")"'What each stage does
- [01] curl
curl -s "https://api.github.com/users/torvalds/starred?per_page=50"GitHub public API endpoint. Anonymous rate limit is 60 req/hour — fine for one-off lists. Add `-H "Authorization: Bearer $GH_TOKEN"` for 5000/hour. - [02] jq
jq -r '.[] | "- [\(.full_name)](\(.html_url)) — \(.description // "_no descripti…For each repo: emit a markdown list item with the repo link and description. // "…" provides a fallback when description is null.
Expected output (sample)
- [klange/toaruos](https://github.com/klange/toaruos) — A completely hobby... - [SerenityOS/serenity](https://github.com/SerenityOS/serenity) — The Serenity Operating System ...
Caveats & tips
- Swap `starred` for `repos` to list a user's own repos.
- GitHub paginates — `?page=2` for the next batch.