← back to Macstudio2 Dashboard
feat: macstudio2-dashboard v0.1 — 57 Cadillac Eldorado paint
2a2303567aede6a3cb5cf3491745c0bf69db25a7 · 2026-05-07 23:56:35 -0700 · SteveStudio2
Sister to macstudio1-dashboard. Same gauges, log feed, process table,
LLM bay, hyperdrive buttons — port 9931, Cadillac Eldorado red/ivory
paint scheme so the two dashboards visually distinguish on glance.
Color swap: turquoise -> Cherokee Red (#b22234), Colonial Cream ->
Indian Ivory (#f4ecd8). Year badge: 1957 Eldorado. Mac Studio TWO.
Reads localhost ollama (Mac2). Currently running gemma3:12b
+ qwen3:14b for idea-loop debate panels.
Registered under pm2 as macstudio2-dashboard for Mac2 supervision.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
A .gitignoreA launchd/com.steve.macstudio2-dashboard.plistA package-lock.jsonA package.jsonA public/index.htmlA server.js
Diff
commit 2a2303567aede6a3cb5cf3491745c0bf69db25a7
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Thu May 7 23:56:35 2026 -0700
feat: macstudio2-dashboard v0.1 — 57 Cadillac Eldorado paint
Sister to macstudio1-dashboard. Same gauges, log feed, process table,
LLM bay, hyperdrive buttons — port 9931, Cadillac Eldorado red/ivory
paint scheme so the two dashboards visually distinguish on glance.
Color swap: turquoise -> Cherokee Red (#b22234), Colonial Cream ->
Indian Ivory (#f4ecd8). Year badge: 1957 Eldorado. Mac Studio TWO.
Reads localhost ollama (Mac2). Currently running gemma3:12b
+ qwen3:14b for idea-loop debate panels.
Registered under pm2 as macstudio2-dashboard for Mac2 supervision.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
.gitignore | 4 +
launchd/com.steve.macstudio2-dashboard.plist | 29 +
package-lock.json | 842 +++++++++++++++++++++++
package.json | 13 +
public/index.html | 986 +++++++++++++++++++++++++++
server.js | 295 ++++++++
6 files changed, 2169 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..664269a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+node_modules/
+*.log
+.env*
+
diff --git a/launchd/com.steve.macstudio2-dashboard.plist b/launchd/com.steve.macstudio2-dashboard.plist
new file mode 100644
index 0000000..5573421
--- /dev/null
+++ b/launchd/com.steve.macstudio2-dashboard.plist
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>com.steve.macstudio2-dashboard</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/bin/bash</string>
+ <string>-lc</string>
+ <string>cd /Users/stevestudio2/Projects/macstudio2-dashboard && /usr/local/bin/node server.js</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>KeepAlive</key>
+ <true/>
+ <key>StandardOutPath</key>
+ <string>/Users/stevestudio2/Projects/macstudio2-dashboard/logs/dashboard.out.log</string>
+ <key>StandardErrorPath</key>
+ <string>/Users/stevestudio2/Projects/macstudio2-dashboard/logs/dashboard.err.log</string>
+ <key>EnvironmentVariables</key>
+ <dict>
+ <key>PORT</key>
+ <string>9931</string>
+ <key>OLLAMA</key>
+ <string>http://localhost:11434</string>
+ </dict>
+</dict>
+</plist>
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..744f13a
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,842 @@
+{
+ "name": "macstudio1-dashboard",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "macstudio1-dashboard",
+ "version": "0.1.0",
+ "dependencies": {
+ "express": "^4.21.1"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+ "license": "MIT"
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.5",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
+ "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.15.1",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/body-parser/node_modules/qs": {
+ "version": "6.15.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
+ "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.22.1",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
+ "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "~1.20.3",
+ "content-disposition": "~0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "~0.7.1",
+ "cookie-signature": "~1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.3.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.0",
+ "merge-descriptors": "1.0.3",
+ "methods": "~1.1.2",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "~0.1.12",
+ "proxy-addr": "~2.0.7",
+ "qs": "~6.14.0",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "~0.19.0",
+ "serve-static": "~1.16.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
+ "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.14.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
+ "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/send": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..11e6cb6
--- /dev/null
+++ b/package.json
@@ -0,0 +1,13 @@
+{
+ "name": "macstudio1-dashboard",
+ "version": "0.1.0",
+ "private": true,
+ "description": "'57 Chevy convertible dashboard for Mac Studio 1 — Ollama state, CPU/RAM, hyperdrive controls",
+ "main": "server.js",
+ "scripts": {
+ "start": "node server.js"
+ },
+ "dependencies": {
+ "express": "^4.21.1"
+ }
+}
diff --git a/public/index.html b/public/index.html
new file mode 100644
index 0000000..5bb3cf8
--- /dev/null
+++ b/public/index.html
@@ -0,0 +1,986 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<title>Mac Studio 1 · '57 Bel Air</title>
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<style>
+@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Bungee+Shade&family=Lobster&family=Special+Elite&family=JetBrains+Mono:wght@400;600&display=swap');
+
+:root {
+ --turq: #4abdc5;
+ --turq-dark: #2a7c83;
+ --cream: #f0e5c8;
+ --cream-shadow: #c9b894;
+ --chrome-1: #f8f8f8;
+ --chrome-2: #b6b6b6;
+ --chrome-3: #686868;
+ --red: #c8243a;
+ --red-glow: #ff5060;
+ --leather: #4d2c1d;
+ --leather-light: #7d4a30;
+ --black: #15110d;
+ --gold: #d4b683;
+}
+
+* { box-sizing: border-box; }
+html, body {
+ margin: 0; min-height: 100vh;
+ background:
+ radial-gradient(ellipse at center top, rgba(74, 189, 197, 0.4), rgba(15, 17, 13, 0.85) 60%),
+ linear-gradient(180deg, var(--cream) 0%, var(--turq) 60%, var(--turq-dark) 100%);
+ font-family: 'JetBrains Mono', monospace;
+ color: var(--black);
+ overflow-x: hidden;
+}
+
+/* Era stripe — turquoise/cream two-tone divider that runs across the top */
+.tail-fin {
+ position: absolute; top: 0; left: 0; right: 0; height: 8px;
+ background: linear-gradient(90deg, var(--turq) 0%, var(--cream) 50%, var(--turq) 100%);
+ border-bottom: 2px solid var(--chrome-2);
+ box-shadow: 0 0 12px rgba(212, 182, 131, 0.6);
+}
+
+header.masthead {
+ text-align: center;
+ padding: 36px 24px 18px;
+ position: relative;
+}
+
+.brand {
+ font-family: 'Lobster', cursive;
+ font-size: 78px;
+ color: var(--cream);
+ text-shadow:
+ -2px 0 0 var(--chrome-2),
+ 2px 0 0 var(--chrome-2),
+ 0 -2px 0 var(--chrome-2),
+ 0 2px 0 var(--chrome-2),
+ 0 0 18px rgba(212, 182, 131, 0.65),
+ 4px 6px 0 rgba(20, 17, 13, 0.4);
+ letter-spacing: 0.02em;
+ line-height: 0.95;
+ margin: 0;
+}
+.brand .sub {
+ display: block;
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 18px;
+ letter-spacing: 0.4em;
+ color: var(--gold);
+ text-shadow: 1px 1px 0 var(--black);
+ margin-top: 6px;
+}
+.year-badge {
+ display: inline-block;
+ font-family: 'Bungee Shade', sans-serif;
+ font-size: 22px;
+ background: var(--cream);
+ color: var(--red);
+ padding: 4px 14px;
+ border: 3px solid var(--chrome-2);
+ border-radius: 24px;
+ margin-top: 14px;
+ box-shadow: inset 0 0 8px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.3);
+}
+
+/* The dashboard — looks like the chrome panel of a '57 Bel Air */
+.dash {
+ max-width: 1200px;
+ margin: 32px auto 0;
+ padding: 38px 32px 40px;
+ background:
+ linear-gradient(180deg, var(--cream) 0%, var(--cream-shadow) 100%);
+ border: 5px solid var(--chrome-2);
+ border-radius: 28px 28px 12px 12px;
+ box-shadow:
+ inset 0 0 0 2px var(--chrome-1),
+ inset 0 0 28px rgba(120, 90, 50, 0.35),
+ 0 18px 40px rgba(0, 0, 0, 0.55),
+ 0 0 0 8px var(--turq) /* the turquoise paint surrounding the chrome */;
+ position: relative;
+}
+
+/* Chrome trim line down the middle of the dash */
+.dash::before {
+ content: '';
+ position: absolute;
+ top: 8px; bottom: 8px;
+ left: 50%;
+ width: 4px;
+ margin-left: -2px;
+ background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-3) 50%, var(--chrome-1) 100%);
+ border-radius: 2px;
+ opacity: 0.55;
+}
+
+/* Gauge cluster */
+.gauges {
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+ gap: 24px;
+ align-items: center;
+ margin-bottom: 36px;
+}
+
+.gauge {
+ position: relative;
+ width: 100%;
+ aspect-ratio: 1 / 1;
+ max-width: 280px;
+ margin: 0 auto;
+ border-radius: 50%;
+ background:
+ radial-gradient(circle at 30% 30%, var(--chrome-1) 0%, var(--chrome-2) 30%, var(--chrome-3) 75%, var(--black) 100%);
+ box-shadow:
+ inset 0 0 0 8px var(--chrome-2),
+ inset 0 0 0 12px var(--black),
+ inset 0 0 30px rgba(0, 0, 0, 0.7),
+ 0 6px 16px rgba(0, 0, 0, 0.45);
+}
+.gauge .face {
+ position: absolute;
+ inset: 18px;
+ border-radius: 50%;
+ background:
+ radial-gradient(circle at 50% 30%, #2a3a3f 0%, #0a0e10 80%);
+ border: 2px solid var(--chrome-3);
+ overflow: hidden;
+}
+.gauge .face::before {
+ /* tick marks */
+ content: '';
+ position: absolute;
+ inset: 0;
+ background:
+ repeating-conic-gradient(
+ from -135deg at 50% 50%,
+ var(--chrome-1) 0deg 1deg, transparent 1deg 27deg
+ );
+ mask: radial-gradient(circle at 50% 50%, transparent 0 38%, black 38% 48%, transparent 48% 100%);
+ -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 38%, black 38% 48%, transparent 48% 100%);
+ opacity: 0.7;
+}
+.gauge .label {
+ position: absolute;
+ top: 28%;
+ left: 0; right: 0;
+ text-align: center;
+ font-family: 'Special Elite', monospace;
+ font-size: 11px;
+ letter-spacing: 0.32em;
+ color: var(--cream);
+ text-transform: uppercase;
+ z-index: 2;
+}
+.gauge .needle {
+ position: absolute;
+ bottom: 50%;
+ left: 50%;
+ width: 4px;
+ height: 38%;
+ margin-left: -2px;
+ background: linear-gradient(180deg, var(--red-glow) 0%, var(--red) 70%, #6b0010 100%);
+ transform-origin: 50% 100%;
+ transform: rotate(-135deg);
+ transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
+ box-shadow: 0 0 6px var(--red), 0 0 14px rgba(255, 80, 96, 0.4);
+ z-index: 3;
+ border-radius: 2px;
+}
+.gauge .pin {
+ position: absolute;
+ width: 24px; height: 24px;
+ border-radius: 50%;
+ background: radial-gradient(circle at 30% 30%, var(--chrome-1), var(--chrome-3));
+ top: 50%; left: 50%;
+ margin: -12px 0 0 -12px;
+ z-index: 4;
+ box-shadow: 0 0 0 2px var(--black), 0 2px 4px rgba(0,0,0,0.6);
+}
+.gauge .value {
+ position: absolute;
+ bottom: 22%;
+ left: 0; right: 0;
+ text-align: center;
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 36px;
+ color: var(--cream);
+ z-index: 5;
+ text-shadow: 0 0 8px rgba(74, 189, 197, 0.6);
+}
+.gauge .units {
+ position: absolute;
+ bottom: 14%;
+ left: 0; right: 0;
+ text-align: center;
+ font-family: 'Special Elite', monospace;
+ font-size: 10px;
+ letter-spacing: 0.3em;
+ color: var(--cream);
+ z-index: 5;
+ opacity: 0.65;
+}
+
+/* LLM status panel — the radio dial */
+.radio {
+ margin-top: 8px;
+ background:
+ repeating-linear-gradient(180deg, rgba(0,0,0,0.04) 0px, transparent 1px, transparent 4px),
+ linear-gradient(180deg, var(--leather-light) 0%, var(--leather) 100%);
+ border: 4px solid var(--chrome-2);
+ border-radius: 6px;
+ padding: 18px 22px;
+ box-shadow:
+ inset 0 0 0 2px var(--chrome-1),
+ inset 0 0 16px rgba(0, 0, 0, 0.45),
+ 0 4px 10px rgba(0, 0, 0, 0.4);
+ position: relative;
+ margin-bottom: 36px;
+}
+.radio::before, .radio::after {
+ /* speaker grilles */
+ content: '';
+ position: absolute;
+ top: 50%; transform: translateY(-50%);
+ width: 36px; height: 60px;
+ background:
+ repeating-linear-gradient(0deg, var(--chrome-3) 0px, var(--chrome-3) 2px, var(--chrome-1) 2px, var(--chrome-1) 4px);
+ border: 2px solid var(--chrome-1);
+ border-radius: 4px;
+}
+.radio::before { left: 8px; }
+.radio::after { right: 8px; }
+.radio-band {
+ text-align: center;
+ font-family: 'Special Elite', monospace;
+ font-size: 11px;
+ letter-spacing: 0.4em;
+ color: var(--cream);
+ margin-bottom: 8px;
+ text-transform: uppercase;
+}
+.station {
+ text-align: center;
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 28px;
+ color: var(--gold);
+ text-shadow: 0 0 14px rgba(212, 182, 131, 0.7);
+ letter-spacing: 0.04em;
+ margin: 4px 0;
+ min-height: 36px;
+}
+.station.idle { color: var(--chrome-3); text-shadow: none; opacity: 0.65; }
+.subtitle {
+ text-align: center;
+ font-family: 'Special Elite', monospace;
+ font-size: 11px;
+ letter-spacing: 0.18em;
+ color: var(--cream);
+ text-transform: uppercase;
+ opacity: 0.85;
+}
+.llm-rows {
+ margin: 14px 32px 0;
+ border-top: 1px dotted rgba(212, 182, 131, 0.4);
+ padding-top: 10px;
+}
+.llm-row {
+ display: grid;
+ grid-template-columns: 1.4fr 0.6fr 0.7fr 0.9fr 1fr;
+ gap: 10px;
+ padding: 6px 0;
+ border-bottom: 1px dotted rgba(212, 182, 131, 0.18);
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 12px;
+ color: var(--cream);
+ align-items: center;
+}
+.llm-row:last-child { border-bottom: none; }
+.llm-row .nm { color: var(--gold); font-weight: 600; }
+.llm-row .num { text-align: right; font-variant-numeric: tabular-nums; }
+.llm-row .pinned { color: var(--turq); }
+.llm-row .pinned::before { content: '⚓ '; }
+.llm-row .countdown { color: var(--red-glow); }
+.llm-foot {
+ margin: 8px 32px 0;
+ padding-top: 8px;
+ border-top: 1px dotted rgba(212, 182, 131, 0.4);
+ font-family: 'Special Elite', monospace;
+ font-size: 10px;
+ letter-spacing: 0.18em;
+ color: var(--gold);
+ text-transform: uppercase;
+ text-align: center;
+ display: flex;
+ gap: 18px;
+ justify-content: center;
+ flex-wrap: wrap;
+}
+.llm-foot span b { color: var(--cream); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
+
+/* Push buttons — chrome cigarette-lighter style */
+.controls {
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+ gap: 18px;
+ margin-top: 8px;
+}
+.btn {
+ background:
+ radial-gradient(circle at 30% 25%, var(--chrome-1) 0%, var(--chrome-2) 50%, var(--chrome-3) 100%);
+ border: none;
+ border-radius: 14px;
+ padding: 22px 14px 18px;
+ cursor: pointer;
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 16px;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--leather);
+ box-shadow:
+ inset 0 -3px 6px rgba(0, 0, 0, 0.35),
+ inset 0 3px 6px rgba(255, 255, 255, 0.6),
+ 0 6px 12px rgba(0, 0, 0, 0.45);
+ position: relative;
+ transition: transform 0.1s ease, box-shadow 0.15s ease;
+ overflow: hidden;
+}
+.btn:active {
+ transform: translateY(2px);
+ box-shadow:
+ inset 0 -1px 3px rgba(0, 0, 0, 0.35),
+ inset 0 1px 3px rgba(255, 255, 255, 0.6),
+ 0 2px 4px rgba(0, 0, 0, 0.4);
+}
+.btn .light {
+ display: block;
+ width: 14px; height: 14px;
+ border-radius: 50%;
+ background: radial-gradient(circle at 30% 30%, #6b0010 0%, #3a000a 80%);
+ margin: 0 auto 10px;
+ box-shadow: inset 0 0 4px rgba(0,0,0,0.6);
+ transition: background 0.2s ease, box-shadow 0.2s ease;
+}
+.btn.active .light {
+ background: radial-gradient(circle at 30% 30%, var(--red-glow) 0%, var(--red) 70%);
+ box-shadow: 0 0 12px var(--red-glow), inset 0 0 6px var(--red-glow);
+ animation: pulse 1.2s infinite alternate;
+}
+@keyframes pulse {
+ from { opacity: 0.85; }
+ to { opacity: 1; }
+}
+.btn .sub-label {
+ display: block;
+ font-family: 'Special Elite', monospace;
+ font-size: 9px;
+ letter-spacing: 0.18em;
+ margin-top: 4px;
+ color: var(--leather);
+ opacity: 0.75;
+ text-transform: uppercase;
+}
+.btn[data-mode="hyperdrive"] { border: 3px solid var(--red); }
+.btn[data-mode="max-ram"] { border: 3px solid var(--turq-dark); }
+.btn[data-mode="idle"] { border: 3px solid var(--chrome-3); }
+
+/* Recent activity strip — like an odometer */
+.odometer {
+ margin-top: 32px;
+ padding: 12px 18px;
+ background: var(--black);
+ border: 3px solid var(--chrome-2);
+ border-radius: 6px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 13px;
+ color: #d4ffd4;
+ box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
+ letter-spacing: 0.08em;
+}
+.odometer .digit {
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 20px;
+ color: var(--gold);
+ letter-spacing: 0.16em;
+}
+
+/* Tach history strip — under chrome bezel, tachometer aesthetic */
+.hist {
+ margin-bottom: 24px;
+ background: linear-gradient(180deg, #0e1314 0%, #181f20 100%);
+ border: 4px solid var(--chrome-2);
+ border-radius: 6px;
+ padding: 12px 18px;
+ box-shadow: inset 0 0 0 2px var(--chrome-1), inset 0 0 14px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.35);
+}
+.hist-title {
+ text-align: center;
+ font-family: 'Special Elite', monospace;
+ font-size: 10px;
+ letter-spacing: 0.32em;
+ color: var(--gold);
+ margin-bottom: 8px;
+ text-transform: uppercase;
+}
+.hist-row {
+ display: grid;
+ grid-template-columns: 60px 1fr 60px;
+ align-items: center;
+ gap: 12px;
+ padding: 4px 0;
+}
+.hist-label {
+ font-family: 'Bowlby One SC', sans-serif;
+ font-size: 13px;
+ letter-spacing: 0.18em;
+ color: var(--cream);
+ text-transform: uppercase;
+}
+.hist-now {
+ font-family: 'JetBrains Mono', monospace;
+ font-variant-numeric: tabular-nums;
+ font-weight: 600;
+ color: var(--metal-glow);
+ text-align: right;
+ font-size: 14px;
+}
+.hist-svg {
+ width: 100%;
+ height: 38px;
+ background:
+ repeating-linear-gradient(0deg, rgba(212,182,131,0.08) 0px, rgba(212,182,131,0.08) 1px, transparent 1px, transparent 19px),
+ repeating-linear-gradient(90deg, rgba(212,182,131,0.06) 0px, rgba(212,182,131,0.06) 1px, transparent 1px, transparent 30px);
+ border: 1px solid var(--chrome-3);
+ border-radius: 2px;
+}
+
+/* Engine bay process table — chrome trim, leather background, brass header */
+.proc-table {
+ margin-top: 32px;
+ background: linear-gradient(180deg, var(--leather-light) 0%, var(--leather) 100%);
+ border: 4px solid var(--chrome-2);
+ border-radius: 6px;
+ padding: 16px 18px 18px;
+ box-shadow:
+ inset 0 0 0 2px var(--chrome-1),
+ inset 0 0 16px rgba(0, 0, 0, 0.5),
+ 0 4px 10px rgba(0, 0, 0, 0.4);
+}
+.proc-head {
+ display: flex; justify-content: space-between; align-items: baseline;
+ border-bottom: 2px solid var(--chrome-2);
+ padding-bottom: 10px; margin-bottom: 10px;
+}
+.proc-head h3 {
+ margin: 0;
+ font-family: 'Lobster', cursive;
+ font-size: 26px;
+ color: var(--cream);
+ text-shadow: 0 0 10px rgba(212, 182, 131, 0.5);
+}
+.proc-count {
+ font-family: 'Special Elite', monospace;
+ font-size: 11px;
+ letter-spacing: 0.28em;
+ color: var(--gold);
+ text-transform: uppercase;
+}
+.proc-table table {
+ width: 100%;
+ border-collapse: collapse;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 12px;
+ color: var(--cream);
+}
+.proc-table thead th {
+ position: sticky; top: 0;
+ text-align: left;
+ padding: 8px 10px;
+ font-family: 'Special Elite', monospace;
+ font-size: 10px;
+ letter-spacing: 0.22em;
+ text-transform: uppercase;
+ color: var(--gold);
+ border-bottom: 1px solid var(--chrome-3);
+ background: var(--leather);
+ cursor: pointer;
+ user-select: none;
+ white-space: nowrap;
+}
+.proc-table thead th:hover { color: var(--cream); }
+.proc-table thead th.active { color: var(--turq); }
+.proc-table thead th.active::after {
+ content: ' ▾';
+ color: var(--turq);
+}
+.proc-table thead th.active.asc::after { content: ' ▴'; }
+.proc-table tbody tr {
+ border-bottom: 1px dotted rgba(212, 182, 131, 0.18);
+ transition: background 0.15s;
+}
+.proc-table tbody tr:hover { background: rgba(74, 189, 197, 0.12); }
+.proc-table tbody td {
+ padding: 5px 10px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 280px;
+}
+.proc-table td.num {
+ text-align: right;
+ font-variant-numeric: tabular-nums;
+ color: var(--gold);
+}
+.proc-table tbody td.cmd {
+ font-family: 'Special Elite', monospace;
+ color: var(--cream);
+ max-width: 380px;
+}
+.proc-table tbody tr.hot {
+ background: rgba(200, 36, 58, 0.18);
+}
+
+/* Ollama live log — ticker-tape style under the gauges */
+.ollama-log {
+ margin-top: 32px;
+ background: linear-gradient(180deg, var(--leather-light) 0%, var(--leather) 100%);
+ border: 4px solid var(--chrome-2);
+ border-radius: 6px;
+ padding: 16px 18px 18px;
+ box-shadow:
+ inset 0 0 0 2px var(--chrome-1),
+ inset 0 0 16px rgba(0, 0, 0, 0.5),
+ 0 4px 10px rgba(0, 0, 0, 0.4);
+}
+.log-feed {
+ max-height: 280px;
+ overflow-y: auto;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 11px;
+ line-height: 1.55;
+ background: var(--black);
+ border: 1px solid var(--chrome-3);
+ padding: 10px 14px;
+ color: #d4ffd4;
+}
+.log-feed .row { padding: 2px 0; border-bottom: 1px dotted rgba(212, 182, 131, 0.08); }
+.log-feed .row .ts { color: var(--gold); margin-right: 8px; }
+.log-feed .row .status { display: inline-block; padding: 0 6px; border-radius: 2px; font-weight: 600; margin-right: 6px; }
+.log-feed .row .status.s2xx { background: #2a7c4a; color: #fff; }
+.log-feed .row .status.s4xx { background: #b8860b; color: #fff; }
+.log-feed .row .status.s5xx { background: #c8243a; color: #fff; }
+.log-feed .row .method { color: var(--turq); margin-right: 6px; }
+.log-feed .row .path { color: var(--cream); }
+.log-feed .row .dur { color: var(--metal-glow); margin-left: 8px; }
+.log-feed .row.event { color: #b8b8b8; font-style: italic; }
+.log-feed .row.event .lvl { color: var(--turq); margin-right: 6px; }
+.log-feed .row.raw { color: var(--ink-mute); }
+
+footer {
+ text-align: center;
+ padding: 32px 24px 64px;
+ font-family: 'Special Elite', monospace;
+ font-size: 11px;
+ letter-spacing: 0.28em;
+ color: var(--cream);
+ text-transform: uppercase;
+ opacity: 0.7;
+}
+footer a { color: var(--gold); text-decoration: none; }
+</style>
+</head>
+<body>
+
+<div class="tail-fin"></div>
+
+<header class="masthead">
+ <h1 class="brand">Mac Studio<br><span class="sub">— ONE —</span></h1>
+ <span class="year-badge">'57 Bel Air</span>
+ <div style="margin-top:8px;font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.32em;color:rgba(212,182,131,0.7);text-transform:uppercase">build v0.4 · scroll for engine bay + ticker tape</div>
+</header>
+
+<main class="dash">
+
+ <!-- Tachometer-style history strip — last 60 ticks of CPU% + RAM% -->
+ <div class="hist">
+ <div class="hist-title">— TACH · last 60 seconds —</div>
+ <div class="hist-row">
+ <span class="hist-label">CPU</span>
+ <svg id="hist-cpu" class="hist-svg" viewBox="0 0 360 60" preserveAspectRatio="none"></svg>
+ <span class="hist-now" id="hist-cpu-now">0%</span>
+ </div>
+ <div class="hist-row">
+ <span class="hist-label">RAM</span>
+ <svg id="hist-ram" class="hist-svg" viewBox="0 0 360 60" preserveAspectRatio="none"></svg>
+ <span class="hist-now" id="hist-ram-now">0%</span>
+ </div>
+ </div>
+
+ <!-- LLM panel — Now Broadcasting + per-model rows + ollama proc stats -->
+ <div class="radio">
+ <div class="radio-band">— LLM bay · now broadcasting —</div>
+ <div class="station idle" id="station">engine off</div>
+ <div class="subtitle" id="station-sub">no model loaded · standing by</div>
+ <div id="llm-rows" class="llm-rows"></div>
+ <div id="llm-foot" class="llm-foot"></div>
+ </div>
+
+ <!-- Three round gauges -->
+ <div class="gauges">
+ <div class="gauge" data-key="cpu">
+ <div class="face"></div>
+ <div class="label">CPU</div>
+ <div class="needle" data-needle="cpu"></div>
+ <div class="value" data-value="cpu">0</div>
+ <div class="units">%</div>
+ <div class="pin"></div>
+ </div>
+ <div class="gauge" data-key="ram">
+ <div class="face"></div>
+ <div class="label">MEMORY</div>
+ <div class="needle" data-needle="ram"></div>
+ <div class="value" data-value="ram">0</div>
+ <div class="units">%</div>
+ <div class="pin"></div>
+ </div>
+ <div class="gauge" data-key="vram">
+ <div class="face"></div>
+ <div class="label">V·RAM</div>
+ <div class="needle" data-needle="vram"></div>
+ <div class="value" data-value="vram">0</div>
+ <div class="units">GB</div>
+ <div class="pin"></div>
+ </div>
+ </div>
+
+ <!-- Push-button shifter / hyperdrive controls -->
+ <div class="controls">
+ <button class="btn" data-mode="hyperdrive" onclick="trigger('hyperdrive', this)">
+ <span class="light"></span>
+ 🚀 Hyperdrive
+ <span class="sub-label">high power · pin models</span>
+ </button>
+ <button class="btn" data-mode="max-ram" onclick="trigger('max-ram', this)">
+ <span class="light"></span>
+ 💪 Max RAM
+ <span class="sub-label">load all · keep alive</span>
+ </button>
+ <button class="btn" data-mode="idle" onclick="trigger('idle', this)">
+ <span class="light"></span>
+ 🛑 Idle
+ <span class="sub-label">unload · default power</span>
+ </button>
+ </div>
+
+ <!-- Odometer-style activity counter -->
+ <div class="odometer">
+ <span>UPTIME</span>
+ <span class="digit" id="odo-uptime">000000</span>
+ <span>POWER MODE</span>
+ <span class="digit" id="odo-power">AUTO</span>
+ <span>CALLS</span>
+ <span class="digit" id="odo-calls">0000</span>
+ </div>
+
+ <!-- Ollama live log tail — what's actually hitting the server -->
+ <section class="ollama-log">
+ <div class="proc-head">
+ <h3>Ticker tape · Ollama HTTP traffic</h3>
+ <span class="proc-count" id="log-count">— lines</span>
+ </div>
+ <div id="log-feed" class="log-feed"></div>
+ </section>
+
+ <!-- Live process list -->
+ <section class="proc-table">
+ <div class="proc-head">
+ <h3>Engine bay · live processes</h3>
+ <span class="proc-count" id="proc-count">— running</span>
+ </div>
+ <table id="proc">
+ <thead>
+ <tr>
+ <th data-sort="pid">PID</th>
+ <th data-sort="user">USER</th>
+ <th data-sort="cpu" class="active desc">CPU %</th>
+ <th data-sort="mem">MEM %</th>
+ <th data-sort="rss_mb">RSS (MB)</th>
+ <th data-sort="time">TIME</th>
+ <th data-sort="command">COMMAND</th>
+ </tr>
+ </thead>
+ <tbody></tbody>
+ </table>
+ </section>
+
+</main>
+
+<footer>
+ Mac Studio 1 · Sherman Oaks · <a href="http://localhost:9930">localhost:9930</a> ·
+ polling /api/status every 1.2 s
+</footer>
+
+<script>
+const $ = (s, root = document) => root.querySelector(s);
+
+const GAUGE_RANGE = {
+ // -135deg = full counter-clockwise (0), +135deg = full clockwise (max)
+ cpu: { min: 0, max: 100 },
+ ram: { min: 0, max: 100 },
+ vram: { min: 0, max: 64 } // M3 Ultra hits 192GB but most LLMs cap ~30-60GB VRAM
+};
+
+function setGauge(key, value, displayValue, displayUnits) {
+ const range = GAUGE_RANGE[key];
+ const clamped = Math.max(range.min, Math.min(range.max, value));
+ const t = (clamped - range.min) / (range.max - range.min);
+ const angle = -135 + t * 270;
+ const needle = document.querySelector(`[data-needle="${key}"]`);
+ if (needle) needle.style.transform = `rotate(${angle}deg)`;
+ const valueEl = document.querySelector(`[data-value="${key}"]`);
+ if (valueEl) valueEl.textContent = displayValue;
+ if (displayUnits) {
+ const u = valueEl?.parentElement?.querySelector('.units');
+ if (u) u.textContent = displayUnits;
+ }
+}
+
+function fmtUptime(secs) {
+ const d = Math.floor(secs / 86400);
+ const h = Math.floor((secs % 86400) / 3600);
+ const m = Math.floor((secs % 3600) / 60);
+ if (d > 0) return `${d}d ${h}h`;
+ if (h > 0) return `${h}h ${String(m).padStart(2,'0')}m`;
+ return `${m}m ${String(secs % 60).padStart(2,'0')}s`;
+}
+
+let CALL_COUNT = 0;
+let LAST_MODEL = null;
+const HIST_LEN = 60;
+const histCpu = new Array(HIST_LEN).fill(0);
+const histRam = new Array(HIST_LEN).fill(0);
+
+function paintHist(svgId, data, color) {
+ const svg = document.getElementById(svgId);
+ if (!svg) return;
+ const W = 360, H = 60;
+ const max = 100;
+ const stepX = W / (HIST_LEN - 1);
+ const points = data.map((v, i) => `${(i * stepX).toFixed(1)},${(H - (v / max) * H).toFixed(1)}`).join(' ');
+ const polyArea = `M0,${H} L${points.split(' ').join(' L')} L${W},${H} Z`;
+ svg.innerHTML = `
+ <path d="${polyArea}" fill="${color}" fill-opacity="0.22"/>
+ <polyline points="${points}" fill="none" stroke="${color}" stroke-width="1.6"/>
+ <circle cx="${(HIST_LEN - 1) * stepX}" cy="${H - (data[data.length-1] / max) * H}" r="2.5" fill="${color}"/>
+ `;
+}
+
+async function tick() {
+ try {
+ const r = await fetch('/api/status').then(r => r.json());
+
+ // CPU + RAM gauges
+ setGauge('cpu', r.cpu.total || 0, Math.round(r.cpu.total || 0));
+ setGauge('ram', r.memory.used_pct || 0, Math.round(r.memory.used_pct || 0));
+
+ // Push to history ring buffers + paint
+ histCpu.shift(); histCpu.push(r.cpu.total || 0);
+ histRam.shift(); histRam.push(r.memory.used_pct || 0);
+ paintHist('hist-cpu', histCpu, '#c8243a');
+ paintHist('hist-ram', histRam, '#4abdc5');
+ document.getElementById('hist-cpu-now').textContent = (r.cpu.total || 0).toFixed(1) + '%';
+ document.getElementById('hist-ram-now').textContent = (r.memory.used_pct || 0).toFixed(1) + '%';
+
+ // VRAM = sum of size_vram_bytes across loaded models
+ const vramBytes = (r.ollama.models || []).reduce((s, m) => s + (m.size_vram_bytes || 0), 0);
+ const vramGB = vramBytes / (1024 ** 3);
+ setGauge('vram', vramGB, vramGB.toFixed(1));
+
+ // Radio panel — current LLM
+ const station = document.getElementById('station');
+ const sub = document.getElementById('station-sub');
+ const llmRows = document.getElementById('llm-rows');
+ const llmFoot = document.getElementById('llm-foot');
+ const fmtBytes = (b) => {
+ if (!b) return '0 GB';
+ const gb = b / (1024 ** 3);
+ return gb >= 1 ? gb.toFixed(2) + ' GB' : (b / (1024 ** 2)).toFixed(0) + ' MB';
+ };
+ const fmtCountdown = (iso) => {
+ if (!iso) return '<span class="pinned">pinned</span>';
+ const sec = Math.round((new Date(iso).getTime() - Date.now()) / 1000);
+ if (sec < 0) return '<span class="countdown">expired</span>';
+ // Ollama uses year-2318 for keep_alive=-1 (effectively forever).
+ // Anything >180 days out is "pinned" not a countdown.
+ if (sec > 180 * 86400) return '<span class="pinned">pinned</span>';
+ if (sec < 60) return '<span class="countdown">' + sec + 's</span>';
+ if (sec < 3600) return Math.floor(sec / 60) + 'm ' + (sec % 60) + 's';
+ return Math.floor(sec / 3600) + 'h ' + Math.floor((sec % 3600) / 60) + 'm';
+ };
+ if (r.ollama.models && r.ollama.models.length > 0) {
+ const m = r.ollama.models[0];
+ station.textContent = m.name;
+ station.classList.remove('idle');
+ const more = r.ollama.models.length > 1 ? ` · +${r.ollama.models.length - 1} more loaded` : '';
+ const expSec = m.expires_at ? Math.max(0, Math.round((new Date(m.expires_at).getTime() - Date.now()) / 1000)) : -1;
+ sub.textContent = `${(m.details && m.details.parameter_size) || ''} · ${(vramGB).toFixed(1)} GB VRAM${expSec >= 0 ? ' · expires in ' + expSec + 's' : ' · pinned'}${more}`;
+ if (m.name !== LAST_MODEL) {
+ CALL_COUNT++;
+ LAST_MODEL = m.name;
+ }
+
+ // Per-model rows
+ llmRows.innerHTML = r.ollama.models.map(mm => {
+ const det = mm.details || {};
+ return `<div class="llm-row">
+ <span class="nm">${mm.name}</span>
+ <span>${det.parameter_size || ''}</span>
+ <span>${det.quantization_level || ''}</span>
+ <span class="num">${fmtBytes(mm.size_vram_bytes)}</span>
+ <span class="num">${fmtCountdown(mm.expires_at)}</span>
+ </div>`;
+ }).join('');
+ } else {
+ station.textContent = 'engine off';
+ station.classList.add('idle');
+ sub.textContent = 'no model loaded · standing by';
+ llmRows.innerHTML = '';
+ LAST_MODEL = null;
+ }
+
+ // Foot stats — ollama process CPU/RAM + installed model count + total disk
+ const ollProc = (r.ollama_procs || []).find(p => /ollama/i.test(p.command)) || (r.ollama_procs || [])[0];
+ const installedCount = r.ollama.installed_count || 0;
+ const installedDisk = r.ollama.total_installed_disk_bytes || 0;
+ const ollPid = ollProc ? `<span>PID <b>${ollProc.pid}</b></span>` : '';
+ const ollCpu = ollProc ? `<span>OLLAMA CPU <b>${ollProc.cpu.toFixed(1)}%</b></span>` : '';
+ const ollMem = ollProc ? `<span>OLLAMA RAM <b>${ollProc.rss_mb.toFixed(0)} MB</b></span>` : '';
+ const ollUp = ollProc ? `<span>UP <b>${ollProc.etime}</b></span>` : '';
+ const inst = `<span>INSTALLED <b>${installedCount}</b> models · <b>${(installedDisk / (1024 ** 3)).toFixed(1)} GB</b></span>`;
+ llmFoot.innerHTML = [ollPid, ollCpu, ollMem, ollUp, inst].filter(Boolean).join('');
+
+ // Odometer
+ document.getElementById('odo-uptime').textContent = fmtUptime(r.uptime_s || 0);
+ document.getElementById('odo-power').textContent = (r.power_mode || 'auto').toUpperCase();
+ document.getElementById('odo-calls').textContent = String(CALL_COUNT).padStart(4, '0');
+
+ } catch (e) {
+ console.warn('status fetch failed', e);
+ }
+}
+
+async function trigger(mode, btn) {
+ // Visual feedback: light up the pressed button, dim the others
+ document.querySelectorAll('.btn').forEach(b => b.classList.remove('active'));
+ btn.classList.add('active');
+ try {
+ const r = await fetch('/api/control/' + mode, { method: 'POST' });
+ const j = await r.json();
+ console.log('[control]', mode, j);
+ setTimeout(() => tick(), 400);
+ } catch (e) {
+ console.warn('control failed', e);
+ btn.classList.remove('active');
+ }
+}
+
+tick();
+setInterval(tick, 1200);
+
+// ─── Live process table ────────────────────────────────────────────────
+let PROC_ROWS = [];
+let PROC_SORT = { col: 'cpu', dir: 'desc' };
+
+function fmtNum(n, dec) { return Number(n).toFixed(dec === undefined ? 1 : dec); }
+
+function renderProcs() {
+ const tbody = document.querySelector('#proc tbody');
+ if (!tbody) return;
+ const rows = [...PROC_ROWS];
+ rows.sort((a, b) => {
+ let va = a[PROC_SORT.col], vb = b[PROC_SORT.col];
+ if (typeof va === 'string' && typeof vb === 'string') {
+ return PROC_SORT.dir === 'asc' ? va.localeCompare(vb) : vb.localeCompare(va);
+ }
+ return PROC_SORT.dir === 'asc' ? (va - vb) : (vb - va);
+ });
+ tbody.innerHTML = rows.map(r => {
+ const hot = (r.cpu >= 50 || r.mem >= 10) ? ' class="hot"' : '';
+ const escCmd = String(r.command).replace(/[<>&"]/g, c => ({'<':'<','>':'>','&':'&','"':'"'}[c]));
+ return `<tr${hot}>
+ <td class="num">${r.pid}</td>
+ <td>${r.user}</td>
+ <td class="num">${fmtNum(r.cpu)}</td>
+ <td class="num">${fmtNum(r.mem)}</td>
+ <td class="num">${fmtNum(r.rss_mb, 0)}</td>
+ <td>${r.time}</td>
+ <td class="cmd" title="${escCmd}">${escCmd}</td>
+ </tr>`;
+ }).join('');
+
+ // Sort indicators on headers
+ document.querySelectorAll('#proc thead th').forEach(th => {
+ th.classList.remove('active', 'asc', 'desc');
+ if (th.dataset.sort === PROC_SORT.col) {
+ th.classList.add('active', PROC_SORT.dir);
+ }
+ });
+}
+
+document.querySelectorAll('#proc thead th').forEach(th => {
+ th.addEventListener('click', () => {
+ const col = th.dataset.sort;
+ if (!col) return;
+ if (PROC_SORT.col === col) {
+ PROC_SORT.dir = PROC_SORT.dir === 'asc' ? 'desc' : 'asc';
+ } else {
+ PROC_SORT.col = col;
+ PROC_SORT.dir = (col === 'pid' || col === 'user' || col === 'command') ? 'asc' : 'desc';
+ }
+ renderProcs();
+ });
+});
+
+async function tickProcs() {
+ try {
+ const r = await fetch('/api/processes').then(r => r.json());
+ PROC_ROWS = r.rows || [];
+ document.getElementById('proc-count').textContent = `${PROC_ROWS.length} running`;
+ renderProcs();
+ } catch (e) { /* network blip */ }
+}
+
+tickProcs();
+setInterval(tickProcs, 2500);
+
+// ─── Live Ollama log feed ──────────────────────────────────────────────
+async function tickLog() {
+ try {
+ const r = await fetch('/api/ollama/log?lines=30').then(r => r.json());
+ const feed = document.getElementById('log-feed');
+ document.getElementById('log-count').textContent = `${r.count} lines`;
+ if (!feed) return;
+ const escTxt = s => String(s||'').replace(/[<>&"]/g, c => ({'<':'<','>':'>','&':'&','"':'"'}[c]));
+ feed.innerHTML = r.lines.map(L => {
+ if (L.kind === 'http') {
+ const sClass = L.status >= 500 ? 's5xx' : L.status >= 400 ? 's4xx' : 's2xx';
+ return `<div class="row"><span class="ts">${escTxt(L.ts)}</span><span class="status ${sClass}">${L.status}</span><span class="method">${escTxt(L.method)}</span><span class="path">${escTxt(L.path)}</span><span class="dur">${escTxt(L.dur)}</span></div>`;
+ }
+ if (L.kind === 'event') {
+ return `<div class="row event"><span class="ts">${escTxt(L.ts)}</span><span class="lvl">${L.level}</span>${escTxt(L.msg)}</div>`;
+ }
+ return `<div class="row raw">${escTxt(L.line)}</div>`;
+ }).reverse().join('');
+ } catch (e) { /* network blip */ }
+}
+tickLog();
+setInterval(tickLog, 3000);
+</script>
+
+</body>
+</html>
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..a268dfb
--- /dev/null
+++ b/server.js
@@ -0,0 +1,295 @@
+// Mac Studio 1 dashboard — '57 Chevy convertible aesthetic.
+// - GET /api/status live Ollama state + CPU/RAM
+// - POST /api/control/X hyperdrive controls (RAM-pin models / power mode)
+// - GET / static dashboard
+
+const express = require('express');
+const { exec } = require('node:child_process');
+const fs = require('node:fs');
+const path = require('node:path');
+
+const PORT = parseInt(process.env.PORT || '9930', 10);
+const OLLAMA = process.env.OLLAMA || 'http://localhost:11434';
+
+const app = express();
+app.use(express.json({ limit: '8kb' }));
+// no caching of HTML — dashboard iterates fast, stale HTML hides new sections
+app.use(express.static(path.join(__dirname, 'public'), {
+ maxAge: 0,
+ setHeaders: (res, filePath) => {
+ if (filePath.endsWith('.html')) {
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0');
+ }
+ }
+}));
+
+// Recent activity log — last 30 inference triggers seen via /api/ps polling.
+// Each tick of the front-end's fetch indirectly produces a record when ps changes.
+const recentCalls = []; // { at, model, queue }
+
+function pushCall(model, queue) {
+ recentCalls.unshift({ at: Date.now(), model, queue });
+ while (recentCalls.length > 30) recentCalls.pop();
+}
+
+function execCmd(cmd, timeoutMs = 4000) {
+ return new Promise((resolve) => {
+ exec(cmd, { timeout: timeoutMs, encoding: 'utf8' }, (err, stdout, stderr) => {
+ resolve({ ok: !err, stdout: stdout || '', stderr: stderr || '' });
+ });
+ });
+}
+
+async function readCpu() {
+ // top -l 1 -n 0 -F: one-shot, no per-process detail. Parse the "CPU usage" line.
+ const r = await execCmd('top -l 1 -n 0 -F');
+ const line = r.stdout.split('\n').find(l => /CPU usage:/i.test(l)) || '';
+ const m = line.match(/(\d+\.\d+)%\s+user.*?(\d+\.\d+)%\s+sys.*?(\d+\.\d+)%\s+idle/i);
+ if (!m) return { user: 0, sys: 0, idle: 100, total: 0 };
+ const user = parseFloat(m[1]), sys = parseFloat(m[2]), idle = parseFloat(m[3]);
+ return { user, sys, idle, total: +(user + sys).toFixed(1) };
+}
+
+async function readMemory() {
+ // sysctl hw.memsize for total, vm_stat for active/wired/free pages.
+ const total = await execCmd('sysctl -n hw.memsize');
+ const totalBytes = parseInt(total.stdout.trim(), 10) || 0;
+ const vm = await execCmd('vm_stat');
+ const pageSize = 16384; // ARM page size
+ let used = 0, free = 0;
+ for (const line of vm.stdout.split('\n')) {
+ const m = line.match(/Pages\s+(active|wired down|compressed):\s+(\d+)/i);
+ if (m) used += parseInt(m[2], 10) * pageSize;
+ const f = line.match(/Pages\s+free:\s+(\d+)/i);
+ if (f) free = parseInt(f[1], 10) * pageSize;
+ }
+ return {
+ total_bytes: totalBytes,
+ used_bytes: used,
+ free_bytes: free,
+ used_pct: totalBytes ? +(used / totalBytes * 100).toFixed(1) : 0
+ };
+}
+
+async function readOllama() {
+ try {
+ const [psRes, tagsRes] = await Promise.all([
+ fetch(`${OLLAMA}/api/ps`, { signal: AbortSignal.timeout(2500) }),
+ fetch(`${OLLAMA}/api/tags`, { signal: AbortSignal.timeout(2500) })
+ ]);
+ const ps = psRes.ok ? await psRes.json() : { models: [] };
+ const tags = tagsRes.ok ? await tagsRes.json() : { models: [] };
+
+ const models = (ps.models || []).map(m => ({
+ name: m.name,
+ size_bytes: m.size,
+ size_vram_bytes: m.size_vram,
+ expires_at: m.expires_at,
+ details: m.details,
+ digest: m.digest
+ }));
+
+ const installed = (tags.models || []).map(m => ({
+ name: m.name,
+ size_bytes: m.size,
+ modified_at: m.modified_at,
+ param_size: m.details?.parameter_size || '',
+ quantization: m.details?.quantization_level || '',
+ family: m.details?.family || ''
+ }));
+
+ return {
+ ok: psRes.ok,
+ models,
+ installed,
+ total_loaded_vram_bytes: models.reduce((s, m) => s + (m.size_vram_bytes || 0), 0),
+ total_installed_disk_bytes: installed.reduce((s, m) => s + (m.size_bytes || 0), 0),
+ installed_count: installed.length,
+ loaded_count: models.length
+ };
+ } catch (e) {
+ return { ok: false, error: String(e?.message || e), models: [], installed: [] };
+ }
+}
+
+// Ollama process resource usage — cross-ref with ps so we can answer
+// "the LLM is using X% CPU and Y MB RAM right now"
+async function readOllamaProc() {
+ const r = await execCmd("ps -Ao pid=,%cpu=,%mem=,rss=,etime=,comm= | grep -i 'ollama' | grep -v grep | head -5");
+ const procs = [];
+ for (const line of r.stdout.split('\n')) {
+ const m = line.match(/^\s*(\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+)\s+(\S+)\s+(.+?)\s*$/);
+ if (!m) continue;
+ procs.push({
+ pid: parseInt(m[1], 10),
+ cpu: parseFloat(m[2]),
+ mem: parseFloat(m[3]),
+ rss_mb: +(parseInt(m[4], 10) / 1024).toFixed(1),
+ etime: m[5],
+ command: m[6]
+ });
+ }
+ return procs;
+}
+
+async function readPowerMode() {
+ const r = await execCmd('pmset -g | grep -E "powermode|lowpowermode"');
+ const text = r.stdout.toLowerCase();
+ if (/powermode\s+2/.test(text) || /high power/.test(text)) return 'high';
+ if (/powermode\s+1/.test(text) || /low power/.test(text)) return 'low';
+ return 'auto';
+}
+
+app.get('/api/status', async (_req, res) => {
+ try {
+ const [cpu, mem, oll, power, ollProcs] = await Promise.all([
+ readCpu(), readMemory(), readOllama(), readPowerMode(), readOllamaProc()
+ ]);
+ if (oll.ok && oll.models.length > 0) {
+ pushCall(oll.models[0].name, 0);
+ }
+ res.set('Cache-Control', 'no-store');
+ res.json({
+ ts: Date.now(),
+ hostname: require('os').hostname(),
+ cpu, memory: mem, ollama: oll, ollama_procs: ollProcs, power_mode: power,
+ recent_calls: recentCalls.slice(0, 10),
+ uptime_s: Math.round(require('os').uptime())
+ });
+ } catch (e) {
+ res.status(500).json({ error: String(e.message || e) });
+ }
+});
+
+// Hyperdrive — high-power mode + pin all loaded models in VRAM forever.
+// pmset requires sudo; if denied, returns clear failure (UI shows it).
+app.post('/api/control/hyperdrive', async (_req, res) => {
+ const out = {};
+ // Try power mode (sudo). Will fail without NOPASSWD; that's fine, surface it.
+ out.power = await execCmd('sudo -n pmset -a powermode 2 2>&1');
+ // Pin loaded models — re-call each with keep_alive -1 (Ollama re-applies).
+ const oll = await readOllama();
+ out.pinned = [];
+ for (const m of oll.models) {
+ const r = await execCmd(`curl -sS --max-time 4 -X POST ${OLLAMA}/api/generate -H "Content-Type: application/json" -d '{"model":"${m.name}","prompt":"","keep_alive":-1,"options":{"num_predict":1}}'`);
+ out.pinned.push({ model: m.name, ok: r.ok });
+ }
+ res.json({ ok: true, mode: 'hyperdrive', detail: out });
+});
+
+// Max RAM — load every installed model into memory + pin (-1 keep_alive)
+app.post('/api/control/max-ram', async (_req, res) => {
+ // List all installed models
+ const tagsR = await execCmd(`curl -sS --max-time 4 ${OLLAMA}/api/tags`);
+ let names = [];
+ try {
+ const j = JSON.parse(tagsR.stdout);
+ names = (j.models || []).map(m => m.name);
+ } catch {}
+ const out = [];
+ for (const name of names) {
+ // Fire-and-forget; load with no actual generation
+ const r = await execCmd(`curl -sS --max-time 8 -X POST ${OLLAMA}/api/generate -H "Content-Type: application/json" -d '{"model":"${name}","prompt":"","keep_alive":-1,"options":{"num_predict":1}}'`);
+ out.push({ model: name, ok: r.ok });
+ }
+ res.json({ ok: true, mode: 'max-ram', loaded: out });
+});
+
+// Idle — restore default power mode + unload models
+app.post('/api/control/idle', async (_req, res) => {
+ const out = {};
+ out.power = await execCmd('sudo -n pmset -a powermode 0 2>&1');
+ const oll = await readOllama();
+ out.unloaded = [];
+ for (const m of oll.models) {
+ const r = await execCmd(`curl -sS --max-time 4 -X POST ${OLLAMA}/api/generate -H "Content-Type: application/json" -d '{"model":"${m.name}","prompt":"","keep_alive":0}'`);
+ out.unloaded.push({ model: m.name, ok: r.ok });
+ }
+ res.json({ ok: true, mode: 'idle', detail: out });
+});
+
+// Live process list — parsed ps output. Top 60 by CPU desc by default.
+// Columns: pid, user, cpu, mem, rss_mb, start, time, command
+app.get('/api/processes', async (_req, res) => {
+ try {
+ // -A all, -o explicit columns, sort by -%cpu (descending)
+ // comm = full command (truncated by ps to ~256 chars)
+ const r = await execCmd("ps -Ao pid=,user=,%cpu=,%mem=,rss=,etime=,time=,comm= -r 2>/dev/null | head -200");
+ const rows = [];
+ for (const line of r.stdout.split('\n')) {
+ const m = line.match(/^\s*(\d+)\s+(\S+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+)\s+(\S+)\s+(\S+)\s+(.+?)\s*$/);
+ if (!m) continue;
+ const [, pid, user, cpu, mem, rss, start, time, command] = m;
+ rows.push({
+ pid: parseInt(pid, 10),
+ user,
+ cpu: parseFloat(cpu),
+ mem: parseFloat(mem),
+ rss_mb: +(parseInt(rss, 10) / 1024).toFixed(1),
+ start, time,
+ command: command.slice(0, 80)
+ });
+ }
+ res.set('Cache-Control', 'no-store');
+ res.json({ count: rows.length, rows: rows.slice(0, 60) });
+ } catch (e) {
+ res.status(500).json({ error: String(e.message || e) });
+ }
+});
+
+// Live tail of /tmp/ollama.log — actual prompt/inference activity.
+// Returns last N lines, parsed where possible into structured records.
+app.get('/api/ollama/log', async (req, res) => {
+ try {
+ const lines = Math.min(parseInt(String(req.query.lines || '40'), 10) || 40, 200);
+ const candidates = ['/tmp/ollama.log', '/private/tmp/ollama.log'];
+ let raw = '';
+ for (const p of candidates) {
+ try { raw = await fs.promises.readFile(p, 'utf8'); break; } catch {}
+ }
+ if (!raw) {
+ // Fallback: ~/.ollama/logs/server.log (older installs)
+ const home = process.env.HOME || '';
+ try { raw = await fs.promises.readFile(`${home}/.ollama/logs/server.log`, 'utf8'); } catch {}
+ }
+ const all = raw.split(/\r?\n/).filter(Boolean);
+ const tail = all.slice(-lines);
+ const parsed = tail.map(line => {
+ // [GIN] 2026/05/07 - 21:32:14 | 200 | 12.341s | 127.0.0.1 | POST "/api/chat"
+ const gin = line.match(/^\[GIN\]\s+(\S+)\s+-\s+(\S+)\s+\|\s+(\d+)\s+\|\s+([^|]+)\|\s+(\S+)\s+\|\s+(\S+)\s+"([^"]+)"/);
+ if (gin) {
+ return {
+ kind: 'http',
+ ts: gin[1] + ' ' + gin[2],
+ status: parseInt(gin[3], 10),
+ dur: gin[4].trim(),
+ ip: gin[5],
+ method: gin[6],
+ path: gin[7]
+ };
+ }
+ // time=... level=INFO source=foo.go:NN msg="..."
+ const ev = line.match(/time=(\S+)\s+level=(\w+)\s+source=(\S+)\s+msg="?([^"]+)"?/);
+ if (ev) {
+ return {
+ kind: 'event',
+ ts: ev[1],
+ level: ev[2],
+ source: ev[3],
+ msg: ev[4].slice(0, 200)
+ };
+ }
+ return { kind: 'raw', line: line.slice(0, 200) };
+ });
+ res.set('Cache-Control', 'no-store');
+ res.json({ count: parsed.length, lines: parsed });
+ } catch (e) {
+ res.status(500).json({ error: String(e.message || e) });
+ }
+});
+
+app.get('/api/health', (_req, res) => res.json({ ok: true, ts: Date.now() }));
+
+app.listen(PORT, '0.0.0.0', () => {
+ console.log(`[macstudio1-dashboard] serving on http://0.0.0.0:${PORT}`);
+});
(oldest)
·
back to Macstudio2 Dashboard
·
fix: macstudio2-dashboard retitled + 9931 + Eldorado red/ivo a6e6d69 →