| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is the code that powers metadata.speedcdnjs.com. It's an internal API that is NOT meant to be used directly. See API instead.
The API is implemented as a Cloudflare Worker and uses several KV namespaces that are populated from the cdnjs bot.
As listed in the wrangler.toml:
Each entry contains top-level metadata such as package name, author, description, how to autoupdate (from npm or git), etc.
This metadata is the same as the files in cdnjs/packages, except it contains a few additional properties such as the latest version.
Each entry contains the list of uncompressed file names for that particular version. This list includes the any autogenerated files by the bot, such as minified JavaScript (.min.js) and CSS (.min.css).
To avoid the KV value limit, each value is compressed with gzip.
Each SRI is a sha512 hash of each file's uncompressed content, and it is stored in the KV metadata associated with each entry. There is no KV value.
By listing this namespace by prefix, we can easily fetch the SRIs in bulks of 1000.
This will eventually replace cdnjs/SRIs.
Deployment 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.
| Back | FazBrowse Home | New Git URL |