BookOrbit plugin that syncs reading progress to Goodreads, StoryGraph and BookHive
README.md

performative-male #

Copies reading data from a self-hosted BookOrbit to Goodreads and BookHive, one way. It sends status, start and finish dates, rating, review, and the progress of each finished sitting. A sitting is one continuous period of reading one book. BookOrbit syncs StoryGraph itself, so StoryGraph is not a target here.

Commands #

performative-male run [--dry-run] [--post-progress]
performative-male goodreads-auth
performative-male link <bookorbit-book-id> <goodreads|bookhive> <target-id>
performative-male status
  • run syncs every 5 minutes. --dry-run prints the writes of one cycle and changes nothing. On the first run, progress is posted only with --post-progress.
  • goodreads-auth authorizes your Goodreads account once.
  • link replaces the match of a book on a target.
  • status lists books with no match and the last errors.

Deploy beside BookOrbit #

The service joins BookOrbit's Docker network, bookorbit_default, and reads the BookOrbit login from /srv/bookorbit/credentials.txt.

  1. Copy .env.example to .env and fill it in. RUN_AS_UID and RUN_AS_GID are the owner of the credentials file.
  2. Create the state folder as that user: mkdir data.
  3. Authorize Goodreads: docker compose run --rm -it sync goodreads-auth.
  4. Check the writes: docker compose run --rm sync run --dry-run.
  5. Start the service: docker compose up -d --build.

Development #

npm test
npm run typecheck