Skip to content

andreasmhahn/browser-client

 
 

Repository files navigation

Saturn Browser Client

The Saturn Browser Client is a service worker that serves websites' CID requests with CAR files. CAR files are verifiable, which is a requirement when retrieving content in a trustless manner from community hosted Saturn Nodes.

Install

$ npm install

Development

$ npm run dev

Adding the Browser Client to your website

  1. Add this script tag to the <head> tag. This will install the service worker.
<script async src="https://saturn.tech/widget.js">
  1. Host the service worker file from the root path of your website's domain. For example, if your website is https://example.com, host the service worker file at https://example.com/saturn-sw.js.

    The service worker file can be found here: https://saturn.tech/saturn-sw.js

License

Dual-licensed under MIT + Apache 2.0

About

Integrates Filecoin Saturn CDN into a website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.4%
  • HTML 9.3%
  • Shell 7.3%