A native, e-ink-first Android client for Audiobookshelf, built for the Mudita Kompakt.
This is a fresh client, not a fork of the Audiobookshelf web app. It speaks the Audiobookshelf REST API directly.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Requires JDK 17 and an Android SDK with platform 35.
echo "sdk.dir=/path/to/android-sdk" > local.properties
./gradlew :app:assembleDebugThe debug APK is signed with the standard debug key and can be sideloaded
directly. The release APK is unsigned; add a signingConfig before shipping it.
./gradlew :app:testDebugUnitTest # 114 unit tests over the pure logic| Gradle | 8.9 (wrapper; the system gradle is 9.x and will not work) |
| AGP | 8.7.3 |
| Kotlin | 2.0.20 |
| compileSdk / targetSdk / minSdk | 35 / 34 / 29 |
| Compose | UI 1.7.3, Material3 1.3.1 |
| Design system | com.mudita:MMD-android:1.0.2 |
Compose and Material3 are pinned to the exact versions MMD 1.0.2 was compiled against, to avoid drift.
Note on the MMD coordinate. Use
com.mudita:MMD-android, notcom.mudita:MMD. The latter is a 683-byte Kotlin Multiplatform stub that publishes no Android code;MMD-androidis the real 1.96 MB AAR.
The public Audiobookshelf API docs are stale. Everything below was verified
against the v2.37.0 source (server/controllers/LibraryController.js,
server/utils/queries/libraryItemsBookFilters.js, server/utils/queries/seriesFilters.js).
- Auth.
POST /loginmust sendX-Return-Tokens: true, otherwise the refresh token is only an httpOnly cookie that a native client discards, leaving you re-authenticating every two hours. Access tokens last 2h, refresh tokens 30d, and refresh isPOST /auth/refreshwith anX-Refresh-Tokenheader. - Rate limits. Auth is limited to 40 requests per 10 minutes per IP and successful attempts count towards it. Token refresh is therefore single-flight and retried at most once, never in a loop.
- Authors shape.
GET /api/libraries/:id/authorsreturns{authors: [...]}unless bothlimitandpageare present as numbers, in which case it returns{results, total, ...}. We always send both. minified=1is dead. The flag is parsed in four places and then read nowhere, so every list response is minified regardless. We send it anyway, which is harmless.- Filter values are ids.
filter=series.<base64(id)>andfilter=authors.<base64(id)>match onid, not display name. Thetags/genres/languages/publishersgroups match on name. sort=sequenceis series-only. The server ignores it unless the query is filtered byseries(libraryItemsBookFilters.js:404).- Item ids. A library item's top-level
idis thelibraryItemIdthat/api/items/:idexpects.media.idis the book id. Minified rows carry noaudioFilesand notracks; those appear only on the expanded item. - Direct play is
GET /api/items/:id/file/:fileid, where:fileidis the filesystem inode as a string. Coercing it to a number loses 64-bit precision and yields a 404.
GPL-3.0. MMD is Apache-2.0 and is used as a dependency.





