LibResilient plugins.
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.
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.
basic-integrity
This plugin sets statically configured Subresource Integrity (SRI) hashes on requests performed by configured wrapped transport plugins.
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).
delay
This plugin wraps a plugin, and delays returning the response from it by configurable amount.
dnslink-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.
dnslink-ipfs
This transport plugin uses IPFS to fetch remote content using the IPFS CID retrieved via DNSLink for the original domain.
error
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.
gun-ipfs
This plugin uses GunDB as a source of information on current IPFS CIDs of content, and retrieves that content using JS IPFS.
integrity-check
This plugin implements Subresource Integrity (SRI) checking using the SubtleCrypto API.
ipns-ipfs
This is a stub of a plugin retrieving content using IPFS and IPNS.
redirect
This plugin redirects all requests, using a configured HTTP Status code and message, to URLs in a different domain.
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).
test-plugin
This is a plugin used for testing things out.