one of the ways that libreJS allows you to annotate your files with a license is by providing a magnet link to the license you want to use

however, it has to be one of the magnet links from a list that is hardcoded into libreJS

also the x11 license magnet link has zero peers, at least as far as i can tell for leaving it active for several hours

you're welcome to try loading it if you want to: magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt

i can only assume that they use magnet links because http links can go down but torrents are Truly Invincible

but if you're worried about the link going down (which it has) why not just provide a string like "X11" or the SPDX identifier or something, and then there isn't a link to go down in the first place

Show thread

@lynnesbian That's "fun". It looks like libreJS never got support for just using SPDX tags to note the license either.

@trini the other two ways to do it are incredibly cumbersome and involve including the full text of the license in a javascript file

one of the JS files on my website is less than 50 lines long, i really don't want to include an entire software license in that

@lynnesbian Pretty sure you can just add // SPDX-License-Identifier: X11 and get on with life. Not requiring anything more than "language supports comments" is one of the features of SPDX afterall.

@trini you can, but that won't work with the libreJS browser extension, which blocks all javascript from running unless it has the specific types of identifiers it's looking for

i know that barely anyone uses libreJS but it's the closest i can think of to a standard for JS source attribution

@lynnesbian lol so youd have to find a copy of the license elsewhere and seed it

@lynnesbian they could also be using ipfs identifiers that work better for this IMO and have good web gateways

@sneak that's what i was thinking actually, although i assume (?) this was either before IPFS was popular, or the FSF was just being weird and outdated as usual

Sign in to participate in the conversation
Lynnestodon's anti-chud pro-skub instance for funtimes