---
-**TL;DR:** Show me the [demo](https://books-demo.cloud.reichard.io/)!
+AnthoLume is a Progressive Web App (PWA) that manages your EPUB documents, provides an EPUB reader, and tracks your reading activity! It also has a [KOReader KOSync](https://github.com/koreader/koreader-sync-server) compatible API, and a [KOReader](https://github.com/koreader/koreader) Plugin used to sync activity from your Kindle. Some additional features include:
-- Username: `demo`
-- Password: `demo`
+- OPDS API Endpoint
+- Local / Offline Reader (via ServiceWorker)
+- Metadata Scraping (Thanks [OpenLibrary](https://openlibrary.org/) & [Google Books API](https://developers.google.com/books/docs/v1/getting_started))
+- Words / Minute (WPM) Tracking & Leaderboard (Amongst Server Users)
-This is BookManager! Will probably be renamed at some point. This repository contains:
+While some features require JavaScript (Service Worker & EPUB Reader), we make an effort to limit JavaScript usage. Outside of the two aforementioned features, no JavaScript is used.
-- Web App / Progressive Web App (PWA)
-- [KOReader](https://github.com/koreader/koreader) Plugin (See `client` subfolder)
-- [KOReader KOSync](https://github.com/koreader/koreader-sync-server) compatible API
-- OPDS API endpoint that provides access to the uploaded documents
+## Server
-In additional to the compatible KOSync API's, we add:
+Docker Image: `docker pull gitea.va.reichard.io/evan/antholume:latest`
-- Additional APIs to automatically upload reading statistics
-- Upload documents to the server (can download in the "Documents" view or via OPDS)
-- Book metadata scraping (Thanks [OpenLibrary](https://openlibrary.org/) & [Google Books API](https://developers.google.com/books/docs/v1/getting_started))
-- Limited JavaScript use. Server-Side Rendering is used wherever possible. The main app is fully operational without any JS. JS is only required for:
- - EPUB Reader
- - Local / Offline Mode
- - Service Worker
+### Local / Offline Reader
-# Server
-
-Docker Image: `docker pull gitea.va.reichard.io/evan/bookmanager:latest`
-
-## Local / Offline Reader
-
-The Local / Offline reader allows you to use any BookManager server as a standalone offline accessible reading app! Some features:
+The Local / Offline reader allows you to use any AnthoLume server as a standalone offline accessible reading app! Some features:
- Add local EPUB documents
- Read both local and any cached server documents
- Maintains progress for all types of documents (server / local)
- Uploads any progress or activity for cached server documents once the internet is accessible
-## KOSync API
+### KOSync API
The KOSync compatible API endpoint is located at: `http(s):///api/ko`
-## OPDS API
+### OPDS API
The OPDS API endpoint is located at: `http(s):///api/opds`
-## Quick Start
+### Quick Start
```bash
# Make Data Directory
-mkdir -p bookmanager_data
+mkdir -p antholume_data
# Run Server
docker run \
-p 8585:8585 \
-e REGISTRATION_ENABLED=true \
- -v ./bookmanager_data:/config \
- -v ./bookmanager_data:/data \
- gitea.va.reichard.io/evan/bookmanager:latest
+ -v ./antholume_data:/config \
+ -v ./antholume_data:/data \
+ gitea.va.reichard.io/evan/antholume:latest
```
The service is now accessible at: `http://localhost:8585`. I recommend registering an account and then disabling registration unless you expect more users.
-## Configuration
+### Configuration
| Environment Variable | Default Value | Description |
| -------------------- | ------------- | ------------------------------------------------------------------- |
| DATABASE_TYPE | SQLite | Currently only "SQLite" is supported |
-| DATABASE_NAME | book_manager | The database name, or in SQLite's case, the filename |
+| DATABASE_NAME | antholume | The database name, or in SQLite's case, the filename |
| CONFIG_PATH | /config | Directory where to store SQLite's DB |
| DATA_PATH | /data | Directory where to store the documents and cover metadata |
| LISTEN_PORT | 8585 | Port the server listens at |
@@ -118,11 +109,11 @@ The service is now accessible at: `http://localhost:8585`. I recommend registeri
- The native KOSync plugin sends an MD5 hash of the password. Due to that:
- We store an Argon2 hash _and_ per-password salt of the MD5 hashed original password
-# Client (KOReader Plugin)
+## Client (KOReader Plugin)
-See documentation in the `client` subfolder: [SyncNinja](https://gitea.va.reichard.io/evan/BookManager/src/branch/master/client/)
+See documentation in the `client` subfolder: [SyncNinja](https://gitea.va.reichard.io/evan/AnthoLume/src/branch/master/client/)
-# Development
+## Development
SQLC Generation (v1.21.0):
@@ -137,7 +128,7 @@ Run Development:
CONFIG_PATH=./data DATA_PATH=./data REGISTRATION_ENABLED=true go run main.go serve
```
-# Building
+## Building
The `Dockerfile` and `Makefile` contain the build information:
diff --git a/api/opds-routes.go b/api/opds-routes.go
index 1ba77f1..a783688 100644
--- a/api/opds-routes.go
+++ b/api/opds-routes.go
@@ -91,7 +91,7 @@ func (api *API) opdsDocuments(c *gin.Context) {
// TODO
// Links: []opds.Link{
// {
- // Title: "Search Book Manager",
+ // Title: "Search AnthoLume",
// Rel: "search",
// TypeLink: "application/opensearchdescription+xml",
// Href: "search.xml",
@@ -105,8 +105,8 @@ func (api *API) opdsDocuments(c *gin.Context) {
func (api *API) opdsSearchDescription(c *gin.Context) {
rawXML := `
- Search Book Manager
- Search Book Manager
+ Search AnthoLume
+ Search AnthoLume`
c.Data(http.StatusOK, "application/xml", []byte(rawXML))
diff --git a/assets/local/index.html b/assets/local/index.html
index 7ef9de2..ebf88fa 100644
--- a/assets/local/index.html
+++ b/assets/local/index.html
@@ -22,7 +22,7 @@
media="(prefers-color-scheme: dark)"
/>
- Book Manager - Local
+ AnthoLume - Local
diff --git a/assets/manifest.json b/assets/manifest.json
index 8965f24..be9a329 100644
--- a/assets/manifest.json
+++ b/assets/manifest.json
@@ -1,6 +1,6 @@
{
- "short_name": "Book Manager",
- "name": "Book Manager",
+ "short_name": "AnthoLume",
+ "name": "AnthoLume",
"theme_color": "#1F2937",
"display": "standalone",
"scope": "/",
diff --git a/assets/reader/index.html b/assets/reader/index.html
index b4f9a15..8ec5567 100644
--- a/assets/reader/index.html
+++ b/assets/reader/index.html
@@ -14,7 +14,7 @@
/>
- Book Manager - Reader
+ AnthoLume - Reader
diff --git a/client/README.md b/client/README.md
index 7c2d1e8..4e55d0a 100644
--- a/client/README.md
+++ b/client/README.md
@@ -1,6 +1,6 @@
-# Book Manager - SyncNinja KOReader Plugin
+# AnthoLume - SyncNinja KOReader Plugin
-This is BookManagers KOReader Plugin called `syncninja.koplugin`. Features include:
+This is AnthoLume's KOReader Plugin called `syncninja.koplugin`. Features include:
- Syncing read activity
- Uploading documents
@@ -12,10 +12,10 @@ Copy the `syncninja.koplugin` directory to the `plugins` directory for your KORe
## Configuration
-You must configure the BookManager server and credentials in SyncNinja. Afterwhich you'll have the ability to configure the sync cadence as well as whether you'd like the plugin to sync your activity, document metadata, and/or documents themselves.
+You must configure the AnthoLume server and credentials in SyncNinja. Afterwhich you'll have the ability to configure the sync cadence as well as whether you'd like the plugin to sync your activity, document metadata, and/or documents themselves.
## KOSync Compatibility
-BookManager implements API's compatible with the KOSync plugin. This means that you can utilize this server for KOSync (and it's recommended!). SyncNinja provides an easy way to merge configurations between both KOSync and itself in the menu.
+AnthoLume implements API's compatible with the KOSync plugin. This means that you can utilize this server for KOSync (and it's recommended!). SyncNinja provides an easy way to merge configurations between both KOSync and itself in the menu.
The KOSync compatible API endpoint is located at: `http(s):///api/ko`. You can either use the previous mentioned merge feature to automatically configure KOSync once SyncNinja is configured, or you can manually set KOSync's server to the above.
diff --git a/config/config.go b/config/config.go
index 4765077..85f6748 100644
--- a/config/config.go
+++ b/config/config.go
@@ -33,7 +33,7 @@ func Load() *Config {
return &Config{
Version: "0.0.2",
DBType: trimLowerString(getEnv("DATABASE_TYPE", "SQLite")),
- DBName: trimLowerString(getEnv("DATABASE_NAME", "book_manager")),
+ DBName: trimLowerString(getEnv("DATABASE_NAME", "antholume")),
ConfigPath: getEnv("CONFIG_PATH", "/config"),
DataPath: getEnv("DATA_PATH", "/data"),
ListenPort: getEnv("LISTEN_PORT", "8585"),
diff --git a/docker-compose.yml b/docker-compose.yml
index ee36dc8..3893a57 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,6 +1,6 @@
---
services:
- bookmanager:
+ antholume:
environment:
- CONFIG_PATH=/data
- DATA_PATH=/data
diff --git a/main.go b/main.go
index 536249d..9f15017 100644
--- a/main.go
+++ b/main.go
@@ -24,13 +24,13 @@ func main() {
log.SetFormatter(UTCFormatter{&log.TextFormatter{FullTimestamp: true}})
app := &cli.App{
- Name: "Book Manager",
+ Name: "AnthoLume",
Usage: "A self hosted e-book progress tracker.",
Commands: []*cli.Command{
{
Name: "serve",
Aliases: []string{"s"},
- Usage: "Start Book Manager web server.",
+ Usage: "Start AnthoLume web server.",
Action: cmdServer,
},
},
@@ -42,7 +42,7 @@ func main() {
}
func cmdServer(ctx *cli.Context) error {
- log.Info("Starting Book Manager Server")
+ log.Info("Starting AnthoLume Server")
// Create Channel
wg := sync.WaitGroup{}
diff --git a/notes/README.md b/notes/README.md
index 535ef78..634d4d8 100644
--- a/notes/README.md
+++ b/notes/README.md
@@ -1,3 +1,16 @@
# Notes
This folder consists of various notes / files that I want to save and may come back to at some point.
+
+# Ideas / To Do
+
+- Rename!
+- Google Fonts -> SW Cache and/or Local
+- Search Documents
+ - Title, Author, Description
+- Change Device Name / Assume Device
+- Hide Document per User (Another Table?)
+- Admin User?
+ - Reset Passwords
+ - Actually Delete Documents
+- Document & Activity Pagination
diff --git a/screenshots/pwa/README.md b/screenshots/pwa/README.md
index 3ebc8d2..06ad43b 100644
--- a/screenshots/pwa/README.md
+++ b/screenshots/pwa/README.md
@@ -1,25 +1,25 @@
# PWA Screenshots