mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 21:26:33 +00:00
Server side: - service-coordinator-ws: full WS implementation using ws package - Auth via ?token=<kiosk_key> query param - Coordinator registry for cross-plugin notification - Admin mutations call notifyKiosks() → server pushes reload-bundle - 30s ping/pong heartbeat Kiosk side: - Rust ws_client with tokio runtime + tokio-tungstenite - Auto-reconnect with exponential backoff (1s → 60s cap) - On reload-bundle: re-fetches bundle, re-renders layout - Pong replies to server pings Also fix: auto-suffix kiosk name on UNIQUE collision (re-pair with same hostname no longer fails).
41 lines
1 KiB
JSON
41 lines
1 KiB
JSON
{
|
|
"name": "@betterframe/server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "BetterFrame backend — BSB v9 service plugins.",
|
|
"license": "AGPL-3.0-only OR Commercial",
|
|
"type": "module",
|
|
"files": [
|
|
"lib/**/*",
|
|
"README.md",
|
|
"bsb-plugin.json",
|
|
"bsb-tests.json"
|
|
],
|
|
"scripts": {
|
|
"build": "cross-env NODE_OPTIONS=\"--import tsx\" bsb-plugin-cli build",
|
|
"clean": "bsb-plugin-cli clean",
|
|
"start": "bsb-plugin-cli start",
|
|
"dev": "cross-env NODE_OPTIONS=\"--import tsx\" bsb-plugin-cli dev",
|
|
"test": "bsb-plugin-cli test",
|
|
"schemas:export": "node --enable-source-maps lib/scripts/export-schemas.js"
|
|
},
|
|
"bsb": {},
|
|
"dependencies": {
|
|
"@anyvali/js": "^0.2.0",
|
|
"@bsb/base": "^9.1.11",
|
|
"@types/ws": "^8.18.1",
|
|
"argon2": "^0.44.0",
|
|
"h3": "^2.0.1-rc.22",
|
|
"jsx-htmx": "^2.0.2",
|
|
"otpauth": "^9.5.1",
|
|
"ws": "^8.20.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@bsb/base": "^9.1.11"
|
|
}
|
|
}
|