Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fingerprintjs/cdn
CDN for FingerprintJS OSS projects
https://github.com/fingerprintjs/cdn
cdn cloudfront lambda lambda-edge
Last synced: about 2 months ago
JSON representation
CDN for FingerprintJS OSS projects
- Host: GitHub
- URL: https://github.com/fingerprintjs/cdn
- Owner: fingerprintjs
- License: mit
- Created: 2021-11-03T05:45:17.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T02:41:13.000Z (4 months ago)
- Last Synced: 2024-09-17T06:17:22.221Z (4 months ago)
- Topics: cdn, cloudfront, lambda, lambda-edge
- Language: TypeScript
- Homepage: https://openfpcdn.io
- Size: 396 KB
- Stars: 4
- Watchers: 17
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://npmjs.com), bundles them using [Rollup](https://rollupjs.org) and minifies using [Terser](https://terser.org).
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](src/projects.ts) file.
You can find example URLs on the pages of the projects.## Contributing
See the [contributing guidelines](contributing.md) to learn how to run and deploy the code and how to add new a project.