Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.53 KB

readme.md

File metadata and controls

36 lines (27 loc) · 1.53 KB

Fingerprint logo

A CDN for the open source projects of Fingerprint. It works as a Lambda@Edge function attached to an AWS CloudFront distribution.

Under the hood, it downloads packages from NPM, bundles them using Rollup and minifies using Terser. All this happens within a second on Lambda@Edge when a request arrives. CloudFront caches the responses so that the next requests are served instantly.

API

An asset URL looks like this:

https://openfpcdn.io/project/v3/file.js
  • project is the project name. It matches the part after https://github.com/fingerprintjs/.
  • 3 is the project version. It can be either a major version (3), a minor version (3.2) or an exact version (3.2.1). When a major or minor version is used, the CDN returns the latest appropriate version.
  • file.js it the name of a file within the project version.

The available projects, versions and files are described in the src/projects.ts file. You can find example URLs on the pages of the projects.

Contributing

See the contributing guidelines to learn how to run and deploy the code and how to add new a project.