cracksmity.dev
Español
L9 · Community Terminus In service

git-trains

Your GitHub activity as a pixel-art train: it grows with your contributions and runs as fast as you worked yesterday. This line doesn't lead to someone close to me: it's for anyone with a profile.

OPENED
NOV 2026
VERSION
v1.1.2
DEPENDENCIES
None
BUILT WITH
An AI conductor
SOURCE
Public, MIT
git-trains home page: the title in pixel letters and three tracks with pixel-art trains, each with a STREAK 21 sign and a language stripe (TypeScript, Python and Rust), in front of a city, a village and a forest.
cracksmity.github.io/git-trains: three trains, three languages, and the speed set by yesterday's contributions.

ROUTE · L9 Community · 1 station

  1. YOU ARE HERE git-trains

Why it exists

A GitHub Action that draws your activity as a pixel-art train and writes it as an animated SVG into your profile README, every morning and with no external services. Every part means something: the cars are your contributions this year, the stripe is your top language, the LED sign is your streak, and the speed and the signal are what you did yesterday.

The idea comes from git-koi, which draws a koi from your activity; I wanted it with trains, so my profile would match this map. The models come from real trains: the first is Guadalajara's TEG-90 light rail car and the fifth, the Metropolis of Line 3.

It was also my experiment in directing AIs: a conductor hands each task to Codex or Antigravity, checks the result with tests and, if a model keeps failing, gives it to a stronger one. Every attempt ends up on a public leaderboard.

I saw git-koi, a pixel-art koi made from your GitHub activity, and, having just drawn my own projects as a metro map, thought the obvious thing: I want it with trains.

My profile already talked about lines and stations, but it was a still image. Now every morning a train pulls in that grows with what I do, waits with its doors open if I did nothing yesterday, and throws sparks if it was a good day.

I also wanted to see how far I could get by directing AIs instead of writing every line, so I built a conductor that hands out the work and grades it. Version 1.1.2 shipped in five days. It's the first line on the map that doesn't lead to someone I know, but to anyone who wants a train of their own.

A three-car pixel-art train with an LED streak sign, running on an electrified track in front of the city git-trains generates from my username.
My train on November 6, 2026, just as the Action drew it that morning: 3 cars and a 5-day streak. It follows your system's light or dark theme.

What it does

cars · stripe · LED · signal

A train you can read

One car to start, then one more at 50, 200, 500, 1,000 and 2,000 contributions. The windows light up with your streak and, if you did nothing yesterday, the train waits with its doors open.

6 models · cities · seasons

Real trains

From Guadalajara's TEG-90 to the bullet train, in front of a city generated from your username. It changes with the seasons and on dates like Día de Muertos or Christmas.

calendar · cards · year in review

More than a train

A tiny train runs through your contribution calendar, there are stats cards and a departures board with your repos, and your year becomes the poster of a journey.

studio · gallery · AI

A train of your own

Draw it pixel by pixel in the studio, ask the AI you already use from the terminal, or add it to the community gallery with a pull request.

git-trains studio: preview of a white train with a STREAK 12 sign in front of a city, controls for theme, number of cars and stripe language, and the train zoomed in pixel by pixel.
The studio: you design the train by hand, with the same checks as the Action, and share it with a link.
git-trains AI leaderboard: 17 tasks, 21 attempts, 80% first-try pass and 10.3M tokens, with the model table below.
The leaderboard: which AI did each task, how many passed on the first try, and how many tokens they used.

How it's built

73 commits · v1.1.2 in five days · zero dependencies

01 · DataGitHub APIContributions, streak and languages, with retries.
02 · RulesActivity → trainCars, windows, speed and signal.
03 · DrawingSVG + CSSPixel art animated with CSS only; it stops with reduced motion.
04 · DeliveryGitHub ActionWrites the SVGs to your repo every morning, no token to create.
  • GitHub Actions
  • Node.js 24
  • GitHub GraphQL API
  • SVG
  • CSS animations
  • pixel art
  • Codex
  • Antigravity

Logbook

  1. 2 NOV 2026First commit, still in Spanish: git-trenes. Profile cards the same day.
  2. 3 NOV 2026The studio: anyone can design their own train and city skyline, by hand or with AI.
  3. 4 NOV 2026v1.0: it becomes git-trains and speaks English first.
  4. 5 NOV 2026v1.1: seasons, unlockable cars, repo mode, year in review and the AI leaderboard.
  5. 6 NOV 2026v1.1.2: hardened security and the code reorganized by domain.

What I learned

  • Before you let AIs build, you need a way to check them: tests, a validator, and link and translation checks before any change goes in.
  • Measuring beats guessing: the Medellín metro benchmark decided which model gets each kind of task.
  • Building for strangers changes your priorities: security, docs in two languages, and releases that don't break what already worked.
  • A small idea grows fast when every part of the drawing means something.