Shared Node.js helpers for the Polybius kiosk stack — consumed as a git dependency by spacebar-kiosk and spacebar-oms.
| File | Exports |
|---|---|
tillweb-client.js |
TillwebError, tillwebRequest(baseUrl, token, pathname, options) |
http-helpers.js |
sendJson(res, status, payload), serveStatic(publicDir, req, res), MIME_TYPES |
Already in package.json for kiosk and OMS:
"@spacebar/shared": "git+https://github.com/PolybiusBiotech/spacebar-shared.git"After npm install, import as:
import { TillwebError } from "@spacebar/shared/tillweb-client.js";
import { sendJson, serveStatic } from "@spacebar/shared/http-helpers.js";- Edit the relevant
.jsfile here in this repo - Commit and push to
main - In each consuming package (
spacebar-kiosk,spacebar-oms):npm installto pull the updated commit