Overview and package map
lys-lib is the part of the github.com/stubbedev/lys module that holds the building blocks that are not widgets. It has no binary; import each package on its own. It targets Linux.
go get github.com/stubbedev/lysThe Go version is the one in the root go.mod. Signatures are in the API reference.
Native libraries
Everything builds with CGO_ENABLED=0. These libraries are dlopened at run time through purego:
| Library | Loaded by | If missing |
|---|---|---|
libvulkan.so.1 | third_party/vk, for gpu | gpu.Open fails with ErrNoVulkan; draw on the CPU with render |
libva.so.2, libva-drm.so.2 | internal/va, for gpu.Encoder | Optional; the encoder needs the device's Vulkan video queue instead |
libpam.so.0, libc | pam | pam.Start and pam.CheckLibrary fail |
LYS_LIBVULKAN names another Vulkan loader, and a build can pin one (see vk).
Test helpers load libpipewire-0.3.so.0 (pipewire/pwtest) and libei.so.1 (eis/eistest) as reference clients. pipewire and eis link neither.
Package map
Rendering and GPU
| Package | Purpose |
|---|---|
render | 2D canvas and CPU rasterizer |
text | Word and grapheme motion, bidirectional runs |
gpu | Vulkan devices, GPU renderer, dmabuf export |
motion | Spring and cubic-bezier solvers |
drm, fourcc, edid | DRM ioctls, pixel formats and modifiers, EDID parsing |
dmabuf, dmabufwl, udmabuf, dmabufprobe | dmabuf descriptions, linux-dmabuf plumbing, memfd-backed allocation, modifier probing |
Wayland
| Package | Purpose |
|---|---|
capture | Screen, window and cursor capture |
vinput, keymapfd | Virtual pointer, keyboard and touch; reading a keymap fd |
xcursor | Xcursor files and themes |
xkb | The XKB keyboard model, plus xkb/registry and xkb/x11 |
wlr | Protocol bindings beyond the core and xdg-shell |
third_party/wayland | Core client library and scanner |
protocols | The Wayland protocol XML every lys binding is generated from |
Media
| Package | Purpose |
|---|---|
gpu.Encoder | H.264 and H.265 hardware encoding |
media/mux | Fragmented MP4 and Matroska muxing |
media/demux | MP4, Matroska/WebM, Ogg, FLAC and MP3 demuxing with seeking and cover art |
media/opus | Opus encoder and decoder (CELT, SILK, hybrid, multistream) |
media/aac | AAC-LC decoder |
media/vorbis | Vorbis decoder, Ogg files or packets |
media/flac | FLAC decoder |
media/mp3 | MP3 (MPEG-1, 2 and 2.5 Layer III) decoder |
audiomix | 16-bit PCM mixer |
v4l2 | Webcam capture |
System services
| Package | Purpose |
|---|---|
pipewire | ScreenCast video producer over PipeWire's native protocol |
eis | EIS server (the receiving end of libei) |
dbusx | D-Bus services, signal watches and the system-bus dial on patched godbus |
pulse/native | PulseAudio native-protocol client: introspection, control, subscriptions, record and playback streams, sample cache |
logind | systemd-logind client: sessions, power, inhibitors, devices, lock signals |
polkit | polkitd Authority client: typed subjects, authorization checks with cancellation, agent registration |
busauth | Who calls a system-bus service, by the pidfd the bus gives, and polkit's decision about them |
portaldialogs | The dev.stubbe.lys.PortalDialogs1 contract |
wmipc | The wire contract of lys-wm's IPC socket |
pam | libpam transactions |
userdb | systemd's user database over Varlink: users, groups and memberships from every source systemd-userdbd knows |
shacrypt | SHA-512 crypt(3) password hashes |
appearance, portalsettings | Desktop preferences as xdg-desktop-portal publishes them |
icons, icontheme | Freedesktop icon theme lookup and raster cache |
i18n | gettext catalogs in pure Go |
glibclocale | glibc's compiled locale data and strftime in pure Go |
vaultserver | A validated Bitwarden server address |
clib, intconv, atomicfile, assetfile, fileuri, xdg, peercred, procstat, debug, logutil, testbuild, wallclock | Shared helpers |
Test support
golden, gputest, wltest, pipewire/pwtest, eis/eistest, dbustest, pulse/pulsetest, logind/logindtest, polkit/polkittest, peercred/peercredtest, wallclock/wallclocktest, sockdir can be imported from any test.
Third party
third_party/ holds patched copies of godbus, Go's math, oksvg, rasterx, go-text/typesetting, x/image/vector, the Vulkan bindings and the Wayland client library.