简体中文 | >English<
Stone Badge is a Node.js service that generates a 3D stone badge SVG from the latest commit SHA of a GitHub repository. It reads the repository's newest commit, turns the short SHA into unique colors, gradients, and glow effects, and returns an SVG badge that can be embedded directly into a README.
- Live demo: https://stone.professorlee.work
- Repository: https://github.com/professor-lee/StoneBadge
- Generate a stone badge from any GitHub repository URL
- Auto-color the SVG from the latest commit SHA, so every repository gets a distinct result
- Preview the badge in the browser and copy Markdown, HTML, or a direct link with one click
- Support
POST /api/generateto parse repository URLs and return badge metadata - Support
GET /api/stone/:owner/:repoto return the SVG badge directly - Support automatic template generation and manual template upload through
POST /api/template - Keep the frontend static, with low deployment and maintenance overhead
- Node.js 18+
- Express
- Three.js
- JSDOM
- Native fetch
- HTML, CSS, JavaScript
- Open https://stone.professorlee.work
- Enter a GitHub repository URL, such as https://github.com/professor-lee/StoneBadge
- Click Generate Badge
- Copy the Markdown, HTML, or direct link into a README, document, or website
Example Markdown:
See DeploymentInstructions.md for the full deployment guide.