← all repos
gh-social-upload
0Upload a repo's social preview card from the CLI — the API GitHub never gave you.
The story
GitHub has no public API for setting a repository's social preview image — the OpenGraph card shown when your repo is shared on X, Slack, or Discord. The web UI is the only way. This tool drives that UI with Playwright and a saved browser session, so `gh social-upload --image social.png` just works — and your repo-publishing automation can finally be fully automated.
Highlights
- ✦One-liner: gh social-upload --image social.png
- ✦Auto-detects the repo from your working directory
- ✦Runs as a gh extension or npm CLI
- ✦Solves a gap GitHub has acknowledged but never filled
$ git clone https://github.com/ibrews/gh-social-upload.git
Want this level of depth on your own project?
The classes teach the same production techniques these repos are built with — scar tissue included.