A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cdnjs/api-worker below:

cdnjs/api-worker: The edge worker that provides KV metadata to the cdnjs API

The #1 free and open source CDN built to make life easier for developers.

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4