Menu

I gamified my GitHub streak into a garden
📰

I gamified my GitHub streak into a garden

DEV Community: nextjs·Kornel·about 2 hours ago
#HtnLtwiT
#devtonextjs#devto#dev#garden#github
Reading 0:00
15s threshold

I gamified my GitHub streak into a garden

I’d lose my commit streak on busy days, and GitHub’s contribution graph never really cared. So I built Commit Garden: a tiny garden that depends on whether you pushed code today.

What it does

Connect GitHub once. Every day you push, your current plant grows one stage. After six days in a row it’s fully grown and moves into your garden, and a new one starts. Skip a whole day and the plant you’re growing withers (the ones already in your garden stay). There are 16 species to unlock, daily quests that pay gems, and a gem can save a streak you just missed.

How it works

A GitHub App sends a webhook on every push. I only store the commit sha, timestamp and repo id, never the code. Each commit is counted once per sha, so redeliveries and force pushes don’t double count.

One design choice I like

The plant isn’t stored anywhere. It’s derived from the list of days with tracked commits, plus boosts and rescues.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.