chenglou/pretext
This system is a text layout engine named Pretext, designed to calculate text height, width, and line-breaking with high accuracy across multiple scripts and bidirectional text. It provides a public ESM package for headless browser automation and automated layout validation, enabling precise measurement of text rendering against browser ground truth. The codebase also includes a suite of interactive demos and diagnostic pages that showcase the engine's capabilities in complex layout scenarios.
51.2
Adequate · 3 August 2026
30k
lines of production code
TypeScript
primary language
1
bus factor · 7 authors in all
3
measurements over time
Survey your own repository
chenglou/pretext was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.
About this page
- The description of this project is derived from its own commit history, not from its README.
- The score is its highest published measurement, taken on 3 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit ac49b09b7d — the exact code this score is about.
- Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.