🚀 samdev-pulse
A calm, modern GitHub profile dashboard — generated as a single SVG.
Drop one image into your README and get live GitHub stats, contribution activity, language breakdowns, and achievement trophies. No widgets. No clutter. It just works.
⚡ Quick Usage
Add this to your GitHub profile README :

YOUR_GITHUB_USERNAME : change this to your GitHub username.
That’s it. Your profile now renders a live dashboard.
Live Example Preview

🎨 Customization Examples
Theme

Available Themes
- Standard Themes:
dark (default), light, dracula, nord, tokyonight, monokai, gruvbox, solarized, catppuccin, rose-pine, aurora, midnight-sunset, onedarkpro, material, synthwave84, forestnight, oceanicnext, emberglow, midnightneon, pasteldream, cobalt2, one-dark, github-light, hc-light, hc-dark
- Domain Themes (Developer Persona):
androidstudio, xcode, webdev, aiml, gamedev
✨ Newly Added Themes
| Theme |
Description |
| One Dark Pro |
VS Code inspired modern editor palette |
| Material |
Material UI inspired clean modern tones |
| Synthwave 84 |
Retro neon cyberpunk aesthetics |
| Forest Night |
Deep green nature-inspired palette |
| Oceanic Next |
Cool ocean blues with coding vibes |
| Ember Glow |
Warm fiery orange and crimson tones |
| Midnight Neon |
Futuristic glowing cyber aesthetics |
| Pastel Dream |
Soft dreamy pastel gradients and tones |
| Cobalt2 |
Modern cobalt blue palette with bright accents |
| One Dark |
Atom One Dark inspired editor palette |
| GitHub Light |
Clean GitHub-style light mode |
| androidstudio |
Android developer theme with Material accents & robot watermark |
| xcode |
Apple developer theme with compass watermark & Swift focus |
| webdev |
Web developer theme with code window watermark & JS accents |
| aiml |
Machine learning theme with neural net watermark & ML stats |
| gamedev |
Game developer theme with retro crosshair & game console vibe |
| hc-light |
WCAG AAA high-contrast light — pure white, pure black, no gradients |
| hc-dark |
WCAG AAA high-contrast dark — pure black, pure white, no gradients |
Tip: Use ?theme=high-contrast as a shortcut alias for hc-light.
💻 Competitive Programming Stats (Optional)

Depending on how many platforms you provide:
- 1 platform: Replaces the default repository stats card.
- 2+ platforms: Renders a dedicated “Competitive Programming” section at the bottom for a clean layout.
- 0 platforms: Shows the default repository stats card.

Options:
left (default)
center
right
🏆 Hide Trophies (Optional)

🎨 Custom Color Overrides (Optional)
You can customize the dashboard colors directly by passing hex values (without #) to match your profile theme:

🌟 Full Example

Preview

❓ Why samdev-pulse?
- Designed as one cohesive SVG, not stitched widgets
- Calm, readable visuals that don’t overpower your profile
- Built for developers who care about craft, clarity, and signal over noise
✨ Features
📊 GitHub Activity
- Total contributions (year)
- Pull requests opened
- Issues opened
- Live data via GitHub REST API
🔥 Streak Statistics
- Current streak
- Longest streak
- Total contribution days
- Powered by GitHub GraphQL API
📈 Contribution Activity Graph
- SVG line chart (last 30 days)
- Auto-scaled Y-axis
- Smooth curves with gradient fill
🍩 Top Languages
- Donut chart (top 5 languages)
- Percentage-based slices
- Calculated from public repositories
💻 Competitive Programming (Optional)
- LeetCode: Total problems solved, difficulty breakdown, contest rating
- Codeforces: Current rating, max rating, rank
- CodeChef: Current rating, max rating, stars
- Adaptive Layout: Automatically organizes 1 or multiple platform stats cleanly
🎨 Extensive Theme Support
- 30+ handcrafted dashboard themes
- Modern dark, pastel, neon, and nature-inspired palettes
- Consistent SVG rendering across charts and trophies
- Optimized text contrast and readability
🧬 Developer Persona & Domain Dashboards (Domain Themes Only)
- Domain-Specific Insights: Replaces the repository stats card with specialized stats (e.g. Kotlin ratio, Swift ratio, web project counts, trained models).
- Theme Accents & Watermarks: Dynamic background watermarks (compass, robot head, code window, neural net, crosshair) and card accents.
- Trophy Customization: Dynamically maps trophy titles to Developer Persona levels (e.g.
Compose Wizard, DOM Builder).
- Interactive Language Charts: Adds radius popouts (+5px) to top slices and domain emoji prefixes to legend items.
🏆 Achievement Trophies
A visual trophy system highlighting GitHub milestones:
| Trophy |
Description |
| 💪 Commits |
Total contributions |
| 🔀 Pull Requests |
PRs opened |
| 👁️ Reviews |
PR reviews |
| 🐛 Issues |
Issues opened |
| 📦 Repositories |
Public repos |
| ⭐ Stars |
Total stars |
| 👥 Followers |
GitHub followers |
📊 Trophy tier requirements
- 🥉 Bronze: Entry level (1+)
- 🥈 Silver: 100+ (500+ for stars)
- 🥇 Gold: 500+ (1000+ for stars)
- 💎 Diamond: 1000+ (5000+ for stars)
🧬 Developer Persona Trophy Mappings
When using a domain-specific theme, trophy titles dynamically change to match your developer persona:
| Theme |
💪 Commits |
🔀 Pull Requests |
⭐ Stars |
👥 Followers |
| Android Studio |
Android Builder |
Compose Wizard |
Material Designer |
Kotlin Expert |
| Xcode |
iOS Builder |
Swift Guru |
Cocoa Master |
Apple Dev |
| Web Dev |
DOM Builder |
PR Deployer |
JS Artisan |
Net Citizen |
| AI / ML |
Model Builder |
Data Wrangler |
Loss Optimizer |
Neural Wizard |
| Game Dev |
Game Director |
Engine Optimizer |
Shader Artist |
Level Designer |
⚙️ Query Parameters
| Parameter |
Type |
Default |
Description |
username |
string |
Required |
GitHub username |
theme |
string |
dark |
Visual theme (25+ supported themes, including domain themes) |
leetcode |
string / false |
– |
LeetCode username |
codeforces |
string / false |
– |
Codeforces username |
codechef |
string / false |
– |
CodeChef username |
align |
string |
left |
Header alignment (left, center, right) |
hide_trophies |
boolean |
false |
Hide the achievements trophies row |
activity |
string |
year |
Activity timeframe: year (past 12 months) or all (lifetime) |
bg |
string |
– |
Custom background color override (hex) |
card_bg |
string |
– |
Custom card background color override (hex) |
border |
string |
– |
Custom border color override (hex) |
text |
string |
– |
Custom primary text color override (hex) |
sec_text |
string |
– |
Custom secondary text color override (hex) |
muted_text |
string |
– |
Custom muted text color override (hex) |
accent |
string |
– |
Custom accent color override (hex) |
🛠️ Local Development
Prerequisites
- Node.js 18+
- GitHub Personal Access Token
Setup
git clone https://github.com/SamXop123/samdev-pulse.git
cd samdev-pulse
npm install
Environment Variables
Create a .env file:
GITHUB_TOKEN=your_github_personal_access_token
DEFAULT_USERNAME=SamXop123
PORT=3000
NODE_ENV=development
ADMIN_API_KEY=
MONGODB_URI=
MONGODB_DB=
ANALYTICS_DISABLED=false
CACHE_MAX_SIZE=1000
Run
npm run dev
Visit:
http://localhost:3000/api/profile?username=SamXop123
GitHub API Integration
SamDev Pulse uses the GitHub REST API and GraphQL API to retrieve:
- User profile information
- Repository statistics
- Languages
- Contributions
- Commit activity
- Followers
- Stars
The data is processed and rendered into a live SVG dashboard that developers can embed anywhere.
🐳 Docker Development (Alternative)
Prefer a containerized environment? Use Docker to run the app without installing Node.js or any dependencies locally.
MongoDB is not included in the Docker setup — it is optional and only used for production analytics logging. The app runs fine without it.
Prerequisites
Setup
# 1. Clone the repository
git clone https://github.com/SamXop123/samdev-pulse.git
cd samdev-pulse
# 2. Create environment file
cp .env.example .env
# Then edit .env and set your GITHUB_TOKEN
# 3. Build and start
docker compose up --build
The app will be available at:
http://localhost:3000/api/profile?username=SamXop123
Useful Commands
| Command |
Description |
docker compose up --build |
Build images and start the app |
docker compose up -d |
Start in detached (background) mode |
docker compose down |
Stop and remove the container |
docker compose logs -f app |
Follow app logs |
docker compose exec app sh |
Open a shell in the running app |
🔍 API Reference
Base URL: https://samdev-pulse.vercel.app (production) or http://localhost:3000 (local)
GET /health
Returns a simple health check response.
Example Request
GET /health
Example Response
{
"status": "ok",
"timestamp": "2026-06-13T09:30:00.000Z"
}
| Header |
Value |
Content-Type |
application/json |
GET /api/profile
Returns the main profile SVG dashboard with GitHub stats, contribution activity, language breakdown, and optional competitive programming stats.
Required Parameters
| Parameter |
Type |
Description |
username |
string |
GitHub username |
Optional Parameters
| Parameter |
Type |
Default |
Description |
theme |
string |
dark |
Visual theme. See Available Themes |
align |
string |
left |
Header alignment: left, center, right |
hide_trophies |
boolean |
false |
Hide the achievement trophies row |
leetcode |
string / false |
— |
LeetCode username (omit or set to false to skip) |
codeforces |
string |
— |
Codeforces username |
codechef |
string |
— |
CodeChef username |
activity |
string |
year |
Activity scope: year (last 1 year) or all (lifetime) |
Custom Theme Overrides
You can override individual theme colors by passing hex color values as query parameters:
| Parameter |
Description |
bg |
Background color |
text |
Primary text color |
sec_text |
Secondary text color |
muted_text |
Muted text color |
accent |
Accent color |
card_bg |
Card background |
border |
Border color |
Example:

Example Request
GET /api/profile?username=SamXop123&theme=tokyonight&align=center
| Header |
Value |
Content-Type |
image/svg+xml |
Cache-Control |
public, max-age=1800 |
Status Codes
| Status |
Description |
200 |
Returns the SVG dashboard |
400 |
Invalid username |
500 |
GitHub API error or server error |
GET /api/profile/loading
Returns an animated loading spinner SVG for use as a placeholder while the full dashboard loads.
Optional Parameters
| Parameter |
Type |
Default |
Description |
theme |
string |
dark |
Visual theme |
bg, text, accent, card_bg, border, sec_text, muted_text |
hex |
— |
Custom theme overrides (same as /api/profile) |
Example Request
GET /api/profile/loading?theme=catppuccin
| Header |
Value |
Content-Type |
image/svg+xml |
Cache-Control |
no-cache, no-store |
Status Codes
| Status |
Description |
200 |
Returns the loading spinner SVG |
GET /api/cache/stats
Returns in-memory cache performance metrics. Useful for monitoring and debugging.
Authentication (Optional)
If the ADMIN_API_KEY environment variable is set, this endpoint requires a bearer token:
Authorization: Bearer your_admin_key_here
If ADMIN_API_KEY is not configured, the endpoint is publicly accessible.
Example Request
GET /api/cache/stats
Authorization: Bearer your_admin_key_here
Example Response
{
"hits": 42,
"misses": 7,
"evictions": 0,
"size": 15
}
Response Fields
| Field |
Type |
Description |
hits |
number |
Number of cache hits |
misses |
number |
Number of cache misses |
evictions |
number |
Number of LRU evictions |
size |
number |
Current number of cached entries |
| Header |
Value |
Content-Type |
application/json |
Status Codes
| Status |
Description |
200 |
Returns cache stats metrics |
401 |
Missing or invalid API key |
📁 Project Structure
src/
├── routes/ # API routes
├── services/ # GitHub & platform APIs
├── renderers/ # SVG layout & charts
├── themes/ # Theme definitions
└── utils/ # Caching & helpers
🔒 Usage & Privacy
samdev-pulse logs basic, non-sensitive usage information (such as the GitHub username passed to the API) for monitoring and improving the service.
No personal data, authentication details, or private information is collected.
🤝 Contributing
Contributions are welcome.
Please see CONTRIBUTING.md for guidelines.
Ideas
- More themes
- New trophy categories
- Animated SVG elements
- CI & tests
📝 License
MIT © SamXop123
⭐ Support
If this helped you, consider giving the repo a ⭐. It helps more developers discover the project.
For any issues or support contact: [email protected]
Built with ❤️ using GitHub APIs
评论