Family digital library
Humite
Bring your books together. Make reading your own.
Humite is a self-hosted digital library for families and individuals. It maps EPUB and PDF collections from your NAS 1:1 into the two-story Ming-style 3D pavilion Guanwen Library, letting household members share one curated archive while keeping reading progress, highlights, and private notes strictly isolated per account.

Core capabilities
Curated archive, 3D pavilion, and private reading sovereignty
Curated archive
Controlled NAS ingestion and cataloging with native EPUB/PDF support, Thema 1.6 classification, SHA-256 deduplication, and 2:3 cover cropping; write operations preview fingerprints with rollback protection and never silently alter originals.
EPUB · PDF · Thema 1.6Guanwen Library
A built-in two-story Ming-style 3D virtual pavilion powered by Three.js that places real library holdings 1:1 onto shelves, paired with an editorial web reader, web article clipping, and a library-wide knowledge graph.
3D Pavilion · Editorial Reader · Knowledge GraphPrivate sanctuary
Three-tier Owner, Admin, and Member roles allow families to share one catalog while isolating progress, multi-color highlights, and private notes per account—plus an encrypted Vault protected by TOTP two-factor authentication.
Account Isolation · Private Notes · Encrypted Vault3D MING LIBRARY
Guanwen Library · Two-story Ming 3D Pavilion
Synced directly from Humite’s embedded Guanwen Library 3D scene, supporting first-person walking tours, subject shelf navigation, seasonal lighting presets, stele rubbing guides, and daily reading fortune cards.
TECHNOLOGY STACK
A full stack from 3D space to persistence
Frontend UI & State
React 19 · TypeScript · Vite
Built with React 19, TypeScript, and Vite, combining Ant Design and React Query for catalog discovery, reading workspaces, and client caching.
Reading & Writing Engines
epub.js · PDF.js · TipTap
Dual-engine EPUB and PDF paper-feel readers with custom Chinese typography, TipTap rich-text and Markdown note editing, and web article clipping.
3D & Graph Visualization
Three.js · AntV G2 · Graphs
Drives the two-story Ming timber architecture and physical 3D book placement in Guanwen Library, alongside AntV knowledge graphs and reading analytics.
Server & Database
Java 21 · Spring Boot · jOOQ · PostgreSQL 18
Modular monolith built on Java 21 and Spring Boot, pairing Spring Session JDBC, Flyway, and jOOQ with PostgreSQL 18 for type-safe persistence and fast queries.
Document Processing & Deployment
PDFBox · Batik · Docker Compose
Uses Apache PDFBox and Batik for metadata extraction and cover rendering, packaged in a single container image with Docker Compose for turnkey self-hosting.
From client workspace to multi-role self-hosted containers
Both the web app and Guanwen Library consume the API via a unified OpenAPI contract; asynchronous ingestion and batch jobs run in an isolated worker process backed by PostgreSQL and mounted NAS directories.
humite-api
Spring Boot + jOOQ unifying access to PostgreSQL 18 and controlled NAS storage
How a book moves from NAS into Guanwen Library
From file ingestion and metadata verification to 3D shelf placement and shared reading, every step preserves traceability and personal privacy.
- 01
Scan & deduplicate
Scan mounted NAS roots or stream uploads to staging, computing SHA-256 fingerprints to prevent duplicates.
- 02
Catalog & classify
Extract embedded metadata, map Thema 1.6 subject codes, and optionally enrich descriptions and 2:3 covers online.
- 03
Map to 3D Pavilion
Assign books by subject to two-story Ming shelf bays, generating inspectable 3D volumes ready for browsing and fortune cards.
- 04
Share & read privately
Family members read from one shared archive while keeping reading positions, bookmarks, highlights, and notes isolated.
Technical Architecture
System boundaries designed for self-hosting and longevity
Humite unifies library management, document parsing, 3D visualization, and privacy isolation in a lightweight container stack suited for long-term NAS operation.
Controlled file management & fingerprints
Every file operation computes SHA-256 fingerprints and previews changes before atomic commit with rollback support, protecting original NAS files.
Embedded 3D pavilion & live catalog bridge
Guanwen Library is bundled directly inside the web app, receiving live catalogs over a same-origin postMessage bridge and syncing reader return poses.
Dual-engine EPUB & PDF paper reader
Integrates epub.js and PDF.js for reflowable and fixed-layout books, with custom font packages, layout tuning, persistent positions, and color highlights.
Article clippings & knowledge network
Clips web articles and images for offline reading in curated collections while connecting books, notes, and topics in an interactive knowledge graph.
Per-account isolation & encrypted Vault
Reading progress, highlights, bookmarks, and notes are strictly scoped by user at the query layer, with an encrypted Vault gated by TOTP 2FA.
Zero-dependency turnkey container deployment
The web bundle is packaged inside the Spring Boot image so hosts need no local Node.js or Java runtime—just Docker Compose.
Three core services powering the complete library
Library API & reading server
Spring Boot service handling authentication, catalog search, reading streams, annotations, and static web asset delivery.
Async scanning & job processing
Runs independently via SPRING_PROFILES_ACTIVE=worker to handle NAS scans, metadata enrichment, and cover rendering.
Persistence & session store
Combines Flyway schema migrations and type-safe jOOQ queries for book metadata, annotations, and JDBC session storage.
Explore Humite and build your private library
Explore the source repository, Docker deployment guide, and 3D Guanwen Library implementation.