Repository navigation
Page: who built what - #8
Merged
Merged
Conversation
The scanner now records who added each file, and the page can light up one builder's buildings. A building's builder is whoever added its file: it stays theirs when the file is moved, edited by others, or deleted and added back. - scan: the git log walk reads %aN with each commit (the name .mailmap gives, so one person's two emails are one builder; no emails are kept). The city gets `authors`, most buildings first, and each file and deleted file a `b` index into it. A file there before the commits read has none. - Hover says who built a building. - The builder button on the timeline (or B) lists the builders with how many buildings they put up, with a search box past eight. Picking one lights their buildings and recedes the rest, and puts ?by=<name> in the address, which lights them again on load. Esc or a click on a building clears it. Hidden for a city with one builder, or one scanned before. - Pixel style: the rest recedes to 25% instead of 55% while a builder is lit (55% was hard to read for buildings scattered through the city), and theirs warm a little. A share card drawn meanwhile is unlit. - Snapshots record each file's builder by name; nothing else moved. test/history.mjs: moves, deletions, .mailmap, a history read in part. On DefinitelyTyped (28k files, 1,656 builders) it adds ~150 KB to a 6.4 MB city. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Every building now knows who built it, meaning whoever added its file. Hovering a building shows its builder. A new builder button on the timeline (or B) lists everyone who built the city, with how many buildings each put up. Picking one lights up their buildings and puts
?by=<name>in the address, so that link opens with them lit.No issue: the maintainer asked for it directly.
Why
"Which of these buildings are mine?" is the most personal question someone can ask of their repo's city, and the most shareable answer ("I built 43 of flask's 125 buildings"). The scanner already walks every commit's file changes, so knowing who made each one costs almost nothing.
How
git logreads%aNwith each commit. That is the name.mailmapgives, so one person with two emails counts as one builder, and no emails are kept. A file's record takes its builder from the commit that added it. That record already follows moves, deletions and files added back, so the builder does too.authors, sorted by buildings built (most first). Each file and deleted file getsb, an index into it.--max-counttruncation) has no builder. Its birth is looked up between sampled points, so who added it isn't known.uFocus = N, which matches no building, so import arcs and traffic dim as they do around a focused building. Esc, or clicking a building, clears it.Type of change
deploy/cloudflare): not bumped here. Hosted site: cities are scanned again for births before the commits read #5 already takesSCANNERto 8, so this needs 9, or to ship with Hosted site: cities are scanned again for births before the commits read #5. Until cities are rescanned, the hosted ones simply don't show the button.How I checked it
byfieldtest/history.mjs: two new cases. A file moved, edited by others, or deleted keeps its first author;.mailmapfolds two emails into one name; a file from before the commits read has no builder.In the browser (flask): the panel, search with Enter, the B key,
?by=on load, clearing with Esc and with a click, hover, the share card while a builder is lit, and the panel at 375 px wide (no horizontal scroll).Ran at least one small repo (under 50 files) and one large one (over 1,000)
Played the timeline from the start: land, buildings, names and traffic appear in order
Compared
--benchon a big repo (only if this touches rendering or the building merge): one more uniform in the pixel shader, nothing in the mergeThe other styles still load (only if this touches shared code): pixel and neon
Checklist
textContentonly)Not in this pull request
?by=; only the address does.🤖 Generated with Claude Code