resilient.is/docs

Plugins

LibResilient plugins.

Plugin: alt-fetch

This transport plugin uses standard fetch() to retrieve remote content from alternative endpoints — that is, HTTPS endpoints that are not in the original domain.

Plugin: any-of

The any-of composing plugin runs all plugins configured in its uses: configuration field simultaneously (using Promise.any()), and returns the firs successful response it receives.

Plugin: basic-integrity

This plugin sets statically configured Subresource Integrity (SRI) hashes on requests performed by configured wrapped transport plugins.

Plugin: cache

The cache plugin uses the Cache API to save content in visitor’s browser for later use (when offline or when the website is down for whatever reason, for instance).

Plugin: delay

  • status: beta
  • type: wrapping

This plugin wraps a plugin, and delays returning the response from it by configurable amount.

This transport plugin uses standard fetch() to retrieve remote content from alternative endpoints — that is, HTTPS endpoints that are not in the original domain.

This transport plugin uses IPFS to fetch remote content using the IPFS CID retrieved via DNSLink for the original domain.

Plugin: error

  • status: alpha
  • type: debugging plugin, used during development and testing

Plugin: fetch

This transport plugin uses standard fetch() to retrieve remote content from the original domain — which is exactly what would have happened normally if LibResilient was not deployed on a website.

Plugin: gun-ipfs

This plugin uses GunDB as a source of information on current IPFS CIDs of content, and retrieves that content using JS IPFS.

Plugin: integrity-check

This plugin implements Subresource Integrity (SRI) checking using the SubtleCrypto API.

Plugin: ipns-ipfs

This is a stub of a plugin retrieving content using IPFS and IPNS.

Plugin: redirect

This plugin redirects all requests, using a configured HTTP Status code and message, to URLs in a different domain.

Plugin: signed-integrity

The signed-integrity plugin provides a way to retrieve authenticated integrity data for content fetched from untrusted sources (alternative endpoints, open proxies, etc).

Plugin: test-plugin

  • status: permanently unstable
  • type: whatever is needed

This is a plugin used for testing things out.