A lightweight host monitoring dashboard built with SvelteKit + Node.js.
+server.ts) — no separate backend processsysteminformation npm package@sveltejs/adapter-node)The app is a single Node.js process serving both the UI and the /api/hostinfo endpoint.
| Route | Description |
|---|---|
GET / |
Dashboard UI |
GET /api/hostinfo |
JSON system metrics |
/npm install
npm run dev # dev server on http://localhost:5173
npm run build
node build # runs on port 3000
Set PORT env var to override the default port (3000).
docker build -t hostmonitor .
docker run -p 3000:3000 hostmonitor
| Variable | Default | Description |
|---|---|---|
PORT |
3000 |
HTTP port |
HOST |
0.0.0.0 |
Bind address |
ORIGIN |
— | Required in production behind a reverse proxy |