Hokku is my fork of Cosmoe, the BeOS/Haiku API as a C++ library for Linux (X11 and Wayland). Its focus is narrow: a stable Haiku API that Haiku and Renku OS apps can be built against, so they run on Linux as standalone programs (for example AppImages), behaving as close to Haiku as possible. A hokku is the opening verse of a linked poem, the verse the haiku grew out of.

VLC Reborn on Linux through Hokku, with the OpenGL video output
Why a fork? Cosmoe doesn't accept AI-assisted contributions, and Hokku's fixes are written with AI assistance. Each fix is reviewed and tested against real apps before it lands. Hokku follows upstream and merges its changes regularly, and the library names, headers and build are unchanged, so anything that builds against Cosmoe builds against Hokku. It's MIT licensed, as upstream is.
Some of the changes from Cosmoe:
- BGLView for OpenGL (same API as Haiku), rendered with EGL on X11 and Wayland, NVIDIA included
- watch_node(), node monitor messages and BNetworkRoute now work on Linux
- BRoster::Launch() opens files, folders and URLs with the desktop through xdg-open
- Drawing matches app_server more closely: pixel-exact lines and rects, B_OP_MIN/MAX, transparent CMAP8/RGB32 bitmaps, patterns, underline and strikeout, and font style selection
- Stability fixes: races on unlocked windows, a deadlock on very short clicks, a Wayland crash, and Wayland menu placement on multi-monitor setups
- Security: BNotification no longer passes text through a shell
- Smaller AppImages: -Denable_apps=false builds just the libraries
Apps already shipped on Linux with Hokku (all of them also run on Haiku and Renku OS): Sheath (a SWORD Bible reader), Folio, Gobe Productive, VLC Reborn, and LinShare (atomozero's HiShare). Each one shook out bugs that are now fixed in Hokku.
Repo: https://github.com/idumych/hokku
If you hit a problem with Hokku, please report it on the Hokku repo rather than to upstream Cosmoe, since the bug may be one Hokku introduced or has already fixed. Questions and ports are welcome!