Skip to content

ViewportA Wayland compositor whose shell is a web page

Written in Rust with Smithay and viewport-vulkan. Wallpaper, bar, window frames, launcher, lock screen and settings panel — composited zero-copy alongside native Wayland and XWayland clients.

Viewport
Viewport running nested at 1600×1000 with btop and its web shell
Viewport running nested at 1600×1000 with btop and the reference web shell. Watch the 1080p demo (77s) →

Try it with Nix

Nests inside your existing compositor or takes DRM/KMS directly on a TTY. Press Mod4+Shift+e to quit.

nix run github:codebam/viewport

Install on NixOS

Enable the flake module and choose your shell engine (chromium, webkitgtk, cef, wpe, or servoshell).

programs.viewport = {
  enable = true;
  shellBackend = "chromium";
};

Drive via IPC

The viewport binary is also its own control-socket client for scripting and inspection.

viewport msg -t output.query --pretty
viewport msg -t subscribe view.focused

Compositor licensed under GPL-3.0-or-later · Protocol, shell, bridges and renderer licensed under MIT.