Usage

Path layout, caching and the few rules there are.

Path layout

https://static-assets-eu.lol/npm/<package>/<version>/<file>

Versions are exact. There is no latest alias on purpose, silent upgrades break things.

Pinning an edge

The apex answers from whichever edge is closest. During a benchmark you may want a fixed one:

https://cdn-a3f81.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js
https://cdn-b7d24.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js
https://cdn-c5e96.static-assets-eu.lol/npm/htmx/1.9.12/htmx.min.js

Edge names change when hardware is replaced. Do not hardcode them in production.

Caching

Rules

Requesting a package

Send the package name, the version and the license. Small, stable, permissively licensed libraries get added, everything else is declined without much discussion.