To používate Wesfield?
Westfield: Wayland For HTML5/JavaScript
11 May 2017
Westfield is a new independent project that provides a Wayland protocol XML parser and generator for JavaScript.
Developer Erik De Rijcke announced Westfield as a "nearly fully compatible on the wire with the existing libwayland implementation", but libwayland is for C while Westfield is for JavaScript on client-side and Java server-side. Communication with Westfield is done using WebSockets.
In terms of the intended usage of Westfield, "a browser could run a wayland compositor implemented with html5 webgl/canvas...
https://www.phoronix.com/scan.php?page=news_item&px=Wayland-Westfield