mojolicious / mojo.js

:unicorn: The Mojolicious real-time web framework for Node.js
https://mojojs.org
MIT License
485 stars 35 forks source link

Deno support for mojo.js #68

Open recrof opened 2 years ago

recrof commented 2 years ago

As both mojo.js and Deno are young projects that have great potential and are (imo) great match, would it be possible to port mojo.js to Deno ecosystem?

kraih commented 2 years ago

We would have to get rid of a few more dependencies, but yes, i think it is quite possible.

recrof commented 2 years ago

We would have to get rid of a few more dependencies, but yes, i think it is quite possible.

Deno includes some of the browser APIs that are not present on node.js, which could help remove few of the dependencies. As I'm from perl background and use mojo utils already(and I'm not mistaken that mojo.js also uses this) Mojo::DOM can use https://deno.land/x/deno_dom@v0.1.31-alpha/deno-dom-wasm.ts which is much closer to native DOMParser present in web browsers.

kraih commented 2 years ago

The DOM parser we already use probably works fine on Deno. HTTP and WebSocket bindings should be fairly easy too. And i'd like to have our own replacements for tough-cookie, form-data and busboy at some point anyway. Those three probably represent most of the real work required.

kraih commented 2 years ago

And now there is also Bun, which actually looks even better than Deno.

ralyodio commented 1 year ago

+1 for Bun. It looks awesome.

shah commented 1 year ago

Deno 1.28 now supports NPM modules natively so it's worth checking out if mojo.js will now work "out of the box".