←back to thread

1208 points jamesberthoty | 6 comments | | HN request time: 0.215s | source | bottom
1. kace91 ◴[] No.45261497[source]
I think these kinds of attack would be strongly reduced if js had a strong standard library.

If it was provided, it would significantly trim dependency trees of all the small utility libraries.

Perhaps we need a common community effort to create a “distro” of curated and safe dependencies one can install safely, by analyzing the most popular packages and checking what’s common and small enough to be worth being included/forked.

replies(4): >>45267948 #>>45269564 #>>45270100 #>>45272304 #
2. elmo2you ◴[] No.45267948[source]
Ever seen XKCD #927? (https://xkcd.com/927)

Joking aside, I don't think there ever really was a lack of initiatives by entities (communities, companies, whatever) to create some sort of standard library (we typically tend to call them frameworks). There's just simply too much diversity, cultures and subcultures within the whole JavaScript sphere to ever get a global consensus on what that "standard" library then should look like. Not to mention the commercial entities with very real stakes in things they might not want to relinquish to some global unity consensus (as it may practically hurt their current bottom line).

3. collinmanderson ◴[] No.45269564[source]
> Perhaps we need a common community effort to create a “distro” of curated and safe dependencies one can install safely, by analyzing the most popular packages and checking what’s common and small enough to be worth being included/forked.

Debian is a common community effort to create a “distro” of curated and safe dependencies one can install safely.

If you want stable, tested versions of software, only getting new versions every few years:

https://packages.debian.org/stable/javascript/

If you want the newer versions of software, less tested, getting new versions continuously:

https://packages.debian.org/unstable/javascript/

4. carefulfungi ◴[] No.45270100[source]
https://jsr.io/@std
5. silverwind ◴[] No.45272304[source]
Node.js has been adding APIs that make it feasible to write stuff without dependencies, it's slowly getting there.
replies(1): >>45275980 #
6. pier25 ◴[] No.45275980[source]
What stuff?