d436d3013d1205fd2eb10f5a5691c67c0e1b48dc
Pi-Kit Dashboard
Lightweight dashboard for DietPi-based Pi-Kit images. Two pieces live in this repo:
pikit-api.py: tiny Python HTTP API (status, services, auto updates, factory reset). Runs on localhost:4000 and writes to/etc/pikit/services.json.pikit-web/: static Vite site served by nginx from/var/www/pikit-web. Sources live inpikit-web/assets/; Playwright E2E tests inpikit-web/tests/.
Local development
- Dashboard:
cd pikit-web && npm install(first run), thennpm run devfor Vite,npm testfor Playwright,npm run buildfor production bundle. - API:
python pikit-api.pyto run locally (listens on 127.0.0.1:4000).
Deploying to a Pi-Kit box
- Copy
pikit-api.pyto the device (e.g.,/usr/local/bin/) and restart the service unit that wraps it. - Sync
pikit-web/index.htmlandpikit-web/assets/*(or the builtpikit-web/dist/*) to/var/www/pikit-web/. - The API surfaces clear errors if firewall tooling (
ufw) is missing when ports are opened/closed. - Factory reset sets
rootanddietpipasswords topikit.
Notes
- Service paths are normalized (leading slash) and URLs include optional subpaths.
- Firewall changes raise explicit errors when
ufwis unavailable so the UI can surface what failed. - Access the device UI at
http://pikit.local/(mDNS).
Description
v0.1.2
Latest
Languages
JavaScript
39.3%
Python
25.5%
CSS
15.5%
HTML
14.8%
Shell
4.9%