Takes a git repo and produces a PNG poster showing commit history, top contributors, language breakdown, and tagged milestones.
npm install -g @sectiontn/gitposterOr run without installing:
npx @sectiontn/gitposter <repo>
bunx @sectiontn/gitposter <repo>gitposter <owner/repo> # GitHub repo
gitposter ./path/to/local/repo # local path| Flag | Description | Default |
|---|---|---|
--theme <name> |
dark, light, minimal, colorful |
dark |
--format <name> |
poster (1200x1800) or square (auto-height) |
poster |
--all-themes |
One PNG per theme | — |
--max-commits <n> |
Limit commits fetched | 5000 |
--output <path> |
Output file path | <repo>-<format>.png |
--token <token> |
GitHub personal access token | $GITHUB_TOKEN |
# basic dark poster
gitposter facebook/react --theme dark
# square for Twitter/Instagram
gitposter torvalds/linux --format square --theme minimal
# all four themes in one go
gitposter vercel/next.js --all-themes
# local repo
gitposter ./my-project --output my-project.png
# large repo, cap the commit fetch
gitposter microsoft/vscode --max-commits 2000Without a token you get 60 API requests per hour, which runs out fast on repos with many contributors. Set GITHUB_TOKEN or pass --token.
export GITHUB_TOKEN=ghp_...
gitposter owner/repoNode >= 18
MIT
