Introduction
The GitHub Profile README API is a Cloudflare Worker that generates dynamic SVG images for your GitHub profile. Each SVG section is rendered on-demand with real-time data and animations.Base URL Structure
The API is accessed via HTTP GET requests:How It Works
The API works by:- Receiving a request with query parameters specifying the section and theme
- Rendering SVG content server-side with embedded CSS and HTML
- Returning the SVG as
image/svg+xmlwith no-cache headers - Displaying in GitHub README via standard image syntax
Response Format
All endpoints return SVG images with:- Content-Type:
image/svg+xml - Cache-Control:
no-store, no-cache, must-revalidate, proxy-revalidate - Pragma:
no-cache - Expires:
0
Using in GitHub README
To use the API in your GitHub profile README, simply add image tags:Example Response
Each section returns an SVG like:Features
Dynamic Theming
Switch between light and dark themes using thetheme parameter. The API supports custom color schemes for both modes.
Animations
All sections include smooth fade-in animations, shine effects, and scrolling graphs. Animations are CSS-based and work in most browsers (Chrome/Safari recommended).Location Detection
The main section uses Cloudflare’s edge network to detect the viewer’s location and can display personalized greetings.Browser Compatibility
The API includes special fallback content for Firefox users, as some advanced CSS features have limited support.Rate Limiting
GitHub caches images in README files, so the API is not called on every page view. No explicit rate limiting is needed.Next Steps
Available Sections
Explore all section types and their use cases
Query Parameters
Learn about all available parameters