return HelloWorld
local _ = require("gettext") return { name = "helloworld", fullname = _("Hello World"), description = _("A minimal plugin that shows a greeting."), }
Have a favorite KOReader plugin we didn’t mention? Join the discussion on MobileRead’s KOReader forum or open an issue on the KOReader GitHub repository—the community always welcomes new ideas and contributors.
For avid readers who have moved beyond the walled gardens of Kindle, Kobo, and other commercial ereaders, KOReader stands as a beacon of freedom and customization. This open-source document viewer is a powerhouse for reading PDFs, DJVUs, EPUBs, and more, offering granular control over rendering, gestures, and file management. But the true secret weapon in KOReader’s arsenal is its plugin system .
plugins/helloworld/ ├── _meta.lua └── main.lua
local UIManager = require("ui/uimanager") local WidgetContainer = require("ui/widget/container/widgetcontainer") local TextWidget = require("ui/widget/textwidget") local CenterContainer = require("ui/widget/container/centercontainer") local HelloWorld = WidgetContainer:extend{ name = "helloworld", }
function HelloWorld:init() self:addToMainMenu(self.name) end