Repository navigation
Chip: a hidden style that draws any city as a circuit board - #7
Merged
Merged
Conversation
- --style chip and ?style=chip: the city's own plan, every file a low chip package (dark body, a row of leads, pin-1 dimple, etched part number) on green solder mask, a copper trace round every block with a via at each turn, silkscreen outlines and district names, imports as a ratsnest - web/chip.js holds the parts and is fetched only for this style - not in --help or the README: the easter egg for hardware repos - the CLI's psst line is back for repos with Verilog/VHDL sources, and the page offers a quiet "psst: chip" link beside the others Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A circuit board has one arrangement whatever the city would be: the chip style now always uses a new `board` planner. It lays out a square board on a dark bench, with each directory a rectangular block cut into an even grid of cells and channels between them for the traces. It isn't a city type: it's not in CITY_KINDS or --city, and classify is untouched. The still's caption reads "built like a circuit board". test/layout.mjs runs the board plan too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boards are photographed and drawn from above: the chip style's live view, stills and films now face the board square on. The live view doesn't spin (dragging still tilts it), and a film pushes in on the hub without turning. Names keep full strength, and the bench under the board is matte. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each import edge is routed between the two chips on a grid (A*, 45° and 90° turns, vias at square corners), shortest edges first within a 900 ms budget. Every chip gets a decoupling capacitor and every third a resistor; chips, Cs and Rs carry U/C/R reference designators in silkscreen. Leads fan out to vias. The ring traces round each block are gone, and the board slab sits flush with its blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A visit that names no style rolls chip one time in 100,000 and keeps ?style=chip in the URL, so a lucky board can be shared. The CLI's psst line and the page's psst link for hardware repos are gone, and the live view leaves the style to the page unless --style was given. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A card URL names no style, so it could have rolled chip one time in 100,000; cards and recordings are made, not visited. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each cell of a directory's block took parts until the next one would go over a share fixed up front. Most cells stopped a little short of it, and the last cell took everything left: in gson 46 files ended up crammed into one cell at a fiftieth of their size, and a directory of 5,000 files left over 1,200 in its corner. Now each cell's share is what's left divided by the cells left, and a part goes in when at least half of it fits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty ?style= names no style, so the page could roll chip, but the address was only rewritten when there was no style key at all: a reload of the lucky board came back pixel and it couldn't be shared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fengzdadi
added a commit
that referenced
this pull request
Nov 3, 2026
Main now has the chip style (#7). Both changes pass a new value to the studio, so it takes both, chip and wall. The circuit board isn't a city and has no old town, so a walled city's wall is planned for every style but chip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A hidden easter egg: one plain visit in 100,000 draws the repo as a circuit board. It's a render style, not a city type:
ARCHETYPES,STATESand the classify scoring are untouched, and scans don't change (noSCANNERbump).What you get with
--style chip/?style=chipboardplanner lays out a square board on a dark bench. Each directory is a rectangular block, cut into an even grid of cells with channels between them for the traces. Each cell takes an even share of what's left of the block's parts, so no cell ends up crammed with the leftovers. It isn't a city type: it's not inCITY_KINDSor--city. The still's caption reads "built like a circuit board".--shot hero) and films.--shot aerialand--shot streetkeep their angles, so--shotstill means something. The live view doesn't spin, and dragging still tilts it.--stillworks too.Hidden
oneOfacceptschip, but it isn't listed in--helpor the README.web/chip.jsis fetched with a dynamic import only when the style is asked for. It isn't in the preload list.How you find it
stylerolls chip with probability 1e-5 and puts?style=chipin the URL (history.replaceState), also when the visit had an empty?style=, so the lucky board can be shared.?style=chipand--style chipalways work. Visits that name a style, and every--still, film or card, never roll.style=pixelunless--stylewas given, so a local look rolls too.identity.chipis still in the scan but nothing reads it.The hosted site needs no change: the Worker only reads
stylefor badges, and/chip.jsis served as a static asset.Checked
Math.randomforced to 0 it rolls chip and the URL becomes?style=chip, no console errors. YosysHQ/picorv32 (Factory Town) and pallets/flask (Paris), both with?style=chip. Also checked hover, a mid-timeline scrub, and?city=classic. No console errors.--still --style chipon picorv32, flask and terraform-aws-eks (port city, water ground).npm testpasses.test/layout.mjsruns the board plan as well, also merged together with An old walled city: twenty years on, its founding quarter behind a wall #6.?style=chip&by=…the builder lights with the usual focus dimming, no console errors.style=chip.🤖 Generated with Claude Code