omp-webui
v0.1.0
Published
Loopback WebUI extension plugin for Oh My Pi chat sessions.
Readme
omp-webui
omp-webui is an installable Oh My Pi extension plugin that serves the existing React/Vite WebUI on a loopback-only local server. After the plugin is linked or installed and OMP is restarted/reloaded, type /webui in the OMP chat box to open the UI.
Local development
From the repository root:
bun --cwd plugin/omp-webui install
bun --cwd plugin/omp-webui run build
omp plugin link ./plugin/omp-webuiRestart or reload OMP, then run:
/webuiThe command starts a 127.0.0.1 server, generates a per-server token, and opens the tokenized URL when autoOpen is enabled.
Published install
Once this package is published:
omp plugin install omp-webuiRestart or reload OMP, then type /webui.
Settings
Use /settings -> plugins tab -> omp-webui to enable/disable the plugin and edit plugin settings:
port: preferred loopback port. If occupied, the plugin reports the actual ephemeral port it used.autoOpen: open the browser automatically when/webuistarts the server.fileTreeMaxFiles: maximum entries returned by each file-tree request.filePreviewMaxBytes: maximum bytes returned by file preview requests.
OMP already owns plugin enable/disable state. This plugin does not add a separate enabled setting.
Scripts
bun --cwd plugin/omp-webui run build
bun --cwd plugin/omp-webui run lint
bun --cwd plugin/omp-webui run testbuild runs TypeScript project checks and Vite static output. test covers the extension/server helpers.
Scope and limitation
This package does not modify OMP core source. The current OMP chat UI has /plugins and /marketplace, but no built-in chat /plugin installation alias. Local development uses omp plugin link ./plugin/omp-webui; published use is omp plugin install omp-webui.
