Want only one part? The
top languages card
- works the same way. Already using github-readme-stats? See the
+ works the same way, and there are five
+ themes to pick from. Already using github-readme-stats? See the
migration guide.
+ The public instance at github-profile-trophy.vercel.app returns
+ 402 Payment required (Vercel's DEPLOYMENT_DISABLED), so every
+ README that embeds it shows a broken image. There are two ways to fix it: run your own
+ copy, or switch to a different card.
+
+
+
Is yours broken?
+
+
Open your profile. If the trophies are a broken-image icon or alt text, your README
+ points at the disabled instance. The line looks like this:
+ The project is open source and its README asks users to fork it and deploy the fork to
+ Vercel, then point the image at the new address. Its README also lists volunteer
+ mirrors, but most of them returned errors when this page was written (November 2026),
+ so a mirror may break again.
+
+
+
Fix 2: a rank card, in one line
+
+
To switch to gh-stats instead, replace the line with this one, change the username, and commit:
+
+
+
+ The grade card for torvalds, rendered live.
+
+
+
+ There is no token to create, no signup and nothing to deploy. The first request for a
+ new username queues a build, so the image can take a minute to appear.
+
+
+
How it differs
+
+
+
+
github-profile-trophy
gh-stats grade card
+
Shows
A row of trophies, each with its own rank
One overall rank and score, plus commits, PRs, stars, repos and followers
+
Extras
Many themes, row and column layout
Role tags worked out from your repos; five themes
+
Hosting
Public instance returns 402; self-host on Vercel
gh-stats.com, or self-host (MIT)
+
+
+
+
Want the whole profile?
+
+
+ Drop the /grade.svg and the same URL renders one card with the rank, a
+ contribution timeline, top collaborators, languages and streaks:
+
+ The old github-readme-activity-graph address on vercel.app has returned
+ 402 Payment required (Vercel's DEPLOYMENT_DISABLED) since
+ September 2026, so READMEs that still use it show a broken image. There are two ways
+ to fix it: point at the project's new address, or switch to a different graph.
+
+
+
Is yours broken?
+
+
Open your profile. If the graph is a broken-image icon or alt text, your README points at
+ the disabled instance. The line looks like this:
Leave the parameter out and the card uses midnight.
+
+
Switch with the viewer's GitHub theme
+
+
+ GitHub renders <picture> in READMEs and honours
+ prefers-color-scheme, so each visitor sees the card that matches their
+ GitHub appearance setting:
+
+ Can I make a theme the default without the parameter? Yes. Sign in on
+ gh-stats.com with the GitHub account the card belongs
+ to, pick the theme, and save. /api/YOUR_USERNAME then uses it.
+
+
+
+ Does changing the theme reset my card? No. The theme changes colours
+ only; the data is the same.
+
+
+
+
+
+
+
diff --git a/generator/frontend/public/sitemap.xml b/generator/frontend/public/sitemap.xml
index 6bfb5bc..d1a708b 100644
--- a/generator/frontend/public/sitemap.xml
+++ b/generator/frontend/public/sitemap.xml
@@ -20,4 +20,19 @@
monthly0.8
+
+ https://gh-stats.com/github-readme-themes.html
+ monthly
+ 0.8
+
+
+ https://gh-stats.com/github-readme-activity-graph-alternative.html
+ monthly
+ 0.8
+
+
+ https://gh-stats.com/github-profile-trophy-alternative.html
+ monthly
+ 0.8
+
diff --git a/generator/frontend/src/screens/ResultScreen.tsx b/generator/frontend/src/screens/ResultScreen.tsx
index 15b7a9e..e849f83 100644
--- a/generator/frontend/src/screens/ResultScreen.tsx
+++ b/generator/frontend/src/screens/ResultScreen.tsx
@@ -1,5 +1,16 @@
import DOMPurify from 'dompurify'
-import { useMemo, useState } from 'react'
+import { useEffect, useMemo, useState } from 'react'
+
+// Stats cards people already have in their profile README. A visitor who has
+// one needs "replace that line", not "paste this somewhere".
+const OTHER_CARDS: [RegExp, string][] = [
+ [/github-readme-stats/i, 'github-readme-stats'],
+ [/streak-stats|readme-streak/i, 'GitHub Readme Streak Stats'],
+ [/github-stats-extended/i, 'github-stats-extended'],
+ [/github-profile-summary-cards/i, 'github-profile-summary-cards'],
+ [/github-profile-trophy/i, 'github-profile-trophy'],
+ [/github-readme-activity-graph/i, 'github-readme-activity-graph'],
+]
function sanitizeSvg(raw: string): string {
return DOMPurify.sanitize(raw, {
@@ -40,6 +51,36 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
const profileRepo = encodeURIComponent(username)
const editReadmeUrl = `https://github.com/${profileRepo}/${profileRepo}/edit/HEAD/README.md`
const createRepoUrl = `https://github.com/new?name=${profileRepo}&description=${encodeURIComponent('My GitHub profile')}&visibility=public`
+ // raw.githubusercontent.com sends Access-Control-Allow-Origin: *, so the
+ // browser can read the profile README directly. Any failure leaves the
+ // generic hint in place.
+ const [found, setFound] = useState<{ repo: string; card: string } | null>(null)
+ const otherCard = found?.repo === profileRepo ? found.card : null
+ // No profile repo at all: GitHub's new-file page takes ?filename=&value=, so
+ // after creating the (empty) repo one click opens a README with the card in it.
+ const [noRepo, setNoRepo] = useState(null)
+ const addReadmeUrl = `https://github.com/${profileRepo}/${profileRepo}/new/main?filename=README.md&value=${encodeURIComponent(embedSnippet + '\n')}`
+ useEffect(() => {
+ let live = true
+ fetch(`https://raw.githubusercontent.com/${profileRepo}/${profileRepo}/HEAD/README.md`)
+ .then(r => {
+ // A 404 here can also mean readme.md in another case, so only the
+ // API's 404 for the repo itself counts as "no repo".
+ if (r.status === 404) {
+ fetch(`https://api.github.com/repos/${profileRepo}/${profileRepo}`)
+ .then(a => { if (live && a.status === 404) setNoRepo(profileRepo) })
+ .catch(() => {})
+ }
+ return r.ok ? r.text() : ''
+ })
+ .then(text => {
+ if (!live || /gh-stats\.com/i.test(text)) return
+ const hit = OTHER_CARDS.find(([re]) => re.test(text))
+ if (hit) setFound({ repo: profileRepo, card: hit[1] })
+ })
+ .catch(() => {})
+ return () => { live = false }
+ }, [profileRepo])
const copy = async () => {
try {
@@ -160,6 +201,20 @@ export function ResultScreen({ username, generating, generatedSvg, generateError
{' \u00b7 '}
Create the repo
+ {noRepo === profileRepo && (
+