es-module-shims VS vanilla-teuxdeux

Compare es-module-shims vs vanilla-teuxdeux and see what are their differences.

es-module-shims

Shims for new ES modules features on top of the basic modules support in browsers (by guybedford)

vanilla-teuxdeux

A case study to implement modern js app with vanilla web technologies (by ivank)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
es-module-shims vanilla-teuxdeux
13 5
1,481 25
- -
6.5 0.0
9 days ago over 3 years ago
JavaScript JavaScript
MIT License 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.

es-module-shims

Posts with mentions or reviews of es-module-shims. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-11.
  • ⏰ It’s time to talk about Import Map, Micro Frontend, and Nx Monorepo
    9 projects | dev.to | 11 Mar 2024
    For full compatibility and extra features, we usually use the library es-module-shims.
  • JavaScript import maps are now supported cross-browser
    1 project | /r/javascript | 1 May 2023
    You can polyfill for unsupported browsers, it works surprisingly well: https://github.com/guybedford/es-module-shims
  • Modern SPAs without bundlers, CDNs, or Node.js
    8 projects | news.ycombinator.com | 16 Feb 2023
    https://github.com/guybedford/es-module-shims has a polyfill. (But it is fairly large: 53KB raw, 15KB gzipped, 32KB minified, 11KB minified+gzipped. It’s providing a lot of likely-unnecessary functionality. I’d prefer a stripped-down polyfill that can also be lazily-loaded, controlled by a snippet of at most a few hundred bytes that you can drop into the document, only loading the polyfill in the uncommon case that it’s needed—like how five years ago as part of modernising some of the code of Fastmail’s webmail, I had it fetch and execute core-js before loading the rest iff !Object.values (choosing that as a convenient baseline), so that the cost to new browsers of supporting old browsers was a single trivial branch, and maybe fifty bytes in added payload.)
  • Writing JavaScript without a build system
    13 projects | news.ycombinator.com | 16 Feb 2023
  • Modern SPAs without bundlers, CDNs, or NodeJS
    2 projects | /r/webdev | 13 Feb 2023
    If we call the shim a framework, would you be ok with it then?
  • Import maps 101
    3 projects | dev.to | 10 Jan 2023
    If you want import maps to be supported in any browser, there is an ES Module Shims polyfill which is compatible with any browser that has baseline ES Module Support (i.e. Edge 17+, Firefox 60+, Safari 10.1+, and Chrome 61+).
  • Everything You Need to Know About JavaScript Import Maps
    4 projects | dev.to | 5 Oct 2022
    An example of a polyfill that can be used is the ES Module Shims polyfill that adds support for import maps and other new module features to any browser with baseline support for ES modules (about 94% of browsers). All you need to do is include the es-module-shim script in your HTML file before your import map script:
  • How bad is it to not use a bundler?
    2 projects | /r/webdev | 23 Aug 2022
    i often use es-module-shims so i can load npm packages in browsers without a bundler 😎
  • Fresh – The next-gen web framework
    21 projects | news.ycombinator.com | 12 Jun 2022
    I explored using client-side service workers for build-less deployment workflows a while back, but the blocker was the initial visit when the service worker hasn't been installed yet. Ended up using es-module-shim's fetch hook (https://github.com/guybedford/es-module-shims#fetch-hook) instead, which worked quite well.

    I kept the demo repo around here, in case it's helpful to anyone: https://github.com/lewisl9029/buildless-hot-reload-demo.

    The repo itself is quite out of date at this point, but my current project, Reflame, is essentially the spiritual successor: https://reflame.app/

    Reflame has the same ideals of achieving the developer experience I've always wanted for building client rendered React apps:

    - instant production deployments (usually <200ms)

    - instant preview environments that match production in pretty much every imaginable way (including the URL), that can also be flipped into development mode for fast-refresh (for the seamless feedback loop we're used to in local dev) and dev-mode dependencies (for better error messaging, etc)

    - close-to-instant browser tests (1-3 seconds) that enable image snapshot comparisons that run with maximum parallelism and only rerun when their dependency graphs change

  • Do you use Import-Map for your client-side ESM?
    3 projects | /r/JSdev | 14 Jan 2022
    The problem of course is that browser-support for Import Maps is sadly lacking (only Chrome/Chromium-based at time of writing). There are tricks/shims to get around this, like ES-Module-Shims. I find these approaches to be a little too intrusive, personally.

vanilla-teuxdeux

Posts with mentions or reviews of vanilla-teuxdeux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-20.
  • Show HN: 7GUIs in Vanilla HTML, CSS, JavaScript
    7 projects | news.ycombinator.com | 20 Sep 2021
    A few years back I stumbled into something a bit more complex, still done in pure js, just for the hell of it: https://github.com/morris/vanilla-todo

    And then wrote my own version, with code a lot closer to modern react, with undo/redo and other niceties - https://github.com/ivank/vanilla-teuxdeux

    And what I leaned is that is astonishingly easy to write code that would be understandable to people coming from the redux crowd. Maybe that’s because redux is just such a simple concept in and off itself - a glorified switch on a big object. And it’s also quite easy to hack a simple version of vdom to make it all work.

    What’s missing from all those vanilla js efforts though turned out to be testability. There is a ton of code in the modern js world just to allow you to mock/test your components, and thats for me the real tragedy of vanilla js.

    I have no idea why W3C crowd have not invested into standardizing js tests in all these years…

  • React's UI State Model vs. Vanilla JavaScript
    5 projects | news.ycombinator.com | 17 Jul 2021
    Kinda like restarting windows to fix it, rather than figuring out whats wrong.

    And you could get quite far that way. 37signal’s basecamp was like that - an html app with vanilla js sprinkled throughout. Worked great.

    But there is a limit in complexity. JS and html are great for building websites, but if you want to build an actual application, you need to be really clever and accept a lot of limitations. React just lifts the ceiling of what you can do, without being all to complicated.

    And you can use the technics of react without react itself too, once you understand what it is all about - https://github.com/ivank/vanilla-teuxdeux

  • Astro: Ship Less JavaScript
    4 projects | news.ycombinator.com | 8 Jun 2021
    Recently I went on a deep dive to test for myself if it’s even possible to write a modern looking web application with no build tools or dependencies, and turns out its very doable - https://github.com/ivank/vanilla-teuxdeux

    Web tech has gone a long way and gives us a ton of stuff for free, without the need to reimplement it all in JS. Though the apis themselves are often rather awkward.

    Sadly, the biggest missing piece in all of it though is testing.

  • Show HN: Skruv – No-dependency, no-build, small JavaScript framework
    10 projects | news.ycombinator.com | 7 Apr 2021
    Hah last year I did my case study of building an app with only web tech - no dependencies, build steps etc. - https://github.com/ivank/vanilla-teuxdeux

    Figured out virtual dom is the one big missing piece to make webdev workable without any dependencies at all.

    I can see other people are getting to similar conclusions:)

  • Vanilla TeuxDeux – a case study for building an SPA with vanilla JavaScript
    1 project | news.ycombinator.com | 16 Feb 2021

What are some alternatives?

When comparing es-module-shims and vanilla-teuxdeux you can also consider the following projects:

import-maps - How to control the behavior of JavaScript imports

petite-vue - 6kb subset of Vue optimized for progressive enhancement

hyperscript - Create HyperText with JavaScript.

reagent - A minimalistic ClojureScript interface to React.js

Rust Language Server - Repository for the Rust Language Server (aka RLS)

htmx - </> htmx - high power tools for HTML

stampino-element

mvc_for_the_web - Example programs explaining the techniques of Model-View-Controller implemented as web applications.

import-remap - Rewrite ES module import specifiers using an import-map.

vanilla-todo - A case study on viable techniques for vanilla web development.

mercury - A truly modular frontend framework

7guis-React-TypeScript-MobX - Implementation of 7GUIs with React, TypeScript and MobX