styfle / awesome-desktop-js

🖥️ A list of awesome packages and frameworks for implementing javascript applications on the desktop
https://styfle.dev/projects/awesome-desktop-js
Other
810 stars 51 forks source link

node-webrender #12

Closed Darkle closed 5 years ago

Darkle commented 6 years ago

This might be one to keep an eye one: https://github.com/cztomsik/node-webrender

It's probably not ready enough to be added yet though. I found it via: https://news.ycombinator.com/item?id=18312983

styfle commented 6 years ago

Thanks, the hacker news comment sounds interesting. But there is no readme 🤷‍♂️

cztomsik commented 5 years ago

Hey, thanks for featuring this, there is readme now, and a few examples, hope you'll like it :)

styfle commented 5 years ago

This looks really good! Great readme!

Is this based on libui?

If not, it’s almost like it’s a new category when compared to other frameworks in this list.

Edit: I just read about WebRender and it looks like it’s specific to Firefox. Does your implementation rely on Firefox being installed or does it ship with WebRender?

cztomsik commented 5 years ago

It's webrender (gpu-based rasterizer from firefox quantuum)

there are no other dependencies except rust and those listed in readme

styfle commented 5 years ago

Sounds good. Does one of you want to make a PR?

eveningkid commented 5 years ago

@cztomsik I'm curious, how does it perform compared to Electron?

cztomsik commented 5 years ago

@eveningkid honestly, I don't know - this is still rather PoC than production-ready and performance is not a priority now but once it's ready it should be faster simply because it's not a web browser and so it can be much lighter and take many shortcuts.

For example, in HTML whitespace is significant and so every element has to support inline layout which also means word-wrapping, word-breaking, cascading all the measurements from parents, etc.

cztomsik commented 5 years ago

Hey, here's what possible now :) slack-app

It's still not production-ready but I'd say you could mention it now (with note that it's highly experimental and useful rather for prototyping)

styfle commented 5 years ago

@cztomsik Wow that gif is amazing!

So are both windows using node-webrender or is one the real Slack? Also, did you make any modifications or is it just running slack.com as-is?

cztomsik commented 5 years ago

Left one is original slack app (electron). So um, not so amazing I guess, but I'm still happy how much is already working :-)

BTW: windows support is around the corner, all what's needed is to support named pipes in rust part.

styfle commented 5 years ago

Wonderful! Keep up the good work! 💯 I went ahead and added node-webrender to this list.

cztomsik commented 5 years ago

Thanks :-)