AIToolly product video
Pretext - Text measurement that never touches the DOM.
Pretext.jsは、ブラウザのDOMに一切触れることなくテキストの計測と配置を行う画期的なライブラリです。TypeScriptファーストで設計されており、算術計算のみでマルチラインテキストのサイズを算出。従来のgetBoundingClientRectに伴うリフローやレイアウトスラッシングを完全に排除し、仮想スクロールやAIチャット等のパフォーマンスが求められる環境で革新的な速度を実現します。
Transcript
Text measurement without touching the DOM.
Meet Pretext, built for complex, text-heavy interfaces.
It lays out 1,000 blocks for a clear performance demonstration.
Measure once, then lay out forever.
Pretext compares traditional DOM measurement with a Canvas-based approach.
It uses real font metrics and supports multilingual text by design.
With zero DOM reads, it targets performance-critical cases.
TypeScript-native, dependency-free, and built around reusable prepared handles.
Try Pretext today and explore what developers are building.


