HUB
Sign inSign up

funland/foliospace-library

By funland

•Updated 3 days ago

Self-hosted personal library for books, comics, games, videos, and APIs.

Image
Web servers
Content management system
2

10K+

funland/foliospace-library repository overview

⁠FolioSpace Library

FolioSpace Library is an optional self-hosted catalog for your own books, comics, PDFs, games and movies. It runs with Docker/Compose on a Mac, Windows or Linux computer, or a compatible NAS. A NAS is not required, and you do not need to write code. You do need Docker, persistent storage, media folders, a service URL and an access token.

Library connects FolioSpace Reader⁠, FolioLume Player⁠ and SpatialEMU⁠. Each client can also use supported local files or sources independently. Other clients are welcome through the Client API⁠.

This is not a hosted cloud service, a native macOS server app or a third-party media catalog. No books, movies, ROMs, BIOS or firmware are bundled or supplied. Only index files you have the right to use. Book/game/video DTOs omit source paths; legacy collection and administration responses can still carry directory paths.

⁠1.12.1 — Fullscreen EPUB

The web EPUB reader uses the available fullscreen reading area in single-page and spread layouts. 1.12.1 release notes⁠

⁠1.12: fullscreen comics

The web comic reader scales paged comics to fit the fullscreen reading area, preserving proportions and keeping every page visible. 1.12 release notes⁠

⁠1.11: library workflows for agents

Library 1.11 supplies three new Client API capabilities for standalone MCP 1.04:

  • catalogSearchV1: SQL-backed book listing and cross-media search, plus paged comic navigation.
  • storedDiagnosticsV1: read stored book/game diagnostics without opening media or starting repairs.
  • videoMetadataWorkflowV1: search single-video TMDB candidates, preview changes, and apply only after explicit confirmation with a valid receipt.

MCP 1.04 adds nine tools for a total of 71 and preserves the previous 62 tools. Official Library 1.10 does not supply these new APIs; upgrade both packages and check /api/client/info capabilities. Search creates provider jobs; preview creates an in-memory receipt; confirmed application writes shared metadata. See the 1.11 release notes⁠ and workflow contract⁠.

⁠Previous release 1.10: clearer libraries and more reliable reading

  • Switch between ebooks and comics, filter EPUB/PDF, and browse nested comic collections without duplicate parent/child listings.
  • Import Calibre titles, authors and covers; clean generated book/comic/video labels while preserving manual corrections.
  • Move library administration into settings, use consistent video titles across home surfaces, and keep finished books out of Continue Reading.
  • Restore EPUB arrow-key navigation, improve two-column width and progress restoration, and correct chapter labels, character images and footnote links.
  • Preserve item identities, progress, favorites and manual metadata during rescans, collection ownership reconciliation and game analysis. Mixed libraries no longer trigger the legacy game analyzer accidentally.
  • Label confirmed empty, zero-filled or structurally damaged book files; hide them from Recently Added while retaining the record, error reason and original path. Repaired files can recover without losing error history.

The server primarily indexes and delivers original files; dedicated clients decode them. Existing optional HLS is retained, not replaced by new always-on whole-library transcoding. Features require capability discovery and a compatible client build; this server release does not imply an App Store update or completed four-platform device acceptance.

All previous reading and game features remain included: EPUB/PDF/comic reading, progress and profiles, CIA installation delivery, MAME/FBNeo compatibility, PC-98 per-game fonts, Triforce routing, launch manifests and resumable Range downloads. See the full 1.10 release notes⁠ and version history⁠. Old release-specific policies are historical, not replacements for the current contract.

⁠Quick Start

Use the Compose quick start⁠ for configurable media folders and resource limits. The default web/API port is 8080.

For a minimal new installation, replace the example host paths below with your own existing directories. Keep the config directory writable and media read-only:

docker pull funland/foliospace-library:1.12.1
docker run -d --name foliospace-library --restart unless-stopped \
  -p 8080:8080 \
  -v /absolute/path/to/config:/config \
  -v /absolute/path/to/media:/library:ro \
  funland/foliospace-library:1.12.1

Open http://localhost:8080 on the Docker host, or http://<host-address>:8080 from another device. Complete first-run setup to create your access token and select the mounted container path /library. In a compatible client, enter that service URL and the same token, then test the connection.

The SpatialEMU Mac app is a client, not this Docker server. Beginner guide⁠ · 简体中文⁠ · SpatialEMU connection guide⁠.

⁠TMDB: bring your own token

TMDB matching is disabled by default. Apply through your own TMDB account and configure your own API Read Access Token on the server. We supply no shared developer key. This is not the shorter v3 API key or your FolioSpace connection token.

The Compose template passes these optional settings from a private .env:

FOLIOSPACE_VIDEO_METADATA_PROVIDER=tmdb
FOLIOSPACE_TMDB_TOKEN=YOUR_OWN_TMDB_API_READ_ACCESS_TOKEN
FOLIOSPACE_TMDB_LANGUAGE=en-US

The token above is a placeholder. Keep real credentials out of Git, Docker images, URLs, logs, screenshots and shared Compose output. Use docker compose config --quiet for validation. Older custom Compose files need the environment mappings too; .env alone is not passed to a container.

A personal credential or this project's software license does not automatically grant commercial permission. Review TMDB's current terms, applicable commercial licensing and attribution requirements. The web About screen and video footer provide attribution; independent clients must address their own use.

TMDB setup, privacy and official sources⁠ · 中文配置说明⁠.

TMDB supplies metadata/artwork, not movie files. Candidate confirmation, artwork retrieval and season refresh are explicit operations, not automatic whole-library scraping. Local NFO, artwork and manual metadata remain usable without it. MetaTube/DMM adapters and complex multi-episode file handling are not delivered in 1.11.

⁠Upgrading and persistent data

Tags 1.12.1 and latest support Linux AMD64 and ARM64. Pin a version for repeatable deployments.

Before upgrading, back up the persistent /config directory and preserve your existing access token, media mounts and custom environment. Choose an idle maintenance window: normal startup can process existing background jobs and update stored state. The 1.11 workflows reuse the existing schema and introduce no new DDL; this does not disable ordinary startup work or migrations required by older installations. Retain a prior image and stopped-state backup; do not restore an old database over new user progress without reconciliation. Keep FOLIOSPACE_PRESERVE_GAME_CATALOG_ON_START=1 if your existing installation uses it.

Publishing or pulling an image does not replace an existing container automatically. After your deliberate upgrade, verify /api/client/info, your normal reading/game/video workflows and the original-file download path.

Container path/settingPurpose
/configWritable SQLite database, metadata, thumbnails and runtime cache; persist and back up
/libraryDefault read-only media mount
/books, /games, /videosAdditional read-only mounts in the Compose template
FOLIOSPACE_DIRECTORY_ROOTSComma-separated container-visible media roots
FOLIOSPACE_API_TOKENOptional fixed token; otherwise first-run setup can save a token hash
FOLIOSPACE_SCAN_WORKERSScan concurrency; Compose default is 2
FOLIOSPACE_MEMORY_LIMIT_MBGo memory limit; Compose default is 768 MiB

An empty API-token environment variable does not disable a token previously saved during setup. Use HTTPS across untrusted networks. Profiles partition state within a shared-token household; they are not separate authenticated accounts.

⁠简体中文

Library 1.12.1 修复网页版 EPUB 全屏时阅读区域偏小的问题,适用于单页和双页模式。

Library 1.12 修复网页漫画双页全屏偏小的问题,按比例利用全屏阅读区域。

Library 1.11 配合独立 MCP 1.04,新增 SQL 书目列表与跨媒体检索、分页漫画导航、只读已存储诊断,以及单个视频 TMDB 候选检索、预览和明确确认应用。MCP 总计 71 个工具,保留此前 62 个;官方 Library 1.10 没有这些新增 API,请同时升级并检查三项能力标记。检索会创建任务,预览生成内存回执,确认应用会写入共享元数据。

1.10 增加 Calibre 元数据、电子书/漫画与格式筛选,整理首页与漫画层级,修复 EPUB 双栏、键盘翻页、进度恢复和脚注。重扫与游戏分析保留人工修正;确认损坏或空文件会明确标记并从最近添加隐藏,同时保留源文件、条目与错误历史。此前影片库、阅读和游戏功能继续保留。

无需 NAS,也无需写代码,但要准备 Docker、持久配置目录、媒体目录、服务地址和 token。默认端口 8080;首次打开网页完成设置,再让客户端填写相同 URL/token。升级前备份 /config,保留原挂载和口令,并选择空闲维护窗口;正常启动可能继续既有后台任务并更新状态。新增工作流没有新 DDL,这不代表禁用旧版本所需迁移或既有启动任务。发布或拉取 Docker 镜像不代表现有容器或商店客户端已自动更新。

TMDB 可选且默认关闭,需部署者自行申请并配置读取令牌;没有共享开发者密钥。自备不等于商业授权,须遵守来源条款和署名要求。FolioSpace 不提供或下载影片、ROM、BIOS 等内容。

Tag summary

Content type

Image

Digest

sha256:9b53770a1…

Size

94.1 MB

Last updated

3 days ago

docker pull funland/foliospace-library