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.

Humite

Core capabilities

Curated archive, 3D pavilion, and private reading sovereignty

01

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.6
02

Guanwen 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 Graph
03

Private 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 Vault

3D 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.

Humite · Guanwen Library

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.

Client & 3D SceneReact 19 / Three.js / Web ReaderCatalog browsing · Dual reader · 3D library tour
REST API · Session auth · Role isolation

humite-api

Catalog & Thema 1.6EPUB / PDF readingHighlights & private notesArticles & knowledge graphTOTP encrypted vault

Spring Boot + jOOQ unifying access to PostgreSQL 18 and controlled NAS storage

humite-workerAsync ingestion · Metadata enrichment · Cover batch rendering
PostgreSQL 18 + NASFlyway migrations · SHA-256 fingerprints · Read-safe originals
Deployment overview: app and worker share one container image and separate online API traffic from background processing via SPRING_PROFILES_ACTIVE.

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.

  1. 01

    Scan & deduplicate

    Scan mounted NAS roots or stream uploads to staging, computing SHA-256 fingerprints to prevent duplicates.

  2. 02

    Catalog & classify

    Extract embedded metadata, map Thema 1.6 subject codes, and optionally enrich descriptions and 2:3 covers online.

  3. 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.

  4. 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

API Server

Library API & reading server

Spring Boot service handling authentication, catalog search, reading streams, annotations, and static web asset delivery.

Async Worker

Async scanning & job processing

Runs independently via SPRING_PROFILES_ACTIVE=worker to handle NAS scans, metadata enrichment, and cover rendering.

PostgreSQL 18

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.