Audiobookshelf 2.38.0 — Store release candidate

Audiobookshelf organizes and streams your own audiobooks and podcasts, with real
accounts, libraries and listening progress. The original application UI, name,
artwork, GPL license and bundled notices are retained.

Runtime prerequisites and installation
Linux x86_64/glibc, Node.js 24 or newer, npm, ffmpeg and ffprobe are required.
Install from the release root with:
  npm ci --omit=dev --no-audit --no-fund
The Store's npm install --omit=dev --no-audit --no-fund also uses the retained
production lockfile. No runtime dependency has been added or replaced.
Installation needs public npm/GitHub access for packages and the sqlite3 5.1.7
native prebuild. If no compatible prebuild is available, sqlite3 needs Python,
make and a C/C++ compiler. This package installs no system packages and downloads
no ffmpeg binary. FFMPEG_PATH and FFPROBE_PATH may select existing executables.
Local library playback does not need internet after installation; metadata and
podcast providers do. No credentials or synthetic media are shipped.

Launch and readiness contract (for acceptance workers)
Entry: node launch.mjs (also npm start). Default public listener: 127.0.0.1:4434.
Installed prefix: /apps/audiobookshelf-clawbox/ (including the trailing slash).
PORT and CLAWBOX_PORT accept 0 (unique ephemeral port) or an unprivileged port.
An inherited value 3005 is ignored. If both remaining values are supplied they
must agree; conflicting values fail. Both variables are set to the actual public
port in the launcher. The backend binds its own ephemeral loopback port and sets
both variables to that port; no cached backend port is reused.

For isolated verification only, set both PORT=0 and CLAWBOX_PORT=0, and set
CLAWBOX_DATA_DIR to the absolute path of a synthetic directory outside the release.
The parent runner supplies that path; no owner library or default state is used.
Start the launcher as a child process. A single stdout line beginning STORE_READY
contains JSON: port, url, localURL, backendURL, dataDir, pid, backendPid, healthURL,
and storeBrowserLaunch="manual-local-handoff-desktop-integration-pending". Readiness means the real
backend answered GET <prefix>status with app="audiobookshelf", matching version,
and boolean isInit. GET <prefix>__clawbox/health returns {app,ready}, 200 when ready
or 503 during startup. This is process health, not proof of playback or Store UI.
CLAWBOX_STARTUP_TIMEOUT_MS defaults to 60000; accepted range 100..180000.
Backend exit or three failed health checks stop the whole app with nonzero exit.
SIGTERM/SIGINT close HTTP/WebSocket connections and stop the backend/transcoders;
the launcher allows ten seconds for shutdown before force termination.
If the launcher disappears, IPC disconnect also shuts down the backend.

Original routes: GET <prefix>status; POST <prefix>init with
{ "newRoot": { "username": "chosen-name", "password": "chosen-password" } };
authenticated /api/libraries, /api/libraries/:id/scan and /api/libraries/:id/items
are beneath the same prefix. Use the real setup screen to choose an administrator
and a nonempty password. No account is pre-created. Origin, authentication and
sandbox restrictions remain enabled. The initial document is a local-browser
handoff. The query __clawbox_local=1 serves the unchanged original UI; it grants
no authentication or API privilege.

Persistent state
State defaults to $XDG_DATA_HOME/audiobookshelf-clawbox or, if unset,
$HOME/.local/share/audiobookshelf-clawbox. CLAWBOX_DATA_DIR must be an absolute path
outside the replaceable package, including resolved symlinks. Config/database,
metadata and an optional library directory live there. Back up the whole state
directory and any separately selected media folders. Restart with the same state
and public port to retain accounts, media records, progress and browser origin.
The private backend port may change. Port 0 is for isolated acceptance, not a
stable browser bookmark. No state directory is stored in the release archive.

Store browser launch — local handoff; installed desktop gate remains open
The manifest opts into launch="window". The initial document shows a manual
self-targeted local link when the top-level document has opaque sandbox storage.
A normal local document can continue automatically. Embedded and remote views
show an explanation without a local launch action. The direct document uses the
original UI, authentication, cookies, WebSockets and security headers unchanged.
The local query flag only selects UI routing, not access rights. Starting pages
retry on a normal local origin. Foreign Host/Origin and wrong prefixes remain
rejected. No global sandbox or authentication policy is relaxed.
A reproduction using the real host APP_PROXY_CSP confirmed the previous release
stuck at Loading, then confirmed a manual self-click reaches original setup with
normal storage. This is a modeled host-policy check, NOT an actual updated-host
Store desktop click. Host launch-metadata deployment and that final installed
transition still remain required; this release cannot deploy the host.

Publisher-compatible packaging
Stage all intended release files, including new scripts, before packaging:
  git add clawbox.json package.json package-lock.json launch.mjs store-gateway.mjs scripts/clawbox dist-server client favicon.png corresponding-source.tar.gz README.txt
  node scripts/clawbox/package.mjs --output ../release/audiobookshelf.tar.gz
The output directory must be outside the package input; existing artifacts are
never overwritten. The CLI selects Git-listed working-tree files and excludes
any node_modules, .git, .next, dist, build, .clawbox, .env*, *.pem or *.key component.
It preserves dist-server and client/assets, rejects symlinks, unsafe archive paths,
local/absolute package dependencies and missing runtime/source files. Limits are
50 MiB gzip, 256 MiB uncompressed tar (including headers/padding), and 10000 files.
The ustar/gzip archive uses sorted paths, fixed timestamps/ownership and normalized
modes. The adjacent .json records SHA-256, sizes, file count and every file hash.
Unchanged input produces identical bytes. Keep archives, installation caches,
node_modules and synthetic state outside the package input. Package install does
not need the original worktree, corresponding-source extraction or any cache.

Corresponding source and notices
corresponding-source.tar.gz contains the reviewed upstream source based on commit
5de038dafda294d13ca48861eda7d4405bbd7368, original manifests/lockfiles, build recipes,
vendored library source/notices, current backend modifications, and release-overlay
with the exact shipping launch/packaging scripts and production manifests.
STORE-SOURCE.txt in the archive gives source build and release assembly commands.
To refresh after a runtime change, extract the previous archive into an isolated
source directory, then run from the release root:
  python3 scripts/clawbox/refresh-source.py --source ../isolated-source
This uses Python's standard library for source archiving only. Production and
publisher packaging use Node. Do not ship source build caches or dependencies.
The generated Nuxt bundle and vendored server libraries retain their original
notices; additional shipped component notices are in scripts/clawbox/NOTICES.txt.
Lockfiles pin unmodified npm build inputs; ffmpeg/ffprobe are external and are not
redistributed. Publish corresponding source with equivalent access beside every
binary package, and preserve all notices. Source build recipes are supplied;
byte-for-byte reproduction of the pre-existing Nuxt build is not claimed.

Icon provenance and parent handoff
favicon.png and client/assets/favicon.png are byte-identical copies of official
client/static/ios_icon.png at upstream commit above: 256x256, PNG, 8-bit RGBA.
SHA-256: ff08eeaa38b54bdb542817f86a2908f623c59aab3b127795d903ed61d73d98d6
Verified against https://raw.githubusercontent.com/advplyr/audiobookshelf/5de038dafda294d13ca48861eda7d4405bbd7368/client/static/ios_icon.png
Original trademarks remain upstream's; no endorsement is claimed. Parent must
publish the icon and package, deploy the supported shared launch integration,
and retest the exact Store-downloaded bytes. No upload, push, merge, desktop
registration, gateway change or real Store installation is performed by this task.
Independent tests/acceptance records belong to t2; integrated acceptance belongs
to t3. This README makes no claim that those pending gates have passed.
