download-esm VS webappsec-subresource-integrity

Compare download-esm vs webappsec-subresource-integrity and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
download-esm webappsec-subresource-integrity
1 5
82 69
- -
5.1 0.0
9 months ago about 1 year ago
Python HTML
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

download-esm

Posts with mentions or reviews of download-esm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-03.
  • JavaScript import maps are now supported cross-browser
    14 projects | news.ycombinator.com | 3 May 2023
    This downloads the ESM version of Observable Plot from the jsDelivr CDN, figures out its dependencies, downloads them as well (40 files total!) and rewrites their imports to be local, not CDN paths.

    More details here: https://simonwillison.net/2023/May/2/download-esm/

    I'm not considering adding import maps support: https://github.com/simonw/download-esm/issues/4

webappsec-subresource-integrity

Posts with mentions or reviews of webappsec-subresource-integrity. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-03.
  • JavaScript import maps are now supported cross-browser
    14 projects | news.ycombinator.com | 3 May 2023
    Seeing this, it reminded me of an interesting topic: caching at browser-level the external libraries used for big performance improvements: https://github.com/w3c/webappsec-subresource-integrity/issue...
  • 📦 Everything you need to know: package managers
    9 projects | dev.to | 2 Nov 2022
    All package managers implement strict specifications on this approach to integrity. For example, npm respects the W3C's "Subresource Integrity or SRI" specification, which describes the mechanisms to be implemented to reduce the risk of malicious code injection. You can jump directly here to the specification document if you want to dig deeper.
  • Python 3.11 in the Web Browser
    9 projects | news.ycombinator.com | 26 Mar 2022
    One proposed solution is checksums on CDN provided javascript:

    https://w3c.github.io/webappsec-subresource-integrity/

  • How Cloudflare verifies the code WhatsApp Web serves to users
    2 projects | news.ycombinator.com | 10 Mar 2022
    It's great to hear that you want this added to browsers themselves, and you're right that browsers are more likely to implement such changes if you can show that users are deliberately installing an extension to add the missing functionality.

    There has been some discussion at the W3C about extending the SRI spec in this direction[0], but it seems they are reluctant to do that unless "multiple browser vendors" choose to implement something like this.[1] Hopefully the existence and adoption of this browser extension helps to solve that bootstrapping / Catch-22 problem.

    As for usability, would it be sufficient to just adopt a TOFU model, where the browser pins the first key it sees for a domain? To prevent the risk of permanently bricking a site (if the key gets lost, or the host gets temporarily compromised) you could politely warn the user that the key has changed, or just show a different colour icon representing that the code is correctly signed with an unknown key.

    [0] https://github.com/w3c/webappsec/issues/449

    [1] https://github.com/w3c/webappsec-subresource-integrity/issue...

  • “Outlook just asked me if I want to upgrade to bigger ads?”
    3 projects | news.ycombinator.com | 18 Feb 2022
    Including the hash is exactly what subresource integrity does (even in a CDN context, conveniently enough), but so far people haven’t figured out a sufficiently non-leaky design to use it for caching[1,2].

    [1] https://github.com/w3c/webappsec-subresource-integrity/issue...

    [2] https://hillbrad.github.io/sri-addressable-caching/sri-addre...

What are some alternatives?

When comparing download-esm and webappsec-subresource-integrity you can also consider the following projects:

compression-dictionary-transport

mma - MMA - Musical MIDI Accompaniment. This is a mirror of the original author's code drops.

esm.sh - A fast, smart, & global CDN for modern(es2015+) web development.

Roundcube - The Roundcube Webmail suite

lit - Lit is a simple library for building fast, lightweight web components.

simpatico - Simpatico is an umbrella term for several data-structures and algorithms written in JavaScript

ci - NodeSecure tool enabling secured continuous integration

esbuild - An extremely fast bundler for the web

quickjspp

proposal-type-annotations - ECMAScript proposal for type syntax that is erased - Stage 1

wasmtime - A fast and secure runtime for WebAssembly