Built a project showcase and interactive playground for the Pretext text measurement library
Pretext is a pure JS text measurement algorithm that went viral recently (17M+ views on X). I built pretextwall.xyz to collect community projects using it and to let people try it hands on.
The playground has three interactive React demos:
- Shrink wrap: binary search for the tightest text container width
- Obstacle flow: drag shapes around and watch text reflow in real time using Canvas
- Line inspector: visualize individual line positions and measurements
Built with TanStack Start and deployed on Cloudflare Workers. The tweet embeds use react-tweet.
Happy to answer any questions about the stack or the Pretext integration.
Posted Mar 30, 2026, 6:14 AM UTC
143