pretext — Fast Multiline Text Measurement & Layout No DOM reflow. Pure arithmetic on cached font metrics. is a pure JavaScript/TypeScript library for fast, accurate, and comprehensive multiline text measurement and layout — without triggering , , or any other DOM reflow operations. Installation Plugin (Claude Code) npm Skill (any platform) When to use - Calculate paragraph heights and line counts without measuring in the DOM - Build manual line layouts for text flowing around floated images or variable-width containers - Handle rich text with emoji, CJK characters, RTL text, and mixed-languag…