A single command that turns any GitHub repo into a professional-looking project page.
npx github-brand init
That's it. The tool scans your project, figures out the language, license, and version, generates SVG badges and a social preview banner, then inserts everything into your README.
| Step | What happens |
|---|---|
| 1. Scan | Reads your package.json, Cargo.toml, pyproject.toml, go.mod, Gemfile, LICENSE β detects language, license, version, ecosystem |
| 2. Badge | Generates SVG badges locally with badge-maker β no shields.io network dependency, no external services |
| 3. Banner | Renders a 1280Γ640 SVG social preview card in your choice of 3 themes |
| 4. Inject | Places everything in your README between <!-- github-brand --> markers, or creates a README from scratch |
Zero config. Works for TypeScript, Python, Rust, Go, Ruby, C#, PHP β 10+ ecosystems out of the box.
| Command | What it does |
|---|---|
init |
Full pipeline: scan β badges β banner β README |
scan |
Print detected repo metadata to stdout |
badge |
Generate badge markdown β stdout |
banner |
Generate SVG banner only |
apply |
Inject existing assets into README |
action |
GitHub Action mode (reads GITHUB_TOKEN) |
| Flag | Default | Description |
|---|---|---|
--dir |
. |
Target directory |
--gh-token |
β | GitHub API token for star/fork counts |
--output |
.github/branding |
Output directory for generated assets |
--no-banner |
false |
Skip banner generation |
--banner-style |
carbon |
Banner theme: minimal, gradient, or carbon |
--dry-run |
false |
Preview without writing |
.github/branding/
βββ badges/ # individual SVG badges
βββ banner.svg # social preview 1280Γ640
βββ badges.md # markdown for manual paste
# .github/workflows/branding.yml on: push: { branches: [main] } workflow_dispatch: jobs: branding: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ivan-meer/github-brand@v1 with: banner-style: carbon gh-token: ${{ github.token }}
Badges and banner auto-regenerate on every push. Commit your .github/branding/ folder to keep them in sync.
| Style | Description |
|---|---|
carbon |
Dark terminal-inspired theme with grid overlay and language accent glow |
gradient |
Smooth color transition from your language hue |
minimal |
Clean light background with subtle accent bars |
npx github-brand init --banner-style gradient
| File | Detects |
|---|---|
package.json |
name, version, description, npm |
pyproject.toml |
name, version, pypi/poetry |
Cargo.toml |
name, version, cargo |
go.mod |
module name, Go |
Gemfile / *.gemspec |
name, version, bundler |
composer.json |
name, version, composer |
*.csproj |
name, nuget |
LICENSE |
SPDX identifier |
.github/workflows/ |
CI provider |
- β Repo scanner (multi-language)
- β SVG badge generation (offline)
- β SVG social banner (3 themes)
- β README injector with markers
- β¬ GitHub API fetcher (stars, forks, releases)
- β¬ GitHub Action
- β¬ CI/CD badge auto-detection
- β¬ PNG output (via sharp)
MIT β do whatever you want.
Built with TypeScript. Badges powered by badge-maker.