@envheaven/plugins-offiline-web-ui
v0.1.1
Published
Offline-first Angular and Tailwind UI for EnvHeaven daemon state and version registry management.
Readme
@envheaven/plugins-offiline-web-ui
This package provides the local web UI server for EnvHeaven.
It serves a built Angular + Tailwind app from static files and proxies /api/* requests to the EnvHeaven daemon.
Build
npm install
npm run buildRun
envheaven-offiline-web-ui --daemon-url http://127.0.0.1:43123 --port 0You can also use the package programmatically:
import { startOffilineWebUiServer } from "@envheaven/plugins-offiline-web-ui";
const server = await startOffilineWebUiServer({
daemonUrl: "http://127.0.0.1:43123",
});The server accepts these options:
daemonUrlporthostopen
The UI talks to these daemon endpoints through the proxy:
GET /api/statusGET /api/reposPOST /api/repos/selectGET /api/versionsPOST /api/versions/setPOST /api/versions/increment
