Skip to content

Vibe coding a plugin? 😎 Teach your agent Modlumi first. Works with Claude Code, Codex, Cursor and more.

DrawFunction

DrawFunction = (ui) => void

Describes the widgets of a panel or dialog. Modlumi calls it every frame while the window is open. It must be synchronous. A draw only reads the model, like a change listener, except the draw right after the user changed a widget: there widgets return the change, and it may edit the model and the selection.

Ui

void