Node.js now available in Haiku | Haiku Project

This is fabulous news! Yay!

Has there been any work on bindings so we can create UIs from Node? I believe someone was working on it?

Edit - ignore me - it’s already discussed in the blog post!

1 Like

Great!

Can you port https://insomnia.rest/ ?

No, you’d need to port Electron, which means you’d need to port Chromium as well. That’s a very, very big undertaking.

This is awesome work!! Thank you and your team!!

Cool, we can now have as much bloat as everyone else \o/

Seriously though, thanks much, one less on my own TODO list :wink:

I believe NodeJS is a Firefox build time dependency these days… so I guess that’s one thing off that laundry list of issues before Firefox for Haiku happens. Congrats on reaching this milestone!

1 Like

Node is backed by V8. I believe Firefox has its own Javascript engine.

Nevertheless… it is a Firefox build dependency, a hard requirement at this point. Not not a runtime dependency.

I believe they use it for some sort of instrumentation of the build… as well as using to to wrangle web stuff the ship with firefox. https://mail.mozilla.org/pipermail/firefox-dev/2018-August/006716.html

1 Like

I see! That doesn’t make much sense to me - why would you need a competing product to build your own one…?

I’m pretty sure Mozilla doesn’t see it that way… they just accept Node.js as part of the ecosystem and moved on with using it…

Congrat and thanks to every one involved. I think this means that some can actually use Haiku @work to put food on the table.

3 Likes

Great work… very usable…

Where do we report bugs? Create React App doesn’t work.

Please report all nodejs bugs and issues to HaikuPorts: https://github.com/haikuports/haikuports/issues

1 Like

I will add it.

Edit: added https://github.com/haikuports/haikuports/issues/4196

Did we ever get the bindings for the UI released?

I haven’t had the time to fully clean it up yet, so there will be some issues when compiling them (just minor issues but they will be fixed). I’ve added documentation for the bindings but I’ll continue to clean it up on GitHub as soon as I release it shortly.

1 Like

Great, thank you.

The bindings have now been released here: https://github.com/return/haiku-api-js

6 Likes

just for test purpose, i make a server… but the response in the browser never ends. Anyway the request are listen by node becose hes write in the console… work still needed in node or im doing some thing wrong?

screenshot1