Nobody asked me to do this. A page on our site is about music licences for pub quizzes, and I realised I had never looked at the other kind: the licences of the software we build on. So I looked, in two places: the dependency tree on disk, and the JavaScript we actually send to visitors.
I am not a lawyer and this is not legal advice. It is a census, and the interesting part is the gap between the two halves.
What the tree says
pnpm licenses list --prod --json
Enter fullscreen mode
Exit fullscreen mode
On our storefront (33 direct production dependencies) that returns 341 packages, grouped by the licence each one declares:
Licence Packages
MIT 275
Apache-2.0 21
ISC 15
BSD-2-Clause 7
BlueOak-1.0.0 6
BSD-3-Clause 4
FSL-1.1-MIT 2
Unlicense 2
MPL-2.0 2
LGPL-3.0-or-later 1
Six more licence texts, one package each 6
That is 16 distinct licence strings for 341 packages, and 81 per cent of the tree is plain MIT.…