Files
github-readme-stats/generator/frontend
shayandClaude Opus 5 a25ae33f29 fix(frontend): give the embed snippet somewhere to paste.
The result screen ended at the snippet and a copy button. GitHub only
renders a profile README from the repo named exactly after the account,
and 15 of 23 arrivals did not have that repo, so the copy button was a
dead end for most people. Add two links under the snippet: open the
README, or create the repo.

Also serve a placeholder card instead of a JSON 400 when someone pastes
the README snippet without swapping YOUR_USERNAME for their own name,
and show a live example card in the README.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwMoSbmK77Ph7XaV5YnAdS
2026-08-25 08:10:32 -07:00
..

Frontend (Vite + React)

Part of the generator service. Sources live here; the production build is served as static files by the generator's Flask app (at /) and produced by the generator's Dockerfile.

Dev

npm install
VITE_GENERATOR_URL=http://localhost:5002 VITE_EDGE_URL=http://localhost:5003 npm run dev

Vite proxies /api/* to the Flask app at :5002.

Build

npm run build
# produces dist/ which is copied into generator/src/static/ by the Docker build