Extracting GitHub OpenGraph Images for Rich Card Previews

Whenever I embedded GitHub repositories in blog posts, I used GitHub Repository Card. But it handled non-Latin text poorly and had issues with text overflowing without line breaks:

ccbikai/cloudflare-worker-image - GitHub

I initially planned to roll my own card generator using @vercel/og. Then I noticed that GitHub’s native OpenGraph preview cards already look clean, well-formatted, and informative. So I wrote a small proxy worker to extract and serve them for blog embeds.

How It Looks

nasa/fprime - GitHub

A framework for building Open Graph images

Beyond repositories, GitHub also renders rich OpenGraph previews for issues, pull requests, discussions, and individual commits.

How to Use

Replace .com with .html.zone in any GitHub URL.

For example: https://github.com/vercel/next.js => https://github.html.zone/vercel/next.js

Previews Across GitHub Entities

Repository

Repo

Issue

Issue

Pull Request

Pull Request

Discussion

Discussion

Commit

Commit

Source Code

The code is open source on GitHub:

ccbikai/github-og-image - GitHub

aria

© 2026 Aria

Instagram 𝕏 GitHub