uWrap.js – A faster and more accurate text wrapping util in < 2KB
A 10x faster and more accurate text wrapping util in < 2KB (min) - leeoniya/uWrap
uWrap.js – A faster and more accurate text wrapping util in < 2KB launched on April 4, 2025 with 121 votes, #387 of 7,818 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
uWrap.js is a text wrapping utility designed for developers who need efficient word-wrapping functionality in their applications. It offers faster performance and greater accuracy than comparable solutions while maintaining a compact footprint of less than 2KB. The tool is available on GitHub, making it accessible for integration into web and JavaScript projects where precise text formatting is required.
written from the facts on this page · September 2026
From the sources
uWrap exists to efficiently predict varying row heights for list and grid virtualization , a technique for UI performance optimization when rendering large, scrollable datasets. Doing this both quickly and accurately turns out to be a non-trivial task since Canvas2D provides no API for text wrapping, and measureText() is quite expensive; measuring via DOM is also a non-starter due to poor performance. Additionally, font size, variable-width kerning , letter-spacing , explicit line breaks, and different white-space choices affect the wrapping locations. uWrap outperforms canvas-hypertxt by a wide margin in both CPU and memory usage while being significantly more accurate. The benchmark below…from github.com
Does a similar job
all alternatives →
uFuzzy.js – A tiny, efficient fuzzy search that doesn't suck2022 · github.com · ▲251Hello HN! I became frustrated with the unpredictible/poor match quality and opaqueness of "relevance scores" in existing fuzzy and fulltext search libs, so I tried something different and this is the result. The main selling point is the result quality / ordering, with best-in-class memory overhead and excellent performance being bonuses. The API is pretty stable at this point, but looking for feedback before committing to 1.0. TL;DR The test corpus is a 4MB json file with 162k words/phrases, so give it a second for initial download. You can also drag/drop your own…

1kb JavaScript library for building front end applications2017 · github.com · ▲1871kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp
Fast.js – faster reimplementations of native JavaScript functions2014 · github.com · ▲323Faster user-land reimplementations for several common builtin native JavaScript functions. - codemix/fast.js
1 KB JavaScript library for building front end apps2017 · github.com · ▲2421kB-ish JavaScript framework for building hypertext applications - hyperapp/hyperapp

More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 3d ago · permit.petercai.com
- IV
Life & fun · 15d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 16d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 10d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 14d ago · carrierexplode.com

Life & fun · 24d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, April 2025
the whole month →
Hi everyone, I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution. I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz). The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.…
Dev tools · 2025 · runpyxl.com

The Unsure Calculator is an online tool that lets you calculate with numbers you’re not sure about.
Life & fun · 2025 · filiph.github.io

https://the-pocket.github.io/Tutorial-Codebase-Knowledge/
AI · 2025 · github.com


