Skip to content

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.

sh
go get github.com/stubbedev/lys

The 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:

LibraryLoaded byIf missing
libvulkan.so.1third_party/vk, for gpugpu.Open fails with ErrNoVulkan; draw on the CPU with render
libva.so.2, libva-drm.so.2internal/va, for gpu.EncoderOptional; the encoder needs the device's Vulkan video queue instead
libpam.so.0, libcpampam.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 ​

PackagePurpose
render2D canvas and CPU rasterizer
textWord and grapheme motion, bidirectional runs
gpuVulkan devices, GPU renderer, dmabuf export
motionSpring and cubic-bezier solvers
drm, fourcc, edidDRM ioctls, pixel formats and modifiers, EDID parsing
dmabuf, dmabufwl, udmabuf, dmabufprobedmabuf descriptions, linux-dmabuf plumbing, memfd-backed allocation, modifier probing

Wayland ​

PackagePurpose
captureScreen, window and cursor capture
vinput, keymapfdVirtual pointer, keyboard and touch; reading a keymap fd
xcursorXcursor files and themes
xkbThe XKB keyboard model, plus xkb/registry and xkb/x11
wlrProtocol bindings beyond the core and xdg-shell
third_party/waylandCore client library and scanner
protocolsThe Wayland protocol XML every lys binding is generated from

Media ​

PackagePurpose
gpu.EncoderH.264 and H.265 hardware encoding
media/muxFragmented MP4 and Matroska muxing
media/demuxMP4, Matroska/WebM, Ogg, FLAC and MP3 demuxing with seeking and cover art
media/opusOpus encoder and decoder (CELT, SILK, hybrid, multistream)
media/aacAAC-LC decoder
media/vorbisVorbis decoder, Ogg files or packets
media/flacFLAC decoder
media/mp3MP3 (MPEG-1, 2 and 2.5 Layer III) decoder
audiomix16-bit PCM mixer
v4l2Webcam capture

System services ​

PackagePurpose
pipewireScreenCast video producer over PipeWire's native protocol
eisEIS server (the receiving end of libei)
dbusxD-Bus services, signal watches and the system-bus dial on patched godbus
pulse/nativePulseAudio native-protocol client: introspection, control, subscriptions, record and playback streams, sample cache
logindsystemd-logind client: sessions, power, inhibitors, devices, lock signals
polkitpolkitd Authority client: typed subjects, authorization checks with cancellation, agent registration
busauthWho calls a system-bus service, by the pidfd the bus gives, and polkit's decision about them
portaldialogsThe dev.stubbe.lys.PortalDialogs1 contract
wmipcThe wire contract of lys-wm's IPC socket
pamlibpam transactions
userdbsystemd's user database over Varlink: users, groups and memberships from every source systemd-userdbd knows
shacryptSHA-512 crypt(3) password hashes
appearance, portalsettingsDesktop preferences as xdg-desktop-portal publishes them
icons, iconthemeFreedesktop icon theme lookup and raster cache
i18ngettext catalogs in pure Go
glibclocaleglibc's compiled locale data and strftime in pure Go
vaultserverA validated Bitwarden server address
clib, intconv, atomicfile, assetfile, fileuri, xdg, peercred, procstat, debug, logutil, testbuild, wallclockShared 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.

Released under the MIT License.