惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
A
About on SuperTechFans
G
Google Developers Blog
B
Blog RSS Feed
F
Fortinet All Blogs
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Y
Y Combinator Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
Jina AI
Jina AI
IT之家
IT之家
P
Proofpoint News Feed
美团技术团队
量子位
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
B
Blog
有赞技术团队
有赞技术团队
U
Unit 42

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Built an API That Turns Your GitHub Contributions Into ...
Spec · 2026-04-26 · via DEV Community

Spec

Your GitHub contribution graph is flat and green. Mine is an isometric skyline.

I built Isometric Contributions — a free API that renders your GitHub activity as a 3D isometric city, ready to drop into your README or portfolio with a single <img> tag.


Project Links:

  • Github Repo: LINK
  • URL Builder and Docs site: LINK

What it looks like

Sample:
Main Example Image

It also comes with six themes, all generated server-side as crisp PNG images:

All Designs

  • github - Classic green on dark
  • dark - Sleek dark palette
  • light - Clean white background
  • neon - Cyberpunk glow
  • minimal - Quiet and understated
  • ocean- Deep blue tones

You can also add a stats overlay showing your total contributions, current streak, longest streak, best day, and daily average — all baked right into the image.


Using it in 30 seconds

Drop this into your GitHub profile README and you're done:

![My Contributions](https://https://isometric-contributions-spectrewolf8.onrender.com/api/graph?username=YOUR_USERNAME&theme=dark&stats=true)

Enter fullscreen mode Exit fullscreen mode

That's it. No tokens, no setup, no dependencies on your end.

All the options

GET /api/graph

Enter fullscreen mode Exit fullscreen mode

Parameter Default Description
username required Your GitHub username
theme github github · dark · light · neon · minimal · ocean
year none Specific year like 2024, or none for the last 365 days
stats false Set to true to include the stats overlay
credit false Set to true to show your username watermark
width 1000 Image width in px
height 600 Image height in px

Some examples:

# Last 365 days, neon theme, with stats
/api/graph?username=torvalds&theme=neon&stats=true

# Specific year, wide format
/api/graph?username=torvalds&year=2023&width=1400&height=700

# Minimal, no extras
/api/graph?username=torvalds&theme=minimal

Enter fullscreen mode Exit fullscreen mode


How it works under the hood

The stack is intentionally small — no framework, just Node.js.

Data: GitHub's official GraphQL contributionsCollection API. Each query fetches up to 365 days of contribution data with contribution counts, levels, and dates. Requests retry automatically up to 3 times with exponential backoff.

Rendering: obelisk.js handles the isometric projection math, running inside a JSDOM environment on the server. node-canvas provides the actual pixel buffer. Each day becomes a cube whose height is proportional to that day's contribution count.

Caching: Generated images are cached in Supabase Storage keyed by date/username/params. The same image is served instantly on repeat requests throughout the day without hitting the GitHub API or re-rendering. Images with suspiciously low data (a signal the API returned partial results) are intentionally not cached, so the next request gets a fresh attempt.

Output: A raw PNG buffer streamed directly as the HTTP response with Content-Type: image/png — which is exactly what <img src="..."> expects.


Self-hosting

Want to run your own instance?

git clone https://github.com/Spectrewolf8/isometric-contributions-embeds
cd isometric-contributions
npm install

Enter fullscreen mode Exit fullscreen mode

Set up your .env:

GITHUB_TOKEN=ghp_yourtoken        # PAT with no scopes needed for public data
SUPABASE_URL=https://xxx.supabase.co
SUPABASE_ANON_KEY=your_anon_key
SUPABASE_BUCKET_NAME=isometric-cache

Enter fullscreen mode Exit fullscreen mode

npm run server

Enter fullscreen mode Exit fullscreen mode

On startup, the server verifies your GitHub token and prints which account it's authenticated as, so you know immediately if something's wrong.

Deploy to Render, Railway, or any Docker-capable host — a Dockerfile is included.


What's next

A few things I want to add:

  • SVG output so the graph can scale infinitely
  • Custom color schemes via query params instead of fixed themes
  • Animated version — a time-lapse that builds the city week by week

If any of those sound useful to you, or if you would like to add anything else, leave a comment — it helps me prioritize.


Built with Node.js, obelisk.js, node-canvas, and Supabase. Contributions welcome.