> ## Content Index
> Fetch the complete content index at: https://www.autodidacts.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Patching KOReader Wallabag Plugin to add star support
- URL: https://www.autodidacts.io/star-wallabag-entry-from-koreader/
- Published: 2026-01-04T23:30:33.000Z
- Updated: 2026-01-05T22:14:30.000Z
- Description: Now you can star Wallabag entries from the comfort of your Kobo e-reader
- Author: Curiositry
- Tags: 100DaysToOffload, Wallabag, Kobo, KOReader, Lua, Reading, Read-it-later

****Note:** this post is part of [#100DaysToOffload](https://100daystooffload.com/?ref=autodidacts.io), a challenge to publish 100 posts in 365 days. These posts are generally shorter and less polished than our normal posts; expect typos and unfiltered thoughts! [View more posts in this series.](https://www.autodidacts.io/tag/100daystooffload/)

  
I have been [gradually, painfully](https://www.autodidacts.io/wallabag-wins-despite-its-flaws/) migrating away from the defunct Pocket, to Wallabag.

When I started using the KOReader Wallabag plugin, I discovered that there was no way to star articles from my e-reader. Ugh!

I Googled, and searched through the code base, and found no reference to starring articles from KOreader.

But KOReader is open source.

I squinted at the KOReader Wallabag plugin’s `main.lua`. Hmm, it looked pretty simple. And there’s already the star icons in the book details view… And it’s already set-up to send Wallabag PATCH entry API requests. And I remember from my `star_article_in_wallabag_by_url.py` script what payload to use to star an article.

I [started a discussion](https://github.com/koreader/koreader/discussions/14788?ref=autodidacts.io) about the idea: @Frenzie seemed a bit unimpressed by the primitive approach I had in mind, but supportive in principle.

I’ve never written Lua before, but it looked nice. I installed a Lua LSP for Helix editor (simple as `brew install lua-language-server`, no config needed). Since I was mostly adapting syntax from surrounding code, I didn’t even need to Google or use AI.

[I added \~6 simple lines](https://github.com/koreader/koreader/compare/master...curiositry:koreader:master?ref=autodidacts.io) to `archiveArticle()` in main.lua:

```lua
-- if rated 5 stars, star article in Wallabag
local doc_settings = DocSettings:open(path)
local summary = doc_settings:readSetting("summary")
local rating = summary.rating
if rating and rating == 5 then
  body = { archive = 1, starred = 1 }
end

```

Then, I updated `.adds/koreader/plugins/wallabag.koplugin/main.lua` on my e-reader with [the new version](https://raw.githubusercontent.com/curiositry/koreader/refs/heads/master/plugins/wallabag.koplugin/main.lua?ref=autodidacts.io).

The feature worked perfectly, first try.

I have [opened a draft pull request (#14793)](https://github.com/koreader/koreader/pull/14793?ref=autodidacts.io), so there’s a chance this feature might be available in the default KOReader install at some point in the future.