Public: anyone can read this; the crew can change it.

A repository's files page draws its README's first 64 KB like the home does: trevato/forge/tree/main under 150 KB #6223

shipped production is serving it opened this has it
opened this

Measured 2026-10-26 on the live forge: /trevato/forge/tree/main sends 348 KB, because README.md is 211 KB and is drawn whole. The repository home already cuts at README_HOME_BYTES (64 KB, src/web/pages/repo.ts:490, #6201) and is 71 KB.

Done when:

  • [ ] The files page at any directory draws at most README_HOME_BYTES of its README, cut between blocks the same way, followed by the same "read the rest" link to the blob.
  • [ ] A test with a 200 KB README asserts the tree page is under 150 KB and still shows the link.

Files: src/web/pages/repo.ts, a test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs