koreader/koreader-sync-server được TopGit xếp vào nhóm dự án mã nguồn mở, với 820 sao trên GitHub, viết chủ yếu bằng Lua. self hostable synchronization service for koreader devices
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Koreader sync server is built on top of the Gin JSON-API
framework which runs on OpenResty and is entirely
written in Lua.
Users of koreader devices can register their devices to the synchronization
server and use the sync service to keep all reading progress synchronized
between devices.
This project is licenced under Affero GPL v3, see the COPYING file.
The protocol
The API is described in the third-party kosync-conformance,
together with a verifier that checks an implementation against it in one command.
The description is observational rather than normative: it documents what this
server does, and it notes where implementations in the wild disagree. The spec
text is CC0, so anything in it may be copied here or anywhere else without
attribution.
Setup your own server
Using docker, you can spin up your own server in two commands:
# for quick test
docker run -d -p 7200:7200 --name=kosync koreader/kosync:latest
# for production, we mount redis data volume to persist state
mkdir -p ./logs/{redis,app} ./data/redis
docker run -d -p 7200:7200 \
-v `pwd`/logs/app:/app/koreader-sync-server/logs \
-v `pwd`/logs/redis:/var/log/redis \
-v `pwd`/data/redis:/var/lib/redis \
--name=kosync koreader/kosync:latest
The above command will spin up a sync server in a docker container.
To build your own docker image from scratch:
docker build --rm=true --tag=koreader/kosync .
Alternatively, if you'd rather use docker compose:
docker compose up -d --build
To setup the server manually, please refer to the commands used in
the Dockerfile.
You can use the following command to verify that the sync server is ready to serve traffic:
As you can see, the server responds over HTTPS using a self-signed certificate. If you'd like to run the server behind a reverse proxy and let the proxy handle TLS termination, run the server on port 17200 instead of 7200. As an example, your Traefik V3 configuration could look like this:
DELETE /users/me uses the x-auth-user and x-auth-key headers to delete an
account and all its reading progress. Success returns HTTP 200 with
{"deleted":true}. Invalid credentials return HTTP 401 (code 2001).
An absent account returns HTTP 404 (code 2006, Account not found.), after
removing any orphaned user data. This specific response confirms deletion after a
lost response; a generic 404 or 401 does not.
No deletion records are retained. Usernames can be registered again immediately
with empty progress. Use a different password when re-registering: a stale deletion
request cannot be distinguished from a new one if both credentials are reused.
Changing a password
PUT /users/password uses the current x-auth-user and x-auth-key headers and a
JSON body of {"password":"<replacement key>"}. As with registration, supply a
nonempty client-derived key (KOReader uses the password's MD5 hash).
Success returns HTTP 200 with {"updated":true} and preserves reading progress.
Update the saved password on all connected readers. This requires the current key;
it does not provide forgotten-password recovery.
Incorrect credentials and stale retries return HTTP 401. If a response is lost,
confirm the replacement key with GET /users/auth. Invalid replacement values
return HTTP 403 (code 2003).
Privacy and security
Koreader sync server does not store file name or file content in the database.
For each user it uses a unique string of 32 digits (MD5 hash) to identify the
same document from multiple koreader devices and keeps a record of the furthest
reading progress for that document. Sample progress data entries stored in the
sync server are like these:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/koreader/koreader-sync-server là nguồn chính thức.
koreader/koreader-sync-server có phải mã nguồn mở không?
Có — koreader/koreader-sync-server phát hành theo license AGPL-3.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/koreader/koreader-sync-server.
koreader/koreader-sync-server có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho koreader/koreader-sync-server. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
koreader/koreader-sync-server có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho koreader/koreader-sync-server. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
koreader/koreader-sync-server còn đang phát triển không?
Commit gần nhất trên koreader/koreader-sync-server là 2 tháng trước (theo timestamp GitHub). Repo có 66 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
koreader/koreader-sync-server dùng license gì?
koreader/koreader-sync-server phát hành theo license AGPL-3.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về koreader-sync-server?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về koreader-sync-server.