uWrap: A Blazing-Fast Text Wrapping Utility (<2KB)

2025-04-04
uWrap: A Blazing-Fast Text Wrapping Utility (<2KB)

uWrap is a 10x faster and more accurate text wrapping utility under 2KB (minified), MIT licensed. Designed for efficient row height prediction in list and grid virtualization, optimizing UI performance for large scrollable datasets. It cleverly overcomes Canvas2D's lack of text wrapping APIs and the performance limitations of measureText(). Benchmarks show it significantly outperforms canvas-hypertxt in both speed and accuracy. Currently supports Latin character sets, with more features planned.

Development text wrapping