Westfield - Wayland HTML5 Browser IPC

Erik De Rijcke derijcke.erik at gmail.com
Wed May 10 21:20:35 UTC 2017


I had this lying around for some time but realized I never really announced
it on the ML, so here it is!

https://github.com/udevbe/westfield

So what is it?
Westfield is wayland protocol xml parser and generator for Javascript, much
like what libwayland is for C.
It's nearly fully compatible on the wire with the existing libwayland
implementation, with the exception of strings (no null terminator) and the
absence of file descriptors (for obvious reasons).
It utilize a websocket to do it's communication.

Supported bindings:
For now all client side code is generated in Javascript for Javascript
using NodeJS.
Server side generation is available for Java.
Support for C and other languages should be trivial, given the close wire
compatibility to libwayland. However core concepts like the build in object
'display' are not available.
Instead you get 'Connection' (root entry point) and 'Registry' (same usage
and functionality as libwayland).

Usages:
Using Westfield, a browser could run a wayland compositor implemented with
html5 webgl/canvas which receives it's buffer objects from a back-end
through WebRTC's datachannel/videochannel.


Cheers,

Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170510/c76214be/attachment.html>


More information about the wayland-devel mailing list