Local runner that serves Lexia built frontend with API/WS proxy to your agent backend
npm install @lexia/uiLexia UI Runner
===============
Serve the built Lexia frontend locally with API/WS proxy to your agent backend.
Note: Upload functionality should be handled by your agent backend, not this UI package.
Usage
-----
``bash``
npx @lexia/ui --port=3000 --agent-port=5001or if installed globally
lexia-ui --port 3000 --agent-port 5001
Flags
-----
- --port: port to serve frontend (default 3000)
- --host: bind address (default 127.0.0.1)
- --agent-port: local agent port (default 5000)
- --agent-url: override full agent URL (e.g., http://localhost:8000)
- --api-prefix: path prefix for API proxy (default /api)
- --ws-prefix: path prefix for WS proxy (default /ws)
- --cors: enable permissive CORS (default false)
- --open: open browser on start (default false)
How It Works
------------
- Static frontend: Served from /
- Proxy: All /api/ and /ws/ requests → forwarded to your agent backend
- Your backend should handle all API logic including file uploads