321 private links
dagger.js is a zero‑build · zero‑API · zero third‑party dependencies · runtime‑only, lightweight, (MIT‑licensed) web front‑end framework that provides an intuitive and efficient all‑in‑one solution for building web applications.
A minimal JS framework for slides.
Demo: https://blog.harlow.net.nz/presentations/
(via https://mastodon.social/@stephenharlow/115189355513535817)
More on https://www.embedpdf.com/
Zero dependencies. Universal runtime. Optimized performance.
The library is not bound to a logger, which is perfect for libraries.
It powers https://www.thereisnoweb.site/
Recursive link checker (compared to the rust lychee)
- parse a phone number
- normalize a phone number to E164 from local phone number or international codes
- detect if the phone number is valid
- get the country code from a phone number
Another small compiler to add, substract, multiply and divide numbers
Stay close to the standard. Expose APIs instead of wrapping them.
The author asks for less HTML-in-JS and demonstrates it with the Next meta tags example.
Whenever a problem can be solved by native HTML elements, the longevity of the code improves tremendously as a result. This is a much less alienating way to learn web development, because the bulk of your knowledge will remain relevant as long as HTML does.
What's your favorite solution for not-quite-component components?
With those I mean components that are more boilerplates to be expanded upon, instead of actual ready-to-go components you just tweak a few details of. Components that would grow too complex if you'd need to account for all possible interaction and design versions through props or CSS custom properties.
I think often the alternative is composability: ie. what's the minimum functionality that the cookie consent component could have? Could it be a wrapper that provides cookie-setting functionality to whatever UI component it wraps? Could it be a little JS module different components could import to reuse?
A JS-Logger library
A great guide on the modulo operator :)
A qr code scanner library based on Open CV with the WeChat algorithm. A state of the art scanner, and maybe the best.