Code City™
Live: https://codecitydev.com
Code City helps you understand a codebase quickly: where it starts, which files the rest depends on, how its workflows run and join, and how it grew. It draws the repo as a 3D city at night. Each file is a building (height is lines of code, width is number of functions), folders are raised districts, and TODO / FIXME comments burn on the rooftops.
Setting it up for a team? See docs/teams.md: which pieces to use, private repos, the PR bot, an architecture page for your docs, and what leaves your machines.
Try it
The top bar names the repo on screen, its size, and holds Ask. The icons down the left open the tools: Repo (open a repo or folder, show a pull request), Understand (Code structure, the workflows tour), Find (a file), Display (colours, connections, Hotspots), Info (what Code City is, reading the city and its panels, limits), the Guide (how to start, the tools, moving around), and your GitHub account. Click an icon again to fold the panel away, and drag its edge to resize it. The panels on the right fold (») and resize the same way. On a phone one panel shows at a time.
- Paste a public GitHub repo (for example
pallets/flask) and press Build. - Read Code structure, which opens on its own (in Beginner the page starts with just the city): what the project is, where execution starts, its core files and how its modules connect, all read from the code. Point at a file to see what it connects to.
- Click a building to see its functions, imports and the files that use it; View code and Explain this code go deeper.
- Press Trace next to a function (or on an entry in Code structure) to follow what it calls, file to file, and what calls it.
- Signed in with GitHub, press Workflows tour (under Understand) for the main workflows and where they meet, or ask a question in the top bar.
- Load some history and the history bar opens: press Play history on it to watch the city grow, commit by commit.
Words used on the site
| Word | Meaning |
|---|---|
| Building | One file. Height is the number of functions, width is lines of code. |
| District | A folder, raised one step for each level of nesting. |
| Fire | A TODO, FIXME or HACK comment on that file's roof. |
| Entry point | Where execution starts: a file the project declares (package.json main/bin, pyproject scripts…), one named like an entry point (main.py, cmd/x/main.go…), or one no other file imports. |
| Core | The files most of the product imports (tests, docs and examples aren't counted). |
| Main path | From an entry point, the way the code goes: at each step the call (or, for languages Trace doesn't read, the import) that leads to the most code, with error handling counted for less. |
| Change heat | How many commits touched a file, from dark blue (rarely) to orange-red (constantly). Hotspots colours the city this way. |
| Hotspot | A file in the repo's top tenth for how often it changes (at least 2 changes). The PR view and the PR bot flag these. The Hotspots list ranks by commits × lines instead, so big files that keep changing come first. |
On the hosted site
Code City comes in three versions, each its own site:
- Beginner (the main address): the basics. Where the code starts, how it flows, Ask and explanations, without the expert tools.
- Advanced: every tool. Trace, tangles and how the parts connect, every workflow in a tour, commits, pull requests and recording.
- Manager: opens on a Status report for the last 30 days: how much work landed and who did it, pull requests merged and still open, where in the code the work happened (lit on the map), and what's worth a look. Download report saves it as Markdown for an update. It's read from GitHub with no AI.
The local app and the VS Code extension have all three, with a switch in the top bar (and in the Guide); a link can pick one with ?for=manager.
Paste any public GitHub repo and press Build (a private one needs a read-only token: see docs/teams.md). The site reads it straight from GitHub's API:
- Today's files show right away (about 4 requests).
- You pick which stretch of history to replay by dragging the two ends of a slider, from the first commit to today. If the stretch ends before today, one extra request carries the city on to today, so the timeline always finishes at the current code. The panel shows how many commits that is, the dates, and how many GitHub requests it will cost.
- Each commit costs one request. If the range doesn't fit in what you have left, it loads as coarser steps (GitHub's compare between evenly spaced commits), so you still get the whole range.
Without signing in, GitHub allows 60 requests an hour per network. Sign in with GitHub, or paste a GitHub token (a fine-grained token with public repository access only), to get 5,000 an hour, enough for every commit of most repos. A pasted token is only sent to api.github.com and is kept in the browser only if you tick "Remember on this device"; Ask and Tour use the sign-in, never a pasted token.
The timeline follows the default branch's main line: each merge is one step for the branch it brought in, and commits are placed by the date they landed (the committer date), so rebased work shows up where it was merged. Files left out of the city (too big, or past the 4,000-file limit) are left out of the history too. A load can be stopped with Cancel; starting another load stops the one before.
Building sizes are estimated from file size until you click a building, which loads its real source and counts its functions. Loading all time from the first commit replays real line counts; heights in the past are today's functions scaled by the lines the file had then.
Code structure
Opens by itself when a repo loads (and from Code structure under Understand); in Beginner the page starts with just the city. It shows the README's first sentence, the entry points with why each counts, and the core files with how many files use them, and lights them up in the city (entry points brightest). Once functions are read it adds the Main paths (from each entry point, the functions the code really calls, drawn over the city in their own colours; Open side by side opens each step's code), Where paths meet (functions several paths reach), and every place requests and commands come in. Beginner has no Code structure button: its Workflows tour shows where the program starts, in plain English. It needs no AI and no sign-in: it's read from the code's import lines and functions, once per city (one GitHub download per source file, up to 2,000). The Workflows tour under Understand goes on to the AI tour, which is built on the main paths.
Further down, Tangles lists folders that import each other in a loop, with an import each way, and the shortest loops of files that import each other when they load; those files glow on the map. It shows only when there are any. Imports that don't run at load (inside a Python function, under if TYPE_CHECKING:, or TypeScript import type) are left out, since they can't cause load-time loops.
Download as Markdown saves all of it as a page for your repo's docs or your team's wiki: what the project is, where it starts, the core, the main paths, the modules and import cycles, hotspots (when history is loaded) and, if you took the tour, its workflows, marked as Gemini's reading. Files link to GitHub for a GitHub repo, and are relative links for a folder, so the page works from the repo's root.
A repo's imports and functions are read as soon as it loads, and kept in this browser for that commit (the eight most recent; built-in repos for the day), so coming back reads nothing again.
Commits and branches
Commits and branches (under Display, or click the commit count in the top bar) shows the repo's history as a graph, like GitHub Desktop: newest at the top, one coloured lane per line of work, a dot per commit, and lines to its parents, so branches split off and merges join back (a hollow dot is a merge). Branch names sit on their newest commit. It reads the default branch's newest 100 commits (Load older commits for more) and the newest 30 of up to 8 other branches whose work isn't on it yet, about 11 GitHub requests the first time.
Click a commit to see its message, author, date and the files it changed (lines added and removed), lit over the city in the pull request colours with everything else dimmed. When the commit is in the history the city loaded, the city goes back to that moment and the history bar opens there; Back to today returns. A commit outside the loaded history (newer than a built-in repo's saved history, or on another branch) keeps today's city with its files lit. For a folder or city file, its own history is shown as one line.
History
The history bar opens when you load history from the history panel (▾ hides it, ^ in the bottom-left corner brings it back). On it, Play history plays the city's growth; you can also scrub to any commit, change the speed, or record a video.
Folders, hotspots, pull requests and links
-
Find a file: matches light up in mint (not the orange used for imports and answers) and a dropdown lists them, best match first; arrow keys and Enter, or a click, open one.
-
Folders: click a district (or its name) to open the folder. Everything outside it dims, and the panel shows its size, the folders inside and its biggest files. The path at the top of a file's or folder's panel links to each parent folder.
-
Hotspots (under Display, beside Language) colours the city by change heat and ranks files by commits × lines (see the table above): big files that keep changing, where bugs tend to cluster and refactoring pays off first. Click a row to fly to the building. Closing the list keeps the heat colours until you pick another colour.
-
Show a pull request (under Repo): enter a PR number or paste its URL. Its files light up (blue changed, green new, red deleted), everything else dims, and the panel flags the ones that are hotspots (top tenth for changes).
-
Copy link (top right) copies a link that reopens the same view, for example
https://codecitydev.com/?repo=sindresorhus/ky&range=2026-06-01..now&mode=heat&panel=hotspots&pr=12&file=source/core/Ky.ts.rangeis two dates (startandnowalso work); older links with1w,1m,3m,1yorallstill open. A link loads its history by itself only when that costs 60 GitHub requests or fewer; otherwise it opens the history panel with that range picked.
Ask the city
Type a question such as "where is authentication handled?". Before asking, the page reads the repo itself: the README's opening, the project manifests (package.json, pyproject.toml, go.mod…), which files import which, the most-imported files and likely entry points, the main paths (real function calls from each entry point), and the top-level functions and classes of the files that matter most (for repos of up to 600 source files; one GitHub download per file, done once per city). Gemini answers from that and the file list in a few sentences, naming the functions involved, and the files it points to light up. The page then pulls the source of the top three files (from GitHub, or the preview a city file carries) and Gemini explains how that code works: what each file does, its key parts with line numbers, and the other files it connects to. Each connection is marked imports when the code's import lines show it, or inferred when it's Gemini's reading.
Asking needs Sign in with GitHub (a pasted token isn't enough, because it is only ever sent to GitHub), so the site's Gemini budget can't be spent anonymously. Each GitHub account gets 20 questions or tours an hour, plus 20 code explanations and 20 important-line readings, and at most 80 calls a day; the whole site gets 300 a day (set ASK_PER_HOUR, ASK_PER_USER_DAY and ASK_PER_DAY to change them). Calls that fail don't count. The counts are kept in Netlify Blobs. The same question, tour or explanation about the same code (same files, digest and code) is answered from a saved copy for 14 days, in Netlify Blobs, without calling Gemini or counting towards a limit; changed code is a new request. Signing out also revokes the sign-in token with GitHub.
Answers come from Google's fast, low-cost Flash-Lite models (ASK_MODELS, a comma-separated list, newest first; a busy or slow model hands over to the next). Explaining code can ask a stronger model first: set ASK_EXPLAIN_MODELS, for example gemini-3.6-flash,gemini-3.5-flash-lite, on Netlify or before running code-city. It's slower and costs more per explanation, but reads tricky code better.
After an answer, Explain the code of the top files reads their code. Explain this code in a file's panel (or Explain on a code window) explains one file, and Explain this folder a folder's three biggest files. With explanations already open, a new one is added below them instead of replacing them. Gemini reads at most 24,000 characters of each file and says when it only saw the start.
Explanations form a chain: Follow on any connected file explains it next, as a new step below the ones before ("followed from app.py"), and opens both files side by side in the code viewer with the lines that connect them marked: the import line that brings in the other file, and each line that uses what it imports. A strip above each file lists them ("↔ ctx.py: imported on L33; used on L87, L101…"); click one to jump to it. When no import line links the two, lines that mention the other file are marked instead. This way you can trace a request from file to file. The trail at the top jumps between steps, thicker arcs mark the path the chain took, and a chain holds up to 8 steps.
Connections between files
Arcs over the city show which files import which, read from the code's import lines (JavaScript and TypeScript, Python, Go, Ruby, Java and Kotlin, C and C++, CSS, Rust and PHP), never guessed. They show one file at a time: the file whose panel is open, the row you point at in a list, the explained files, or the tour stop. Sparks travel along each arc: orange from a file to what it imports, blue from the files that use it. A file's panel lists its Imports, and Find the files that use this reads the whole repo's imports once to list its Used by (one GitHub download per source file). Turn arcs off with Show connections between files. In Beginner, a file's panel shows its main facts, with the rest folded under More information as cards: the files it uses and the files that use it (each by name, its folder under it), What's inside (its functions and classes, each kind in its own colour), Notes to fix (its TODOs) and its first lines.
Function-level links (Trace)
For Python, JavaScript, TypeScript and Go, a parser (tree-sitter, in site/vendor/tree-sitter, loaded only when it's needed) reads every function in the repo, the calls inside it and the names each file imports, then matches each call to the function it reaches. No AI is involved. It reads each source file once per city, using the same downloads as the import scan.
- A file's panel lists its Functions, each with how many functions it calls (→) and how many places call it (←).
- Trace opens a tree of what a function calls, file to file: open a branch to follow it further, click a name to open the code there. Called by goes the other way. The files on the trace light up and arcs join them.
- Code structure adds Where requests and commands come in: route handlers (
@app.route,app.get('/x', …),http.HandleFunc), CLI commands,func mainandif __name__ == "__main__"blocks. Trace from one to follow a request. - Click a name in the trace to open the code of every step from the traced function down to it, one window per step, side by side in call order and numbered. Each opens at the line that calls the next step. The windows move and resize like any other.
- Explain this path (signed in) has Gemini walk through the first path down the trace.
Each link says how it was found: sure (defined in the file, imported from another, or called on an imported module or class), self (a method on self / this, found in the class or the classes it extends), likely (called on an object whose type isn't written down, and only one method in the repo has that name), passes (handed to other code as a callback or route, which calls it later), and run time (picked at run time, for example looked up in a table, so the trace stops there and says so). Calls into libraries and built-ins are counted, not listed.
Limits: other languages fall back to file-level connections. Calls through variables whose type the code doesn't name, decorators that wrap functions, and dependency injection can't always be followed; the trace shows where it stops.
Windows
Select lines in a code window and press its Explain: just those lines are explained, beside them, with the lines marked (with nothing selected it explains the whole file). Explain the whole file at the top of that explanation does the rest.
View code (in a file's panel, next to any explained file, an outline entry, or Shift-click a building) opens the file's full source in its own window. Explain this code opens just the explanation, with View code to add the code to the same window: code on the left, explanation on the right, at equal widths (stacked on narrow screens). If the code is already open, the explanation joins its window. Follow opens the followed file next to the one it came from, with the lines that connect the two marked. Explanations of several files at once get a window of their own.
Drag a window by its title bar and resize it from its corner. – puts it away in its tab and ✕ closes it. A strip of tabs, one per window, brings any window back; files that share a name show enough of their folders to tell apart, and ▾ folds the strip. New windows never move or close the ones already open, and the side panels stay open beside them. The guide at the bottom can be closed, and steps aside while windows are open. Files and web addresses named in any description are links.
If you leave the page (signing in with GitHub, the back button, a reload), its windows, explanations and Ask answer come back when the same repo loads again within half an hour.
Guided tours
Like asking, tours need Sign in with GitHub and count towards the same hourly limit. Press Workflows tour under Understand; for one workflow, write its name in the box below it first (such as "checkout") and press Enter. Using the same reading of the repo, Gemini splits the software into its main workflows ("Starting the app", "Handling a request"), each an ordered walk through files that follows real imports where it can.
- Overview: how the workflows merge. The map draws every workflow at once, one colour each, and lights brightest the files workflows share. The panel explains how they fit together, lists each workflow with the ones it leads to, and lists the files where workflows meet.
- One workflow. Open a workflow to step through it. Each step has its clickable file name (opens the file's panel; View opens its code), what happens there, its important lines (Gemini reads the code of the workflow's first four files when you open it), and the hand-off line where it imports the next step's file, found from the code. A hand-off with no import line behind it is marked inferred. Click any line number to see it in the code viewer.
- Open this workflow's files opens one code window per step, tiled; as you step through, the current step's window comes to the front at its important line.
- Back / Next step through, Auto-play runs through every workflow, and All workflows returns to the overview.
The Beginner tour is made for people new to code; Advanced and Manager keep the tour above. When a repo opens, a small card says New here? Take the tour until you take it or close it, and the top bar leaves out the fires count and the repo type.
- One button. Understand has just Workflows tour. Its overview shows where the program starts; where there's no tour to take (no sign-in, or no Gemini), the button shows Code structure in plain English instead.
- In plain English. The tour opens with the whole system end to end in simple words: what the software is for, then one person's or one piece of data's journey through it. Each workflow says in plain English what it lets people do, above the technical summary ("In the code").
- Covers the whole system. Gemini is given the product's main areas (top folders by lines of source code; tests, docs, vendored and built folders aside; a folder that is a project of its own always counts) as a checklist the workflows must cover, unless you named one topic. The overview ends with What the tour covers: each area ticked or not, and Tour this part on any it missed. The narration is asked to vary from step to step.
- A simpler overview. After the story come the workflows, listed by name (pick one to walk it), and one line on how much of the code the tour covers (open it for the list). The rest folds under More detail: where the program starts, how the code fits together, and the map, which is only a picture: it names each workflow on its line, numbers its stops, and draws a dashed arrow only for direct links between workflows, so a chain reads as a chain.
- One step at a time. Only the current step shows; a row of numbered dots shows where you are (click one to jump), and the ← and → keys step back and forward (or Back and Next), and each step shows its file as a card (View code opens it), with the code details (lines to look at, where it passes on to the next step) folded away under Show the code behind this step.
Timelapse video
Record video (top right) offers two kinds. Record what I do records this tab as you use it, panels and windows included, until you press Stop recording (the browser asks which tab to share; where it can't, the 3D view is recorded instead). Record the history replay (with history loaded) replays the history from the first commit as a 1280×720 video with the repo name, date and commit message drawn in, and stops by itself on today's city. Either is saved as MP4 where the browser supports it, otherwise WebM.
PR summary bot (GitHub Action)
The bot that comments on pull requests with hotspots, missing tests, who to ask, and a link to the PR in Code City lives in its own repo: lakshmisraj/code-city-pr-summary. Setup and .codecity.yml settings are documented there. In short:
# .github/workflows/code-city.yml
name: Code City PR summary
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
summary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: lakshmisraj/code-city-pr-summary@v1
Sign in with GitHub (site owner setup)
Sign-in runs through two Netlify Functions in netlify/functions/. It asks GitHub for no scopes: the token only identifies the visitor, which raises their limit to 5,000 requests an hour. The token reaches the page through the site's own storage, never through a URL. Until it's set up, the button stays hidden and the paste-a-token box still works.
- On GitHub: Settings → Developer settings → OAuth Apps → New OAuth App.
- Homepage URL:
https://codecitydev.com - Authorization callback URL:
https://codecitydev.com/.netlify/functions/github-callback(keep the oldhttps://code-city-view.netlify.app/…one too, for deploy previews and old links)
- Homepage URL:
- In Netlify: Site configuration → Environment variables, add
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRET(mark the secret as secret), then redeploy.
The three sites (site owner setup)
All three versions build from this repo; netlify.toml runs python3 codecity.py build --for … on each. The main site needs nothing more (it builds as Beginner). For each of the other two:
- In Netlify: Add new site → Import an existing project → this GitHub repo, branch
main. Name it, saycode-city-advancedandcode-city-manager. - Site configuration → Environment variables:
CODECITY_FOR=advanced(ormanager), plus the main site'sGEMINI_API_KEYand anyASK_…settings. - GitHub sign-in needs its own OAuth app per site (GitHub allows one callback address each): repeat the steps above with the new site's address, and add its
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRET.
To link the three from each other's Guide, set CODECITY_SITES on all three, for example beginner=https://codecitydev.com/,advanced=https://advanced.codecitydev.com/,manager=https://manager.codecitydev.com/, then redeploy.
Each push to main rebuilds all three, unless it changes nothing the sites are made from (src/, site/, netlify/, netlify.toml, codecity.py, the package files): a push of only tests, docs, the VS Code extension or CI skips all three builds (the ignore rule in netlify.toml).
Run it on your own code
Needs Python 3.8+ and git. Install the code-city command once:
pipx install code-city # from PyPI
pipx install git+https://github.com/lakshmisraj/code-city # or straight from GitHub
Then, in any project folder:
code-city .
Your browser opens on that folder's city, history included. Your code stays on your machine: the city is read by a server on your computer, and nothing is uploaded. It works for private code and for folders that aren't git repos.
| Command | What it does |
|---|---|
code-city . |
Open this folder's city (or code-city path/to/project) |
code-city pallets/flask |
Clone a public GitHub, GitLab or Bitbucket repo into ~/.cache/code-city and open it |
code-city |
Open the app and paste a repo or folder there |
code-city export owner/repo |
Write a city file for the hosted site (see below) |
code-city --port 9000 . |
Use another port (a free one is picked if 8787 is taken); --no-open skips the browser |
From a checkout of this repo, python3 codecity.py takes the same arguments.
In VS Code
The Code City extension (in vscode/) opens the city for your workspace in an editor panel: Code City: Open the City. Click a building and press Open in editor, or use Code City: Show This File in the City (also in the editor tab's and the Explorer's right-click menus) to fly to the file you're in. Code City: Set Gemini API Key turns on Ask, kept in VS Code's secret storage. It needs Python 3.8+ and git. On the Marketplace it's CodeCityDev: 3D Codebase Map (lakshmisraj.codecitydev). To build it yourself with npm install && npm run package in vscode/ and install the .vsix with code --install-extension.
Ask, tours and explanations on your own machine
Set your own Gemini API key before running code-city, and Ask, the workflows tour, Explain and Explain this commit work locally with no sign-in:
export GEMINI_API_KEY=your-key
code-city .
It needs Node 18+ as well: code-city runs the hosted site's own Ask code under Node, on your machine, and the terminal says whether Ask is on. Gemini sees what the hosted site would send it (file names, a digest of the repo, and the code of files you ask it to explain), billed to your key. Only the Code City page can use it: other websites and other programs on your machine can't spend your key through it.
The local server only answers its own page: other websites can't make it clone or read anything, and it never runs programs that a folder's own git settings name (hooks, fsmonitor). python3 codecity.py export can read any folder.
Dev server
For working on the site itself: the dev copy of the page, signed in with GitHub on every load, and the dev copy of the Ask function (so Ask, tours and explanations run your changes before they're deployed).
- Copy
.env.exampleto.env(git ignores it) and fill in:GITHUB_TOKEN: a fine-grained token with no extra permissions. It only tells Code City who you are.GEMINI_API_KEY: your Gemini key, for Ask. Leave it empty to run without Ask.
- Make it private:
chmod 600 .env(the server refuses to start otherwise). - Run
node dev-server.mjsand open the link it prints (http://codecity.localhost:8813/?key=…). The key is new on every run and keeps other programs on your machine from reading the signed-in page.
It rebuilds the page whenever a file in src/ changes, so a reload shows edits. It only listens on this machine, only answers codecity.localhost, and only gives the signed-in page and Ask to the browser that opened its link, so nothing else on the network or the machine, and no other website, can read the token or spend questions through it. Question limits and timing notes need Netlify Blobs, so they're off here. Needs Node 18+ and Python 3.
Troubleshooting
- "GitHub allows 60 requests an hour…": your network has used its unauthenticated GitHub requests. Sign in with GitHub (or paste a token) for 5,000 an hour, or wait for the reset time shown.
- No Ask box: the site owner hasn't set
GEMINI_API_KEYyet (see Ask the city). - "You've asked 20 questions this hour": the per-account limit; it resets on the hour.
- "GitHub says that repo doesn't exist or isn't public" for a private repo: add a fine-grained token with Contents: Read-only for it (under Repo). Signing in alone only reads public repos.
- The PR bot didn't comment on a fork's PR: forks get a read-only token, so the action logs a warning instead. See the action's README.
- A history load is taking too long: press Cancel, then drag the slider's ends closer together.
Export a repo for the hosted site
To show a repo's full history on the hosted site, export it and drag the JSON onto the page:
python3 codecity.py export owner/repo # writes repo.json
python3 codecity.py export owner/repo --no-source # smaller, without file previews
The timelapse follows the main line of history (first parents), with each merge shown as one step for the branch it brought in, so files deleted on the main line never reappear. Histories longer than 1,500 commits are merged into 1,500 steps, so the timelapse still starts from the first commit. The hosted site bundles Flask and Express in site/presets/; type pallets/flask or expressjs/express to load them.
Project layout
| Path | What it is |
|---|---|
src/app.js |
The whole app's code: Three.js scene, treemap layout, timelapse, heat map, hotspots, PR view, import parser, Code structure, windows, site tour |
src/style.css, src/page.html |
Its styles, and the page's markup with the panels and the scripts it loads |
code-city.html |
Built from src/ by python3 codecity.py build: the same page as one file (the installed package and the claude.ai artifact use it). Don't edit it by hand |
codecity.py |
Local server, repo exporter (git log → city JSON) and site builder |
dev-server.mjs |
Dev server: the dev page signed in from .env, with netlify/functions/ask.mjs run locally |
local/ask-server.mjs |
Runs ask.mjs for code-city with your own Gemini key; the installed package carries it bundled (npm run bundle:ask) |
pyproject.toml, hatch_build.py |
The code-city package for PyPI: the command, the page, the parser and the bundled ask server |
vscode/ |
The VS Code extension: runs codecity.py on the workspace and shows the page in a panel, with Open in editor and Show This File in the City |
tests/ |
npm test: the Ask function, the page, and the code-city command |
netlify/functions/ |
Server code on Netlify: ask.mjs (Ask, tours, explanations, important lines via Gemini), github-login.js / github-callback.js (Sign in with GitHub) and github-signout.js (revokes the token on sign-out) |
site/vendor/tree-sitter/ |
The parser behind Trace: web-tree-sitter 0.20.8 and grammars for Python, JavaScript, TypeScript and Go (see its README) |
site/ |
What Netlify serves. Rebuild it (and code-city.html) with python3 codecity.py build after editing src/. Pushing to main deploys it. |
License
Elastic License 2.0 (copyright and history in NOTICE). You can use, copy, change and share Code City for free, including at work and inside your company's own products. You can't offer it to others as a hosted or managed service, get around its license keys or paid features, or remove its notices.
Versions up to commit 2f5dbaa (5 November 2026) were released under the MIT License and stay available under it.
Code City™ is a trademark of Lakshmi Shibu Raj. Neither license gives permission to use the name or logo.
Metadata
Release files for code-city 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| code_city-0.1.0.tar.gz | 1.1 MB | With provenance | Details for code_city-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_city-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for code_city-0.1.0-py3-none-any.whl |
Total release size: 2.2 MB
Release files / code_city-0.1.0.tar.gz
| Download URL | code_city-0.1.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e5e0e8b233ef86ac2b2743e5e6fcb452531f3e9cfc2ed3638eb0c908123b65c
|
|
BLAKE2b-256 checksum How to use checksums |
5e98c1e167d1a3b04b96c60254adc69a852cc12da38e8be2622533d35953c6d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / code_city-0.1.0-py3-none-any.whl
| Download URL | code_city-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31f2913c1a6d441716b7270269f82247076c25a3abb0a22fbf6abac912c883f0
|
|
BLAKE2b-256 checksum How to use checksums |
0669f6293c78e0454cf0c3329de88a605ae5facfe681534c9abf1763cda8efde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for code-city 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for code_city-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.