
Show HN: Codecity, a 3D map of any Git repository
The map opens coloured by how recently each file was touched, on a scale taken from the project's own history. It reads the same on a repository a week old and one ten years old.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
The map opens coloured by how recently each file was touched, on a scale taken from the project's own history. It reads the same on a repository a week old and one ten years old.
After a git pull, one click shows exactly the files it changed. This comes from git's own record of where you were before the pull, so it is right even when the commits were written days ago.
The same goes for your own absence: the map remembers when you last looked and shows what moved since.
Click a building to draw its imports and the files that import it. Switch height to imported by and the small files everything leans on become towers.
Play the timeline and the city is built again from the first commit: districts appear with their first file, buildings rise as files grow, and each change flashes as it lands. Save video records the playback as a file you can post.
Leave it open on a second screen. A saved file lights up within a second, and a new file rises from the ground where it belongs. When several coding agents are editing at once, you can see where they are.
Three themes: light, dark, and a beach for Fridays. A building's colour means the same in each.
in any git repository: opens the live map
npx codecity
another folder, or a different port
npx codecity ../some-repo --port 4000
one self-contained HTML file, to keep or to share
npx codecity -o map.html
Local by design
codecity reads your working tree and your git history on your own machine. The page it builds contains everything it needs and makes no network requests. There is no account and nothing to configure.
The single-file output works offline. Attach it to a pull request or send it to a colleague.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。