colors by Marak Squires
Get colours in your Node.js console: wrap a string and it prints red, bold or underlined. Marak Squires published it on npm in March 2011, and for years it was one of the most-installed packages there.
Real, or AI slop?
The story
colors is a small npm package that adds colours and styles to text printed in a terminal: 'hello'.green prints hello in green. It was downloaded millions of times a week and used, often indirectly, by thousands of projects.
In January 2022 its maintainer, Marak Squires, published new versions that deliberately broke it. Instead of colourful text, programs printed the word “LIBERTY” and garbled characters in an endless loop. He also wiped out his other popular library, faker.js. He had earlier complained that big companies used his free work without supporting him.
Projects that installed the latest version broke overnight. The incident became a turning point in debates about who maintains open source, how they get paid, and why teams should pin their dependency versions.
Good to know
- Pinning dependencies (locking exact versions) protects projects from surprise updates like this.
faker.jswas forked and continued by the community as@faker-js/faker.- Many essential open-source packages are maintained by one unpaid person.
Background written with Claude (Opus 5.5) from public sources.