packages/web-host/README.md
WebUI host package for AionUi - zero Electron dependency.
import { startWebHost } from '@aionui/web-host';
const handle = await startWebHost({
app: {
version: '1.0.0',
isPackaged: false,
resourcesPath: '/path/to/resources',
userDataPath: '/path/to/userData',
},
staticDir: '/path/to/out/renderer',
backend: {
kind: 'ownBackend',
resolveBackend: () => '/path/to/aionui-backend',
},
});
console.log(`WebUI running at ${handle.url}`);
await handle.stop();
M3: skeleton + type definitions + placeholder implementations (all throw not implemented yet)