Documentation

Create a banner, explore the API, or run your own instance. The project guides and policies are collected here in one place.

Project overview #

URL-based repository banners. Think shields.io, but for headers. ✨

GitHub Repo Banner

I believe every repository deserves to look beautiful. Your code is art, your projects deserve stunning visuals to match. But design tools steal hours you don't have. So I built a service that generates gorgeous banners through simple URL parameters. Instant, customizable, and no design tools required. Because great projects deserve great repository banners.

Create a banner Β· Documentation Β· Public pages Β· Banner rendering Β· API reference Β· Self-hosting Β· Brand guidelines Β· Agent skill Β· Terms Β· Privacy

🚁 Deploy Your Own #

Deploy on Railway

When you deploy your own copy, you're directly supporting this project! πŸ’–

✨ Features #

  • 🎨 Backgrounds β€” Solid colors, gradients, transparency, presets, and public HTTPS images.
  • πŸ“Έ Image search and styling β€” Pexels search with more results, image blur, and background color filters.
  • πŸ”€ Typography β€” Google Fonts, emoji, Simple Icons using ![slug], and inline custom images using ![icon src="https://…"].
  • 🧩 Custom Images β€” Position multiple logos or decorations, resize and rotate them, preserve proportions, and arrange them behind or in front of text.
  • πŸ“₯ Output β€” Live preview, README Markdown, image URLs, SVG, and PNG downloads.
  • πŸ’– Optional attribution β€” Toggle the watermark and choose any corner.
  • πŸ“š Accessible controls β€” Keyboard-selectable photos and responsive Code of conduct and MIT license tabs.
  • πŸ“– Project pages β€” Documentation at /docs and optional usage stats in the generator sidebar.
  • πŸ”’ Simple usage stats β€” Optional daily counts of successful banner renders; designs are not saved.
  • 🐳 Self-hosting β€” Docker Compose with required Redis for persistent search caching and quota control.
  • πŸ€– Agent skill β€” Create banner URLs and README Markdown from compatible AI coding tools.

πŸš€ Quick Start #

Use the Hosted Service #

  1. Open ghrb.waren.build.
  2. Set your text, fonts, and background; optionally add custom images and check the live preview.
  3. Copy Markdown or an image URL, or download SVG/PNG. Exports run in your browser; designs are not saved on the server.

You can also create a banner directly with a URL:

![My Project](https://ghrb.waren.build/render/banner?header=My+Project&bg=1a1a1a-4a4a4a&color=ffffff)

Self-Hosting #

Use Docker Compose to run the app and its required Redis database:

git clone https://github.com/warengonzaga/github-repo-banner.git
cd github-repo-banner
cp .env.example .env
docker compose up --build -d

Open http://localhost:3000. See the self-hosting guide for configuration, Railway deployment, and development commands.

πŸ“– Usage Examples #

Backgrounds and Styling #

Use color, gradient, image, and styling parameters to control the banner background.

https://ghrb.waren.build/render/banner?header=My+Project&bgimg=https://images.pexels.com/photos/1261728/pexels-photo-1261728.jpeg&bgblur=10&bgbrightness=60&bggrayscale=100&color=ffffff

See background effects and parameters.

Custom Icons and Images #

Add inline icons or freely positioned images from the generator:

![icon src="https://example.com/logo.png" w="100%"] My Project

Use public HTTPS image URLs. See the custom image settings for limits, positioning, rotation, and validation rules.

Pexels Integration #

Hosted and self-hosted instances can offer Pexels search when PEXELS_API_KEY is configured. Direct image URLs work without a key; see self-hosting configuration.

Watermark and Output #

The UI enables attribution by default. Use the output controls or support=true to control generated banner links; see the Banner Rendering guide.

Repository Documents #

The generator includes the repository README, Code of Conduct, and MIT license. Open the Documentation page when you need the full guides. Usage stats appear in the generator sidebar when enabled.

πŸ”Œ API Reference #

See the public pages guide for browser-facing routes and the Banner Rendering guide for generated SVG URLs. The API reference covers /api/health and /api/pexels/search.

🌟 Who Uses This #

Projects and organizations using GitHub Repo Banner:

πŸ€– Agent Skill #

The standalone github-repo-banner skill creates banner URLs and README Markdown using this service, with project branding and explicit preview checks. It needs no other Clean plugin or API key.

With a Codex version supporting plugins, install from the repository's marketplace:

codex plugin marketplace add warengonzaga/github-repo-banner
codex plugin add github-repo-banner@github-repo-banner

Start a fresh session after installation. For a local checkout, use codex plugin marketplace add /absolute/path/to/github-repo-banner.

Example requests:

$github-repo-banner create a banner for this project's README using its existing colors, preview it, and give me the Markdown without editing files
$github-repo-banner use a transparent background and a GitHub icon, then replace the existing README banner
$github-repo-banner create a banner using my self-hosted base URL https://banners.example.com

Other Agent Skills-compatible hosts can load skills/github-repo-banner directly. Copy the whole folder, including references/, into the host's documented skill directory; no plugin manifest is required for this mode. In Codex, a project-local direct installation can use .agents/skills/github-repo-banner/. Do not install both forms in the same project/session if that would expose duplicate skills.

The skill distinguishes generated URLs from verified renders and edits a README only when requested. /render/banner returns SVG; PNG export remains a browser-side UI feature. Maintain the skill reference alongside the route, sanitizer, renderer, and generator's Markdown behavior. Run bun scripts/check-banner-skill.ts to check the documented URL example against the route, encoding, limits, fallback, and package linkage.

πŸ”’ Privacy & Transparency #

Usage tracking is optional, and exported designs are not saved. Read the Privacy Policy and Terms of Service for the complete details.

πŸ› οΈ Development #

Node.js Β· TypeScript Β· Hono Β· tsup Β· Bun

bun run check  # Static checks
bun run build      # Production build and declaration generation

Regression checks are in scripts/check-* (run .ts files with Bun and .mjs files with Node). CI runs static checks, the build, regression scripts with disposable Redis, and the Docker smoke check. See the self-hosting guide.

🀝 Contributing #

Contributions are welcome! For major changes, open an issue first.

  1. Fork and clone the repository, then add the original repository as upstream.
  2. Create a feature branch from upstream/dev (git fetch upstream dev && git switch -c feature/amazing-feature upstream/dev).
  3. Commit with Clean Commit convention.
  4. Push your branch and open a Pull Request targeting dev.

πŸ“„ License #

MIT License - see LICENSE file.

πŸ‘¨β€πŸ’» Author #

Waren Gonzaga β€’ GitHub β€’ Website

πŸ’– Support the Project #

If GitHub Repo Banner has been useful, you can support my open-source work by sponsoring me on GitHub or, if you think my work deserves wider recognition, nominating me for the GitHub Stars program. Both are optionalβ€”using and sharing the project helps too.


πŸ’»πŸ’–β˜• by Waren Gonzaga | YHWH πŸ™

Public pages #

Back to README Β· API reference Β· Self-hosting

These routes return HTML pages for people. They are separate from the JSON endpoints in the API reference and the SVG routes in the Banner Rendering guide.

Generator #

The home page at / provides an interactive banner generator with live preview, browser-side SVG/PNG export, and README Markdown output.

Docs #

The documentation page at /docs renders the bundled README, API reference, self-hosting guide, contribution guide, Terms, Privacy Policy, Code of Conduct, and license.

Usage stats #

When ENABLE_STATS=true, the generator sidebar shows the current UTC day’s successful banner render count. The section is hidden when tracking is disabled. There is no JSON stats endpoint or stats page. The old /usage URL remains as a withdrawal-only page for previously showcased designs; it does not display statistics or accept new submissions.

When stats are enabled, a successful render increments one daily counter after it reaches the server. Add stats=false to a banner URL, or send DNT: 1 or Sec-GPC: 1, to exclude that request. The generator shows the per-banner opt-out when its optional watermark is turned off.

Banner rendering #

Back to README Β· Public pages Β· API reference Β· Self-hosting

/render/banner #

The banner renderer at /render/banner generates a custom SVG banner.

Parameters #

Parameter Type Required Default Description
header string No "Hello World" Main text (supports emojis and icons)
subheader string No - Optional subtitle text, with the same icon syntax as header
images JSON string No [] Positioned custom images; see custom image settings
bg string No 1a1a1a-4a4a4a Background color in hex format
color string No ffffff Header text color (hex without #)
subheadercolor string No Same as color Subheader text color
headerfont string No - Google Fonts family name for header (e.g., "Roboto")
subheaderfont string No - Google Fonts family name for subheader (e.g., "Playfair Display")
bgimg string No - Valid public HTTPS raster image URL (takes priority over bg, max 2048 URL units and 10 MiB download)
bgblur number No 0 Blur a loaded image, 0–30 pixels
bgbrightness number No 100 Background brightness, 0–200 percent
bgcontrast number No 100 Background contrast, 0–200 percent
bgsaturation number No 100 Background saturation, 0–200 percent
bggrayscale number No 0 Background grayscale, 0–100 percent
support boolean No false Show support watermark
stats boolean No true On instances with optional tracking, false excludes this request. Do Not Track and Global Privacy Control also opt out.
watermarkpos string No bottom-right Watermark position: top-left, top-right, bottom-left, bottom-right

Header and subheader display text are limited to 50 and 60 JavaScript string units respectively, with at most five inline icons per field. Complete icon tokens do not count toward the display-text limit. Raw input is capped at 500 units, or 2,048 units when it contains custom icon syntax. Font names are sanitized and limited to 50 units. Encode query values, especially embedded image URLs containing their own & or #; URLSearchParams handles this when building URLs in code.

Custom Icons and Positioned Images #

Use inline custom icons in header or subheader:

![icon src="https://example.com/logo.png" w="100%"] My Project

Attributes use double quotes. src is required; w and h are optional and each accepts 1–304px or 1–200%. Percentages are relative to the surrounding rendered font size, not the banner. Omitting both sizes uses the text height; specifying one preserves the image's aspect ratio. With both, the image fits inside the requested box while preserving proportions. Available line space limits oversized icons. Existing Simple Icons syntax (![github], ![github](light)) and emoji remain supported. Custom icons do not accept X/Y positions or rotation; use positioned images for these controls.

For independent images, supply images as one JSON-encoded array, at most 4,096 JavaScript string units before URL encoding. Each object accepts only these fields:

Field Default Accepted value
src Required Direct public HTTPS image URL, at most 512 units
x 0 Number from 0 to 1280 pixels from the left edge
y 0 Number from 0 to 304 pixels from the top edge
w 128 Width from 1 to 1280 pixels
h 128 Height from 1 to 304 pixels
rotation 0 Finite number from 0 to 360 degrees clockwise around the image box’s center; decimals are accepted
fit contain contain preserves proportions inside the box; stretch fills it
placement behind behind or front, relative to text

The canvas is 1280Γ—304 pixels; portions outside it, including rotated corners, are cropped. X/Y and width/height define the unrotated box. Rotation uses its center (x + w/2, y + h/2) without changing those values. Omitted or zero rotation preserves existing designs; 360Β° is a full turn. Invalid rotation values return HTTP 400. Images render above the background, in array order from back to front within each placement group. The watermark remains above all images. Background filters do not affect custom icons or positioned images.

This example builds a URL without manually escaping nested quotes or image URL parameters. The image URLs are illustrative; replace them with working direct image URLs.

const query = new URLSearchParams({
  header: '![icon src="https://example.com/logo.png" w="100%"] My Project',
  images: JSON.stringify([
    { src: 'https://example.com/decoration.png', x: 32, y: 32, w: 128, h: 128, rotation: 30, fit: 'contain', placement: 'behind' },
  ]),
});
const bannerUrl = `https://ghrb.waren.build/render/banner?${query}`;

There is a shared limit of five custom images across positioned layers and inline icons in both text fields; repeated uses still count. Each custom image must serve JPEG, PNG, GIF, WebP, or AVIF with a matching image content type and a download no larger than 1 MiB. Image data must decode successfully; the limit is 16,777,216 decoded pixels across all frames. SVG, redirects, credentials, and non-public addresses are rejected. The server fetches and embeds image data into the SVG. Malformed settings return HTTP 400; an unavailable, oversized, or unsupported custom image returns HTTP 422 instead of a partial banner. The generator disables exports until the custom-image preview succeeds.

Rotation and the other settings travel through copied URLs/Markdown and SVG/PNG downloads. Exports run in the browser and designs are not saved on the server. Existing designs without images keep their prior behavior.

Background Effects #

Non-finite, non-numeric, and out-of-range values use the parameter defaults. Effects apply in this order: blur, brightness, contrast, saturation, then grayscale. Color filters work on solid colors, gradients, and images while preserving transparency; blur requires a successfully loaded image. Foreground text, icons, and watermarks stay unchanged. Neutral settings preserve existing output and are omitted from UI-generated URLs. Effects are embedded as native SVG filters for preview and SVG/PNG export.

Background Format #

Format Example Description
Gradient 1a1a1a-4a4a4a Two hex colors separated by -, left to right
Solid ffffff Single hex color
Transparent 00000000 Fully transparent
With Opacity ffffff80 RRGGBBAA (about 50% opacity)
Image URL bgimg=https://... Public HTTPS raster image (fetched and embedded as base64)

Response #

  • Content-Type: image/svg+xml
  • Cache-Control: public, max-age=86400, s-maxage=86400 (production)
  • Size: 1280Γ—304px

Invalid custom-image settings return HTTP 400 with a JSON error. Failed custom-image downloads return HTTP 422 with a JSON error; they do not return an incomplete SVG.

Usage Examples #

Gradient Background

https://ghrb.waren.build/render/banner?header=Vibe+Coding%F0%9F%9A%80&bg=ec4899-3b82f6&color=ffffff

Gradient Example

Solid Color with Subheader

https://ghrb.waren.build/render/banner?header=OSSPH&subheader=Leading+Open+Source+Software+Community+in+the+Philippines&bg=E7F9FF&color=0060A0

Solid Color Example

With Emojis & Custom Fonts

https://ghrb.waren.build/render/banner?header=%F0%9F%A6%9EOpenClaw&subheader=Your+own+personal+AI+assistant.&bg=fee2e2&color=bb2c2c&headerfont=Roboto&subheaderfont=Inter&support=true

Emoji Example

With Brand Icons (Simple Icons)

https://ghrb.waren.build/render/banner?header=![github]+Hello+World&bg=1a1a1a-4a4a4a&color=ffffff
https://ghrb.waren.build/render/banner?header=![react]+![typescript]+Modern+Stack&bg=14b8a6-06b6d4&color=ffffff

Icon Example

Use ![slug] syntax to embed any icon from Simple Icons. Over 3000+ brand icons available! Icons automatically adapt to your text color.

Transparent/Opacity

https://ghrb.waren.build/render/banner?header=Transparent&bg=00000000&color=ffffff
https://ghrb.waren.build/render/banner?header=Semi-Transparent&bg=ffffff80&color=000000

Custom Background Image #

https://ghrb.waren.build/render/banner?header=My+Project&bgimg=https://images.pexels.com/photos/1261728/pexels-photo-1261728.jpeg&color=ffffff

Use a direct public HTTPS URL serving JPEG, PNG, GIF, WebP, or AVIF, up to 10 MiB and 16,777,216 decoded pixels across all frames. The data must decode successfully and match its declared content type. URLs containing credentials, blocked private addresses, redirects, and SVG images are not supported. The server embeds the image as base64 and scales it to cover the banner. An invalid URL uses the bg selection; an accepted URL whose download fails uses the default gradient.

When the UI accepts an image URL, it disables background colors and presets while preserving their values. Clear the image URL to use those settings again.

Color Presets #

The UI includes presets for quick access:

Gradients #

Name Background Text Color Preview
Midnight 1a1a1a-4a4a4a ffffff Midnight
Vibe ec4899-3b82f6 ffffff Vibe
Ocean 14b8a6-06b6d4 ffffff Ocean
Railway 431586-9231A8 ffffff Railway
Cloudflare F38020-FBAB41 ffffff Cloudflare
Waren 013B84-016EEA ffffff Waren
OSSPH E7F9FF-90C4E8 0060A0 OSSPH

Solid Colors #

Name Background Text Color Preview
Sky 87ceeb 1e3a8a Sky
Molty fee2e2 bb2c2c Molty
Claude fde8e3 de7356 Claude
GPT 10a37f ffffff GPT
Minimal f3f4f6 1f2937 Minimal

Special #

Name Background Text Color Preview
Transparent 00000000 ffffff Transparent

Tip: Create any custom gradient or color using hex codes directly in the URL.

API reference #

Back to README Β· Banner rendering Β· Public pages Β· Self-hosting

This reference lists the service’s JSON API endpoints. Banner rendering is documented separately in the Banner Rendering guide, and browser-facing routes are listed in the Public Pages guide.

GET /api/pexels/search #

Server-side Pexels search used by the generator. Accepts q (default nature, normalized and limited to 100 units) and page (default 1). Returns up to nine landscape photos per page:

{
  "photos": [
    {
      "id": 123,
      "alt": "Example landscape",
      "photographer": "Example photographer",
      "url": "https://images.example.com/landscape.jpg",
      "thumb": "https://images.example.com/thumbnail.jpg"
    }
  ],
  "total": 10,
  "page": 1,
  "hasMore": true
}

The image URLs above are illustrative. Request the next page while hasMore is true; an empty page ends pagination. Missing Pexels configuration or unavailable Redis returns HTTP 503, exhausted per-process concurrency or shared Redis budget returns 429 with Retry-After: 60, and upstream failures return 500. See the self-hosting guide.

GET /api/health #

Readiness endpoint with Cache-Control: no-store. Returns HTTP 200 when Redis answers a ping, or HTTP 503 when Redis is unavailable. The response includes database availability and whether optional usage stats are enabled.

DELETE /showcase/{id} (legacy) #

Withdraw a design submitted to the former public showcase. Send the saved 64-character removal code as JSON: {"removalToken":"…"}. Requests must come from this instance and use Content-Type: application/json. New showcase submissions are not accepted. The legacy /usage#remove=… link and the withdrawal page remain available for existing designs.

Self-hosting #

Back to README Β· Banner rendering Β· API reference Β· Public pages

git clone https://github.com/warengonzaga/github-repo-banner.git
cd github-repo-banner
cp .env.example .env
docker compose up --build -d

Open http://localhost:3000. Compose runs one Node 22 app and one Redis 8 service. It supplies REDIS_URL automatically; Redis is not published to the host. The app runs as a non-root user and binds to localhost by default. Put a reverse proxy in front for public HTTPS access. Set PORT in .env to change the host port.

Redis uses a named volume and AOF persistence (default every-second fsync). App restarts preserve cached searches and quota usage until expiry. This is not zero-loss durability: abrupt host failure may lose recent writes. docker compose down preserves the volume; adding --volumes deletes it. Back up the volume as needed.

Redis has a 128 MiB data budget with noeviction, so memory pressure rejects writes instead of silently discarding quota or statistics. The container has a 256 MiB memory limit, including overhead; adjust these together if workload requires it. On an external Redis service, use noeviction and persistence too. Deleting Redis data resets caches and quotas.

Run Locally Without Docker #

Use Node.js 22, Bun 1.3.9, and a running Redis service:

bun install --frozen-lockfile
cp .env.example .env
# Set REDIS_URL in .env to your Redis connection URL.
bun dev

For a production build, run bun run build, then bun run start with NODE_ENV=production. Redis supports redis:// and TLS rediss:// URLs. Production secrets belong in the service's runtime environment, never in the image.

The banner API and Pexels proxy require the running server. GitHub Pages alone cannot run these endpoints, and a GitHub Actions secret does not automatically become a Railway runtime variable.

Environment Variables #

Every instance serves its own documentation at /docs. Stats are disabled by default; set ENABLE_STATS=true to count successful banner renders. The generator sidebar shows the count when tracking is enabled.

PORT=3000                         # Server port (host port with Compose)
NODE_ENV=development              # Docker image uses production
REDIS_URL=redis://localhost:6379   # Required; Compose supplies its internal URL
ENABLE_STATS=false                # Optional daily banner render count
PEXELS_API_KEY=                    # Optional server-side Pexels search

See .env.example. Disabling stats does not disable Redis caching or quota control. Banner requests can opt out with stats=false, DNT: 1, or Sec-GPC: 1. No API key is needed for direct image URLs or banner rendering.

Upgrade and Availability #

Breaking configuration change in 2.0.0: every deployment now requires Redis, even with ENABLE_STATS=false. Existing deployments must provision Redis and set REDIS_URL before upgrading. Startup fails with a credential-free error if the URL is missing/invalid or Redis cannot be reached; the HTTP listener does not start.

During an outage, /api/health returns 503 and Pexels search returns 503 without bypassing the request budget. The app reconnects automatically when Redis recovers. Plain banner rendering remains available directly from the running process, but a hosting platform may remove unhealthy instances from traffic. Statistics remain optional with the default self-hosted configuration; the generator sidebar reports the count or storage failures when tracking is enabled. Usage stats are best effort and do not block banner rendering during a storage outage.

Railway Deployment #

Deploy on Railway

  1. Add a Redis service and persistent storage to your Railway project.
  2. Set the banner service's REDIS_URL to that Redis service's connection URL.
  3. Leave ENABLE_STATS=false, or set it to true to show the public daily render count. Set PEXELS_API_KEY only if you want image search.
  4. Deploy using this repository's Dockerfile and configure /api/health as the readiness endpoint.

The official hosted instance must set ENABLE_STATS=true in its Railway service variables. Ordinary deployments can leave it false.

The existing hosted template may need its Redis service and variables added before deployment. A repository change does not update a saved Railway template automatically.

CI and Release Workflow #

.github/workflows/build-flow.yml uses Build Flow's pinned app workflow for CI, CodeQL, container publishing, and release ordering. CI uses Node 22 and the project's pinned Bun 1.3.9 for frozen dependency installation, static checks, type checking, and the production build. There is no custom Redis service or Docker smoke job in the workflow.

Build Flow's native development publishing targets Linux AMD64 images on Docker Hub (warengonzaga/github-repo-banner) and GHCR (ghcr.io/warengonzaga/github-repo-banner):

Event Image tag
Eligible PR into dev pr-<sha>
Push to dev, or dev β†’ main PR dev-<sha>
Other eligible same-repository PR into main patch-<sha>

The suffix is the seven-character source revision selected by Build Flow. Bot-authored PRs follow its native validation-only policy. Fork PRs also validate without publishing because they cannot receive registry credentials. Manual runs use Build Flow's native branch policy.

For an eligible main release, Build Flow plans the version, finalizes the versioned source and tag, publishes Linux AMD64 and ARM64 images, and creates the GitHub Release last. Production image tags include X.Y.Z, X.Y, X, and latest. Release and publishing runs on main are serialized. Versioning, tagging, and release ordering are managed by the upstream app workflow.

Docker Hub uses repository secrets DOCKER_HUB_USERNAME and DOCKER_HUB_ACCESS_TOKEN; the credentials need push access to warengonzaga/github-repo-banner. GHCR uses only the automatically supplied GITHUB_TOKEN with packages: write. No GHCR personal token is needed. The publishing job also has security-events: write for the action's default security scan reports.

Build Flow's native publishing policy requires at least one selected registry to succeed; inspect the per-registry results when confirming availability in both. Package visibility and registry access are configured in the registry; successful publication alone does not guarantee anonymous pulls. Railway can still build the Dockerfile directly from the repository.

Commands #

bun dev      # Development with hot-reload
bun run build    # Production build
bun run start    # Start production server

Security #

  • Input sanitization (XSS prevention)
  • Hex color validation
  • Header length limits
  • Shared image URL validation and public-address checks before HTTPS downloads
  • Image content-type, size, timeout, cache, and concurrency limits
  • Pexels credentials stay server-side; cached searches and request budgets reduce upstream calls

Fonts, icons, emoji assets, and remote images can depend on external services; deployments need outbound access for these features. Background downloads can fall back to a gradient. A failed custom inline icon or positioned image instead returns HTTP 422 and blocks the generator’s exports until the image is fixed or removed. Custom images need no additional API key or storage service.

Resource limits #

Backgrounds, inline custom icons, and positioned images share a process-local 32 MiB accounted-string cache with a 60-second TTL and at most four active downloads/decodes. Up to sixteen additional loads wait for a slot; beyond that, new loads are rejected. Requests for the same URL and size limit share in-flight work. Background downloads are limited to 10 MiB; each custom icon or positioned image is limited to 1 MiB. Failed or saturated background downloads use the existing fallback; custom-image failures return an error. Sharp validates image bytes with raster-only buffer decoders before caching. The declared media type must match the decoded format. All animation frames count toward a 16,777,216-pixel limit, and decoding has a five-second processing deadline. The Docker image includes Sharp’s native runtime dependencies. These limits bound retained image data, not total process memory; decoding temporarily allocates additional memory.

Each banner permits five custom images across positioned layers and both text fields. Custom URLs are limited to 512 units, and the images JSON parameter to 4,096 units before URL encoding. Only direct public HTTPS raster images are accepted; SVG, redirects, credentials, and private addresses are rejected. See custom image settings for geometry, formats, and inline syntax.

Pexels responses live in Redis for five minutes, limited to 64 KiB per response. Each process permits four concurrent upstream fetches and coalesces identical in-flight requests. A Redis script atomically enforces 100 upstream attempts per rolling hour per API key; failed upstream attempts count too. Queries are normalized and cache keys hash the query URL and API key. Quota entries hold timestamps and random request identifiers, with a one-hour expiry. Cache hits consume no quota; excess uncached requests receive HTTP 429. The budget survives app restarts and is shared only by instances using the same Redis database and API key. Other tools using that Pexels account remain outside this budget.

Image caching remains in process memory; image binaries are not stored in Redis. Usage stats are separate from operational search caching and quota records.

Terms of service #

Back to README Β· Privacy Policy

These terms describe use of the hosted GitHub Repo Banner service at ghrb.waren.build. Self-hosted services are operated separately and may have different policies.

Usage stats #

The hosted service may count successful banner renders to report daily service activity. The generator sidebar shows aggregate counts, not individual users or unique views. Requests may be excluded by caches, opt-outs, or service interruptions. Self-hosted operators can disable stats with ENABLE_STATS=false.

The service does not save designs submitted through copy or download controls. Banner settings are included in generated URLs, which can be viewed by anyone who has the URL. Do not include secrets or sensitive personal information.

Your content #

You retain any rights you hold in the text, images, and other material you use. You are responsible for having permission to use those materials. The project’s MIT license applies to the software; it does not automatically license your content.

Using the service #

The service is provided as available. Do not misuse it, interfere with its operation, or attempt to bypass validation, rate limits, or access controls. The repository source is available under the MIT license, including its warranty disclaimer. For questions, use project issues.

Privacy policy #

Back to README Β· Terms of Service

This notice describes the optional usage stats and external services used by GitHub Repo Banner. Self-hosted operators control their own deployments, hosting logs, and privacy policies.

Optional usage stats #

Usage stats are disabled by default. When ENABLE_STATS=true, the app counts successful banner renders by UTC day. Daily counters expire seven days after their last write. The generator sidebar shows the current day’s count; the section is hidden when tracking is disabled.

The count is an aggregate request total. It does not identify people or unique views, and may include previews, bots, and retries. Responses served from a browser or CDN cache do not reach the app and are not counted. A banner request can opt out with stats=false, DNT: 1, or Sec-GPC: 1. The generator shows the per-banner opt-out when its optional watermark is turned off.

New copy and download actions run in the browser; the app does not save their designs. Records saved by the previous official showcase remain under their original retention policy. Previously shared showcase designs remain in Redis until withdrawn or removed by the operator. Use the old removal link or the legacy removal page to withdraw a design; codes saved in the same browser are listed there. No new showcase submissions are accepted. Banner parameters are part of the requested URL and are processed to render the image. Avoid putting secrets or sensitive personal information in a banner URL.

External services and infrastructure #

Pexels search uses the configured server-side API key; searches are proxied by /api/pexels/search so the key is not sent to browsers. Rendering may contact external font, icon, emoji, or image services. Hosting providers and reverse proxies may keep their own access logs. Operators are responsible for those services and their retention settings.

Redis is required for search caching and quotas even when usage stats are disabled. These operational records are separate from usage stats.

For page routes, see the public pages guide. For banner URLs, see the Banner Rendering guide. For JSON endpoints and deployment settings, see the API reference and self-hosting guide. For questions, use project issues.

Contributing #

Thank you for your interest in contributing! Every contribution helps make this project better. πŸŽ‰

πŸš€ Quick Start with contribute-now #

This project recommends using contribute-now β€” a developer CLI that automates git workflows so you can focus on shipping, not on memorizing git commands.

Setup #

bunx contribute-now setup

Or install globally:

bun install -g contribute-now
contribute setup

Note: contribute-now runs on Bun at runtime. Install Bun first if you don't have it.

Once set up, use contribute (or the short alias cn) to handle branching, syncing, staging, committing, and opening PRs automatically.

πŸ”§ Manual Workflow #

If you prefer the manual approach:

Prerequisites: Node.js ^22, Bun 1.3.9, Git, and a running Redis service are required. See self-hosting for Docker Compose and Redis setup.

  1. Fork the repository and clone your fork.
  2. Add the original repository as upstream, fetch dev, and install dependencies:
    git clone https://github.com/<your-username>/github-repo-banner.git
    cd github-repo-banner
    git remote add upstream https://github.com/warengonzaga/github-repo-banner.git
    git fetch upstream dev
    bun install --frozen-lockfile
    cp .env.example .env
    # Set REDIS_URL in .env to your development Redis URL.
    
  3. Create a feature branch from upstream/dev:
    git switch -c feature/your-feature-name upstream/dev
    
  4. Make your changes and commit using the Clean Commit convention
  5. Push your branch and open a Pull Request targeting dev

πŸ“ Commit Convention #

This project strictly follows the Clean Commit convention by WGTech Labs.

Format #

<emoji> <type>: <description>

With optional scope:

<emoji> <type> (<scope>): <description>

Commit Types #

Emoji Type When to use
πŸ“¦ new Adding new features, files, or capabilities
πŸ”§ update Changing existing code, refactoring, improvements
πŸ—‘οΈ remove Removing code, files, features, or dependencies
πŸ”’ security Security fixes, patches, vulnerability resolutions
βš™οΈ setup Project configs, CI/CD, tooling, build systems
β˜• chore Maintenance tasks, dependency updates, housekeeping
πŸ§ͺ test Adding, updating, or fixing tests
πŸ“– docs Documentation changes and updates
πŸš€ release Version releases and release preparation

Rules #

  • Always include the matching emoji prefix β€” the emoji is mandatory, not optional
  • Use lowercase for type β€” never capitalize it
  • Use present tense β€” write "add" not "added"
  • No period at the end of the description
  • Keep description under 72 characters
  • Scope is optional β€” when used, keep it short (one word) and lowercase

Examples #

πŸ“¦ new: simple icons support for banner headers
πŸ”§ update (api): improve hex color validation
πŸ—‘οΈ remove: deprecated banner endpoint
πŸ”’ security: patch XSS in query parameter handling
βš™οΈ setup (ci): add GitHub Actions workflow
β˜• chore (deps): bump hono to latest version
πŸ§ͺ test: add unit tests for banner generation
πŸ“– docs: update API reference with new parameters
πŸš€ release: version 2.0.0

Tip: contribute-now natively supports and enforces the Clean Commit convention β€” just use cn commit or cn push and it guides you through the right format automatically.

πŸ› οΈ Development #

bun dev          # Start development server with hot-reload
bun run build    # Production build
bun run start    # Start production server
bun run check    # Static checks

Development container builds #

The Build Flow workflow uses the upstream app workflow's native container publishing. Redis regression checks and the Docker smoke check run before Build Flow's CI and CodeQL gates.

Eligible PRs into dev publish pr-<sha> images; pushes to dev and dev β†’ main PRs publish dev-<sha> images. Other eligible same-repository PRs into main publish patch-<sha> images. The suffix is the seven-character source revision selected by Build Flow. Docker Hub and GHCR are the native registry targets. Bot-authored PRs use Build Flow's validation-only policy. Fork PRs remain validation-only through its supported PR publishing setting because they cannot receive registry credentials.

These are development container images. Versioned production images and GitHub Releases follow Build Flow's native main release process. Publishing policy and tags stay with Build Flow; the repository does not add a separate artifact-upload or release implementation.

πŸ› Reporting Issues #

Before opening an issue, please check if one already exists. When reporting a bug, include:

  • A clear description of the problem
  • Steps to reproduce it
  • Expected vs actual behavior
  • Relevant environment details (OS, Node version, etc.)

For major changes, open an issue first to discuss what you'd like to change.

πŸ“„ Code of Conduct #

Please read and follow our Code of Conduct. We are committed to providing a welcoming and inclusive environment for everyone.


πŸ’»πŸ’–β˜• by Waren Gonzaga | YHWH πŸ™

Code of conduct #

Our Pledge #

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

Our Standards #

Examples of behavior that contributes to a positive environment for our community include:

  • Demonstrating empathy and kindness toward other people
  • Being respectful of differing opinions, viewpoints, and experiences
  • Giving and gracefully accepting constructive feedback
  • Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
  • Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

  • The use of sexualized language or imagery, and sexual attention or advances of any kind
  • Trolling, insulting or derogatory comments, and personal or political attacks
  • Public or private harassment
  • Publishing others' private information, such as a physical or email address, without their explicit permission
  • Other conduct which could reasonably be considered inappropriate in a professional setting

Enforcement Responsibilities #

Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.

Scope #

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

Enforcement #

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at opensource@warengonzaga.com. All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

Enforcement Guidelines #

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

1. Correction #

Community Impact: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.

Consequence: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

2. Warning #

Community Impact: A violation through a single incident or series of actions.

Consequence: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

3. Temporary Ban #

Community Impact: A serious violation of community standards, including sustained inappropriate behavior.

Consequence: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

4. Permanent Ban #

Community Impact: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.

Consequence: A permanent ban from any sort of public interaction within the community.

Attribution #

This Code of Conduct is adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.

Community Impact Guidelines were inspired by Mozilla's code of conduct enforcement ladder.

For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

MIT license #

MIT License

Copyright (c) 2026 Waren Gonzaga

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.