Skip to content
/ eloran Public

πŸ’¬ Comics and πŸ“– Ebook web library written in rust πŸ¦€πŸš€

License

Notifications You must be signed in to change notification settings

thasos/eloran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

87 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Eloran

Comics and Ebook web library written in rust, with reading, search, reading status, bookmarks...

Intro

I used Ubooquity during a few years, but unfortunatly it is not opensource, and there is no read status, so I decided to find another solution.

I tried some alternatives :

  • Komga : best project here I think, but no "folder view" πŸ˜₯
  • Tanoshi ☠ : works well, in rust too πŸ¦€πŸš€, but no support for ebooks
  • Calibre web or BicBucStriim : I just can't use Calibre's classification system
  • Kavita : nice project too, but I don't like the Collections system (feels like Calibre)
  • Nextcloud epubreader : an old app, but it doesn't work with most of my collection

So here I am, a personal project named after my childrens (Elora and Revan).

Feel free to use, improve, and cry to my low code quality !

  • use a sqlite database
  • store ebooks and comcis covers in database (~10ko per cover, almost 160 Mo for 15000 files)
  • multiple users, with bookmarks pages, reading status with page number (not for pdf), argon2 hashed password
  • periodic scan of libraries folders
  • no cached data, comics images are extracted on the fly
  • comics pages responsive size for optimized mobile network usage
  • small binary : 5 Mio, alpine based image : 13 Mio
  • small css, small compressed svg, no javascript
  • rust πŸ¦€πŸš€

Screenshots

CSS is a work in progress !

grid view

Navigation directly by clicking on the left or right of the comic page

reading

Installation

Podman / Docker

Feel free to customize listen port and path...

podman pull ghcr.io/thasos/eloran:latest
podman run -d -p 0.0.0.0:3200:3200 \
    -v /host_data/eloran/sqlite:/opt/eloran/sqlite \
    -v /host_data/library:/library \
    --name eloran \
    ghcr.io/thasos/eloran:latest

From source

⚠ We use SASS for the css, and grass to compile it, so you well need the binary.

git clone https://github.com/thasos/eloran.git
cd eloran
just build
target/x86_64-unknown-linux-gnu/release/eloran

If you don't use just, use it 😁 or just launch cargo build --release (see justfile for exacts commands)

Build dependencies

Nix with flakes enabled :

nix develop

Arch :

sudo pacman -S libarchive cairo poppler-glib
yay -S grass-sass
# if you want to package it in alpine image
sudo pacman -S musl

Debian/ubuntu (this part need an update) :

sudo apt install libarchive-dev libcairo2-dev libpoppler-glib-dev
# if you want to package it in alpine image
sudo apt install musl-dev

Fedora (this part need an update) :

sudo dnf install rust-glib-sys-devel.noarch
sudo dnf install rust-cairo-sys-rs0.16-devel.noarch
sudo dnf install cairo-gobject-devel.x86_64
sudo dnf install poppler-glib-devel.x86_64
sudo dnf install libarchive-devel.x86_64

TODO

  • display read status
  • add flags (read status and bookmark) to folder
  • hash password in database !!
  • store session in database (see fn create_router() in src/http_server.rs)
  • pretty error handling
  • more testing
  • allow relative path in library_path
  • fix element numbers for sub directories
  • handle cover.jpg files for directories (or use first file's cover ?)
  • customized css
  • upload files
  • install page at 1st start : admin password, library_path, new user...
  • share files (or directories, or page)
  • grid or list view in preferences
  • progress bar while reading, file info, and grid view
  • easy go to page number while reading and from file info
  • read pdf in new tab
  • better css πŸ€ͺ
  • true ebook reading
  • export read status
  • list "next to read"

About

πŸ’¬ Comics and πŸ“– Ebook web library written in rust πŸ¦€πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Languages