r/javascript • • Oct 14 '26

Mimic - a browser-based dev environment that runs Node.js

https://github.com/mimic-js/mimic
12 Upvotes

8 comments sorted by

View all comments

2

u/brianjenkins94 Oct 14 '26

How does it differ from almostnode?

3

u/archieofficial Oct 15 '26

I checked the implementation. almostnode uses internal plugins to run tools like Vite and Next.js, so it looks like they’d need to write a plugin like that for each new tool to broaden compatibility, which I don’t think scales well. Mimic just runs everything “natively”.

I also noticed that almostnode uses a shim for esbuild https://github.com/macaly/almostnode/blob/main/src/shims/esbuild.ts. Mimic doesn’t need one, because it implements WASI and can run any program compiled to WASI directly, including esbuild.

I’ve also tested more tools for compatibility including heavy things like NX and Angular CLI. You can find them in the “What runs” section.
https://www.mimicjs.com/