ipfs/ipfs-companion

Intercept URLs for JS libs at public CDNs

Open

#674 geöffnet am 31. Jan. 2019

Auf GitHub ansehen
 (4 Kommentare) (6 Reaktionen) (0 zugewiesene Personen)JavaScript (364 Forks)batch import
P3exp/intermediatehelp wantedkind/enhancementstatus/ready

Repository-Metriken

Stars
 (1.992 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 53T 3h) (1 gemergte PR in 30 T)

Beschreibung

Extracted from https://github.com/ipfs-shipyard/ipfs-companion/issues/570#issuecomment-421811923

Summary

Intercept URLs from public CDNs like unpkg.com and load them from IPFS.

Detection

Two ways:

  • Seamless: work with CDN operators to expose assets on IPFS paths /ipfs/<cid>/**/*.min.js
  • Grunt: identify the most popular assets across free CDNs, create a JSON mapping between filename/URL and CID and ship it with ipfs-companion as additional hint for creating redirects.

Additional Resources

Contributor Guide