12 ms·
I've just made very basic integration with node. It's rather PoC, but it works. It can currently show a window and render moving rect from vue.js template. The
by cztomsik 8y ago
I've just made very basic integration with node. It's rather PoC, but it works.
It can currently show a window and render moving rect from vue.js template. There's still a lot of work to be done, webrender does too little to be just drop in replacement for electron but it might be worth watching if you're interested in anything like that (lightweight cross-platform opengl-rendered gui apps developed in react/vue/angular/...)
https://github.com/cztomsik/node-webrender https://github.com/cztomsik/node-webrender
- Natela 8y agoThis is a nice experiment ! There are a few people starting to hack around with WebRender. There are already Limn, Azul, Stylish, etc...it would be nice if we joined forces in developing one good UI framework powered by WebRender.
- mitchtbaum 8y agohttps://github.com/christolliday/limn https://github.com/christolliday/limn https://github.com/maps4print/azul https://github.com/maps4print/azul https://github.com/Thinkofname/stylish https://github.com/Thinkofname/stylish Here's another: https://github.com/antoyo/servo-gtk https://github.com/antoyo/servo-gtk
- cztomsik 8y agoThanks for those links, azul is very interesting! This is my first rust project, so I'm not sure if I would be any help I also think it's better to have as much GUI part as possible in typescript, try-and-refine cycle is shorter and imagine how it could be with live/hot-reload What I'm trying to do is something like electron but lighter, faster and memory-savvy. I think it could use azul, so thanks a lot :-)
- Natela 8y agoI agree, I think Typescript is a very good pick for UI developpement, it's easy to use yet you still have types that help with maintainability. I would definitely be using something like this to develop apps :). However there are people who prefer other languages so it'd be nice if we could have a WebRender UI framework on which we could write bindings for any language, similarly to QT and GTK that have bindings for several languages.
- pcwalton 8y agoI really like these kinds of projects—lightweight UI frameworks on top of WebRender. Fantastic to see :)
- johnny22 8y agoI was imagining graphene would be something like an electron replacement
- singularity2001 8y agothe demo runs very choppy and the window is not closable here
- cztomsik 8y agoit's not animated at all actually, there's 100ms setInterval, which mutates the state and the vue then in turn sends a new frame https://github.com/cztomsik/node-webrender/blob/master/example/example.ts https://github.com/cztomsik/node-webrender/blob/master/examp...
- beatgammit 8y agoDoes it require JavaScript, or can you interact with WebRender from something lower-level, like C++ or Rust?