https://github.com/bouassaba/revyv
Display Server for the Web
https://github.com/bouassaba/revyv
compositor display-server
Last synced: 10 months ago
JSON representation
Display Server for the Web
- Host: GitHub
- URL: https://github.com/bouassaba/revyv
- Owner: bouassaba
- License: mit
- Created: 2023-02-21T19:49:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T00:02:21.000Z (about 2 years ago)
- Last Synced: 2025-02-03T11:50:01.438Z (11 months ago)
- Topics: compositor, display-server
- Language: C++
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Revyv
Compositing display server and web browser client. The compositor uses OpenGL textures for window compositing, ZeroMQ for IPC and SDL for input handling. The web browser client is based on CEF (Chromium Embedded Framework).
**compositor**
Written in C++17, uses OpenGL for hardware accelerated rendering, Linux shared memory and ZeroMQ for inter-process communication, and SDL for mouse and keyboard event handling.
**librevyv**
Low-level C API used by client apps to communicate with `compositor`, it is implemented in C++ but it has a C ABI that makes it easier to port to other programming languages.
**webbrowser**
A web browser based on Chromium Embedded Framework (CEF), uses `librevyv` to communicate with `compositor`.
## Build
#### Ubuntu
_(Tested on Ubuntu 22.10 Kinetic Kudu)_
Install CMake:
```shell
sudo apt install cmake
```
Install dependencies:
```
sudo apt install libsdl2-dev libcairo-dev libzmq3-dev cppzmq-dev liblzo2-dev
```
#### openSUSE
_(Tested on openSUSE Leap 15.4)_
Install CMake:
```shell
sudo zypper install cmake
```
Install dependencies:
```
sudo zypper install SDL2-devel cairo-devel zeromq-devel cppzmq-devel lzo-devel
```
## Run
Run `compositor`:
```shell
./compositor
```
Add `librevyv` to `LD_LIBRARY_PATH`:
```shell
export LD_LIBRARY_PATH=/path/to/cmake/build/librevyv
```
Any client app can now be started, in this case we run `webbrowser`:
```shell
./webbrowser --frame="200,200,1000,600" --url="https://youtube.com"
./webbrowser --frame="600,400,1000,600" --url="https://dw.com"
./webbrowser --frame="400,50,1000,600" --url="https://www.waze.com/live-map"
./webbrowser --frame="800,100,1000,600" --url="https://google.com"
```
## Licensing
Revyv is released under the [The MIT License](./LICENSE).