Skip to content

GeorgeSG/KoInsight

Repository files navigation

KoInsight brings your KOReader reading stats to life with a clean, web-based dashboard.

Coverage Status

Features

  • πŸ“ˆ Interactive dashboard with charts and insights
  • πŸ”„ KOReader plugin for syncing reading stats
  • πŸ“± Multi-device support
  • πŸ“€ Manual .sqlite upload supported
  • ♻️ Act as a KOReader (kosync) sync server
  • 🏠 Fully self-hostable (Docker image available)

Screenshots

Home page Book view
Statistics Statistics

See all screenshots

Installation

Using Docker and Docker Compose

Add the following to your compose.yaml file:

name: koinsight
services:
  koinsight:
    image: ghcr.io/georgesg/koinsight:latest
    restart: unless-stopped
    ports:
      - "3000:3000"
    volumes:
      - ./data:/app/data

Run docker compose up -d.

Usage

Reading statistics

To start seeing data in KoInsight, you need to upload your reading statistics. Currently, there are two ways to do this:

  1. Manual upload: Extract your statistics.sqlite file from KOReader and upload it using the "Upload Statistics DB" button in KoInsight.
  2. Sync plugin: Install and configure the KoInsight plugin in KOReader to sync your data directly.

KOReader sync plugin

The KoInsight plugin syncs your reading statistics from KOReader to KoInsight.

Installation:

  1. Download the plugin ZIP bundle from the "KOReader Plugin" button in the main menu.
  2. Extract it into your KOReader/plugins/ folder.
  3. For the plugin to be installed correctly, the file structure should look like this:
    koreader
    └── plugins
        └── koinsight.koplugin
            β”œβ”€β”€ _meta.lua
            β”œβ”€β”€ main.lua
            └── ...
    

Usage:

  1. Open the KOReader app.
  2. Go to the Tools menu and open KoInsight (it should be below "More tools").
  3. Click Configure KoInsight and enter your KoInsight server URL (e.g., http://server-ip:3000).
    • ⚠️ Make sure your KOReader device has network access to the server.
  4. Click Sync in the KoInsight plugin menu.

Reload the KoInsight web dashboard. If everything went well (🀞), your data should appear.

Manual Upload: statistics.sqlite

  1. Open a file manager on your KOReader device.
  2. Navigate to the KOReader/settings/ folder.
  3. Locate the statistics.sqlite file.
  4. Copy it to your computer.
  5. Upload it to KoInsight using the "Upload Statistics DB" button.
  6. Reload the KoInsight web dashboard.

Every time you need to reupload data, you would need to upload the statistics database file again.

Use as progress sync server

You can use your KoInsight instance as a KOReader sync server. This allows you to sync your reading progress across multiple devices.

  1. Open the KOReader app.
  2. Go to the Tools menu and open Progress sync
  3. Set the server URL to your KoInsight instance (e.g., http://server-ip:3000).
  4. Register an account and login.
  5. Sync your progress.

The progress sync data should appear in the "Progress syncs" page in KoInsight.

Roadmap

(a.k.a things I want to do)

See Project board

About

πŸ“š KoInsight brings your KoReader reading stats to life with a clean, web-based dashboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •