roon-api: Client library for the Roon extension API

[ bsd3, library, network, program, sound ] [ Propose Tags ] [ Report a vulnerability ]

An independent, unofficial Haskell implementation of the protocol that Roon extensions use to talk to a Roon Server: MOO messages over a WebSocket, discovery of the servers on the network, the registration of an extension, the transport service (zones, queue, playback, volume), the browse service (search, library, play actions) and images. Built on Effectful and Streamly. Not affiliated with Roon Labs.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies aeson (>=2.3 && <2.4), base (>=4.19 && <4.22), bytestring (>=0.12 && <0.13), containers (>=0.6.7 && <0.8), effectful (>=2.7 && <2.8), effectful-core (>=2.7.1 && <2.8), effectful-streamly (>=0.1 && <0.2), effectful-streamly-http (>=0.1 && <0.2), effectful-websockets (>=0.1 && <0.2), filepath (>=1.4.200 && <1.6), flatparse (>=0.5 && <0.6), network (>=3.2 && <3.3), roon-api, streamly-bytestring (>=0.2.3 && <0.3), streamly-core (>=0.3.3 && <0.4), streamly-network-udp (>=0.1 && <0.2), text (>=2.1 && <2.2) [details]
Tested with ghc ==9.8.4 || ==9.10.3 || ==9.12.4
License BSD-3-Clause
Author Xavier Dectot
Maintainer Xavier Dectot <xavier@wheredoibegin.fr>
Uploaded by GdeVolpiano at 2026-11-28T14:15:24Z
Category Sound, Network
Home page https://github.com/GuillaumedeVolpiano/roon-api
Source repo head: git clone https://github.com/GuillaumedeVolpiano/roon-api.git
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables roon-probe
Downloads 4 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for roon-api-0.1.0.0

[back to package description]

roon-api

A Haskell client library for the Roon extension API, built on Effectful and Streamly.

This is an independent, unofficial implementation. It is not affiliated with or endorsed by Roon Labs. The protocol was learnt from the public reference implementation, node-roon-api; no code was taken from it.

Status

  • MOO message encoding and parsing
  • WebSocket transport with keep-alive
  • Extension registration and token persistence
  • Server discovery (SOOD)
  • Transport service (zones, queue, playback control)
  • Browse service (search, library navigation, play actions)
  • Images (over HTTP)

Building

cabal build all
cabal test

To build against copies of the libraries this package is built on (effectful-streamly, effectful-streamly-http, effectful-websockets, streamly-network-udp and those under them) checked out next to this repository, pass --project-file=cabal.project.siblings.

Trying it against a server

cabal run roon-probe -- [HOST [PORT]]

roon-probe connects to a Roon Server (by default 127.0.0.1, port 9330), registers as an extension, prints what the server answers and lists the zones. The first time, it waits until you enable "roon-api probe" in Roon, under Settings, Extensions. The token the server hands out is kept in $XDG_STATE_HOME/roon-api/. With ROON_TRACE=1, it describes every frame sent and received on stderr. roon-probe discover lists the Roon Servers that answer on the local network. roon-probe browse HIERARCHY [TITLE...] walks the library by the titles of its items and prints the level reached, without playing anything. roon-probe image KEY FILE [HOST [PORT]] writes the image of an image key (as found in the traced frames) to a file.

Tested with GHC 9.8.4, 9.10.3 and 9.12.4, and against Roon Server 2.75.

License

BSD-3-Clause. See LICENSE.