About
Terrace
Terrace draws a GitHub repository as a farmed hillside. Terraces run in the order water would: root files on top, then source, then tests, config, docs, assets and pipelines down to the valley floor. Each app or area of the code is a field sized by its files, each folder a plot, and the crop on a plot says what the files are. Side notes name the landmarks, and the panel answers what the repo makes, who runs it and what languages and frameworks it is built with.
It is made by B McDaniel, who wanted the “what builds what” view that stack badges skip.
How it reads a repository
- Fetches the repo’s metadata, its full file tree and GitHub’s language byte counts (3 API calls).
- Picks at most 40 files to read: manifests (
package.json,pyproject.toml,go.mod,Cargo.toml…), deploy configs (wrangler.toml,Dockerfile,*.tf, workflows…), READMEs and one entry file per app. - Matches dependencies and config files against a catalog of about 80 frameworks and 30 hosting targets, and links each finding to the file that proves it.
- Merges anything the owner declared in .terrace.yml.
It never clones, builds or runs code, and no AI model reads your repository. Detection is rule-based and can miss things — monorepos with more than 14 apps, or hosting set up only in a dashboard. That is what .terrace.yml is for.
Privacy
- Public repos are read by terr.app’s server with a read-only GitHub token. The finished terrace is cached at Cloudflare’s edge for 30 minutes. Nothing else is stored.
- Very large repos (over 15,000 files), or any survey while terr.app is busy, run in your browser instead, reading straight from GitHub. GitHub allows 60 of those an hour per network.
- Private repos are surveyed in your browser. Choose Sign in with GitHub and pick the repos the Terrace app may read (contents and metadata, read-only). GitHub hands terr.app a one-time code; terr.app trades it for a token that expires after 8 hours and passes it straight to your tab without storing or logging it. From then on your browser reads
api.github.comdirectly, so terr.app never sees the repository contents. You can remove the app’s access any time under GitHub → Settings → Applications. - Prefer not to sign in? Paste a fine-grained token instead; it is kept in this tab’s session storage and sent only to
api.github.com. - Your notes and declared hosts stay in your browser’s local storage until you export them as a
.terrace.yml. - No accounts, no third-party trackers. The only cookie is a 10-minute one that ties a GitHub sign-in to the tab that started it. If page views are counted at all, it is with Cloudflare Web Analytics, which uses no cookies.
How it’s built
- One analyzer, two runtimes. The repository analyzer is plain TypeScript with no platform dependencies, so the same code runs on the server for public repos and in your browser for private ones.
- Edge-first. A single Cloudflare Worker serves the site and the API, caches each finished terrace at the edge and rate-limits new surveys per visitor, with no database to run.
- Private by design. GitHub sign-in is stateless: the server only exchanges a one-time code for a short-lived, read-only token and hands it to your tab.
- Hand-drawn picture, rule-driven layout. The hillside is isometric SVG laid out by tested, pure functions, with written rules for text and leader lines. No 3D or charting library.
- Test-first. The analyzer, the Worker and the hill layout each have their own test suite, and every deploy goes through GitHub Actions.
To keep surveys fast for everyone, new surveys are limited to 20 per minute per visitor; cached terraces are unlimited.