WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

numtide/banner-generator

Numtide Banner Generator

Generates SVG banners for Numtide's GitHub repositories with automatic metadata fetching.

Quick Start

Embed in Your README

Add this to any Numtide repository README:

![Banner](https://banner.numtide.com/banner/numtide/your-repo.svg)

Usage

nix run github:numtide/banner-generator#banner-api
nix run github:numtide/banner-generator#banner-cli

API Endpoints

  • GET /banner/{owner}/{repo}.svg - Generate SVG banner

CLI Usage

The CLI can generate PNG banners for use as GitHub social preview images. It requires Chromium to be installed (uses headless Chrome for rendering).

# Generate PNG banner
banner-cli generate owner/repo -o banner.png

# Generate without stats (for social preview that won't get stale)
banner-cli generate owner/repo --no-stats -o banner.png

# Generate with dark color scheme
banner-cli generate owner/repo --dark -o banner.png

After generating, upload the PNG as social preview via: Repository Settings > Social preview > Edit

Configuration

See deploy/banner-generator.toml for configuration options.

Template Structure

Templates are pure SVG files with specific element IDs that get replaced dynamically:

Element ID Description Example Content
repo-name Repository name text "banner-generator"
description Description text (can contain tspan elements) "Generate banners..."
stats-stars Stars count text "1.2k"
stats-forks Forks count text "45"
stats-language Primary language text "Go"
stats-group Stats container (hidden if no data) -
font-css Style element for font injection -

Development

nix develop

make dev     # Run with hot reload
make build   # Build binaries
make test    # Run tests
make lint    # Run linters

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT

About

Nice banners for our repos

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published