This is the code that runs behind cdnjs.cloudflare.com, implemented as a worker.
The cdnjs bot pushes the new files into a KV namespace that is bound to the worker.
CDNJS_FILES
: All ~7M cdnjs files in compressed forms.
While most are compressed with both gzip and brotli forms, some file types are left uncompressed like .woff2. The uncompressed file types can be found here with the compressed: false property.
Since Workers KV has a 25MiB limit, and not all files can be compressed to this limit (ex. some .png images here)—some files will not exist in KV and will be fetched from the origin in PDX.
This will eventually replace cdnjs/cdnjs.
Deployement and testing is managed by Cloudflare for now.
Each library hosted on cdnjs is released under its own license. This cdnjs repository is published under MIT license.