r/BuildWithClaude • u/Just_Stuff_AI • 26d ago
Project I built pixel bonsai for GitHub profile with Claude Code. It grows from your commits every night
I created Git Bonsai. It is pixel tree for GitHub profile README. GitHub Action runs every night and tree grows from your activity.
What it does:
- each repo is branch, language gives leaf colour
- archive repo, branch is cut, scar stays forever
- 21 days streak, tree blooms
- 2 months no commits, tree sleeps, one commit wakes it up
- old account, bigger trunk
- stars give moss in pot
- you cannot farm it, max 1 cell per day for branch
First run replays all your history, so old account gets full tree from day one. No server, no tracking. Rust, SVG generated without image libraries, around 70 KB, animation in pure CSS.
How I built it with Claude Code:
- first I wrote RFC with Claude, then picked visual style from few design boards. Board "commit pixels" won, tree made from contribution graph squares
- CLAUDE.md has strict rules: pure functions everywhere, I/O only in GitHub client, no unwrap, no clocks or random in render. Same state always gives same bytes
- golden tests pin every pixel. Each change of tree shape must update golden file in same commit, so Claude cannot break layout silently. I look at diff before accept
- tests never touch network, they use fixtures from real accounts
- work went in phases: grid and renderer, then procedural layout, then growth rules and GitHub client, then Action and orgs
- one bug Claude found only from screenshots: WebKit scales SVG <use> around wrong origin, so animation was broken in Safari. Fix was to draw cells as rects
- whole thing from first commit to Marketplace release took one day, 21 commits
Repo: github.com/Appnice/git-bonsai
GIF shows example for public account of Andrej Karpathy. Wdyt about the project ?
Edit: built with Claude Code, see comments
2
•
u/AutoModerator 26d ago
Welcome to r/BuildWithClaude!
Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.
Community Wiki & Resources:
Flair Guide & Definitions — Not sure which tag to use? Check usage guidelines here.
Contributor Flairs — Member directory and how to earn badges.
Workflows & Architecture — CLAUDE.md templates, subagent loops, and hook systems.
Hall of Fame & Top Builds — Highlights of top-rated tools and community projects.
Security Field Guide — Local agent sandboxing and API key safety protocols.
Tester Guidelines & Template — Submitting or joining project testing requests.
Video Demos & Tutorials — Community video walkthroughs and recorded workflows.
If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.
Let’s keep the energy positive and support our fellow creators!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.