At its most basic level, yarn is a long, continuous length of interlocked fibers. Unlike sewing thread (which is designed for rigidity), yarn is prized for its elasticity, warmth, and texture. The magic of yarn lies in its twist, the spiral rotation applied to fibers to hold them together. Without twist, you just have a pile of loose fluff. With the right twist, you have the potential for sweaters, blankets, and even industrial ropes.
| Action | Yarn Classic | Yarn Berry (PnP) | npm v10 |
|-----------------------|--------------|------------------|---------|
| Fresh install (cold) | 38s | 12s | 41s |
| Subsequent install | 2.1s | 0.8s | 2.7s |
| node_modules size | 410 MB | 0 (virtual) | 395 MB |
| CI artifact time | 45s | 15s | 52s | At its most basic level, yarn is a
(Times on GitHub Actions, Ubuntu, Node 20) Without twist, you just have a pile of loose fluff
Technology is weaving new possibilities. We now have conductive yarn that can carry an electrical current (for heated gloves or wearables), glow-in-the-dark yarn, and even yarn extruded from mushroom roots (mycelium). 3D knitting machines can now produce an entire sweater with zero seams, reducing textile waste significantly. We now have conductive yarn that can carry