Skip to content

Fetches and renders anki stats - amount of learned words for each deck

Notifications You must be signed in to change notification settings

pavelgordon/anki-stats-exporter

Repository files navigation

Anki stats exporter

Fetches statistics of learned cards from Anki Desktop and renders them as html page.
https://anki.pgordon.dev/stats

Tech/framework used

Installation

  • Install Kotlin
  • Install Gradle
  • Install Anki Desktop with AnkiConnect addon
  • Install Docker(optional)
  • Clone project to local machine.

How to run?

Via IntelliJ

  • Run Application.kt
  • Or run IntelliJ profile from .run directory

Via Jar

  • ./gradlew build
  • java -jar build/libs/anki-stats-exporter-0.0.1.jar

Via Docker

  • docker build -t anki-stats .
  • docker run -m512M --cpus 2 -it -p 8080:8080 --rm anki-stats

How to use

  • Call GET localhost:8080 to view dashboard(work in progress)
  • Call GET localhost:8080/anki/stats to get decks stats from running Anki Desktop
  • Call POST localhost:8080/stats to manually put stats to storage(see requests.http)

Right now, deck names are hardcoded: Italiano, German

About

Fetches and renders anki stats - amount of learned words for each deck

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published