01 Turning it into a real plugin

Swap the mock for your server's real API. Most self-hosted servers (Kavita, Komga, Calibre-Web, Audiobookshelf, Wallabag, Readeck) fit one of these patterns:
- JSON REST + API key -> no auth, put the key in config: "Authorization": "Bearer {cfg.api_key}".
- OAuth2 password grant -> exactly this tutorial.
- OPDS -> browse.format: "xml" with "item": "entry", "fields": {"title": "title", "url": "link@href"}. An entry usually has several <link> elements, so check on a real feed which one the selector picks. (The reader also has a built-in OPDS browser, so a plugin adds value mainly for JSON APIs or token auth.)

Next: Tutorial 4: Events.
Reader file (.txt)