home-hosted 0.13.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -322
- package/bin/home-hosted.mjs +41 -0
- package/dist/chunks/account-DiLrSyww.js +359 -0
- package/dist/chunks/account-DiLrSyww.js.map +1 -0
- package/dist/chunks/add-DEIYVkNK.js +183 -0
- package/dist/chunks/add-DEIYVkNK.js.map +1 -0
- package/dist/chunks/{archive-DP-XQR8X.js → archive-DFi3qK1c.js} +25 -73
- package/dist/chunks/archive-DFi3qK1c.js.map +1 -0
- package/dist/chunks/{atomic-C1PfJpE7.js → atomic-SZUwDtGD.js} +3 -6
- package/dist/chunks/atomic-SZUwDtGD.js.map +1 -0
- package/dist/chunks/{backup-DeAJ3pbO.js → backup-DnyxIzw0.js} +110 -190
- package/dist/chunks/backup-DnyxIzw0.js.map +1 -0
- package/dist/chunks/backups-BrrN6cwW.js +2203 -0
- package/dist/chunks/backups-BrrN6cwW.js.map +1 -0
- package/dist/chunks/bind-DIxrnUst.js +43 -0
- package/dist/chunks/bind-DIxrnUst.js.map +1 -0
- package/dist/chunks/config-text-DxMOQQnk.js +34 -0
- package/dist/chunks/config-text-DxMOQQnk.js.map +1 -0
- package/dist/chunks/{contracts-CMBD1TF9.js → contracts-CxZ7u1L3.js} +1239 -1454
- package/dist/chunks/contracts-CxZ7u1L3.js.map +1 -0
- package/dist/chunks/daemon-BAAYUYQC.js +211 -0
- package/dist/chunks/daemon-BAAYUYQC.js.map +1 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js +179 -0
- package/dist/chunks/daemon-log-Ccu-69vB.js.map +1 -0
- package/dist/chunks/deploy-CggSOEkq.js +144 -0
- package/dist/chunks/deploy-CggSOEkq.js.map +1 -0
- package/dist/chunks/{docker-Cy9Lyvda.js → docker--Un0uLfF.js} +32 -68
- package/dist/chunks/docker--Un0uLfF.js.map +1 -0
- package/dist/chunks/{down-C59ne5aM.js → down-CpIN7LEQ.js} +34 -94
- package/dist/chunks/down-CpIN7LEQ.js.map +1 -0
- package/dist/chunks/exposure-CDJNvOCK.js +229 -0
- package/dist/chunks/exposure-CDJNvOCK.js.map +1 -0
- package/dist/chunks/import-Bd4VZH0f.js +205 -0
- package/dist/chunks/import-Bd4VZH0f.js.map +1 -0
- package/dist/chunks/import-plan--fDS_l5r.js +147 -0
- package/dist/chunks/import-plan--fDS_l5r.js.map +1 -0
- package/dist/chunks/import-write-BTfbeV26.js +42 -0
- package/dist/chunks/import-write-BTfbeV26.js.map +1 -0
- package/dist/chunks/{init-BZ7hK9Vf.js → init-Bv3oH65x.js} +14 -50
- package/dist/chunks/init-Bv3oH65x.js.map +1 -0
- package/dist/chunks/job-CYOdN6Ub.js +341 -0
- package/dist/chunks/job-CYOdN6Ub.js.map +1 -0
- package/dist/chunks/jobs-BX4ahcfh.js +489 -0
- package/dist/chunks/jobs-BX4ahcfh.js.map +1 -0
- package/dist/chunks/last-stop-DD3lHwo_.js +42 -0
- package/dist/chunks/last-stop-DD3lHwo_.js.map +1 -0
- package/dist/chunks/layout-D0ysDNav.js +18 -0
- package/dist/chunks/layout-D0ysDNav.js.map +1 -0
- package/dist/chunks/lazy-kfcBNeqj.js +48 -0
- package/dist/chunks/lazy-kfcBNeqj.js.map +1 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js +110 -0
- package/dist/chunks/log-buffer-B7jmn7ts.js.map +1 -0
- package/dist/chunks/log-files-CZL2UhuE.js +488 -0
- package/dist/chunks/log-files-CZL2UhuE.js.map +1 -0
- package/dist/chunks/{logger-B5U4GD3j.js → logger-BnrKTBHQ.js} +2 -6
- package/dist/chunks/logger-BnrKTBHQ.js.map +1 -0
- package/dist/chunks/{logs---TI_bxM.js → logs-DxKI6OW2.js} +23 -73
- package/dist/chunks/logs-DxKI6OW2.js.map +1 -0
- package/dist/chunks/ls-BseUHy_m.js +128 -0
- package/dist/chunks/ls-BseUHy_m.js.map +1 -0
- package/dist/chunks/migrate-D4w_dXDm.js +268 -0
- package/dist/chunks/migrate-D4w_dXDm.js.map +1 -0
- package/dist/chunks/{nanny-rewguyXg.js → nanny-BWh7nuvv.js} +21 -14
- package/dist/chunks/nanny-BWh7nuvv.js.map +1 -0
- package/dist/chunks/{nanny-Dnun3hVB.js → nanny-BjF2-1pv.js} +3 -3
- package/dist/chunks/{nanny-Dnun3hVB.js.map → nanny-BjF2-1pv.js.map} +1 -1
- package/dist/chunks/nanny-DGTXVq5d.js +806 -0
- package/dist/chunks/nanny-DGTXVq5d.js.map +1 -0
- package/dist/chunks/{nanny-sweep-ClVuNJRo.js → nanny-sweep-hjmZ_p7S.js} +14 -24
- package/dist/chunks/nanny-sweep-hjmZ_p7S.js.map +1 -0
- package/dist/chunks/{nearest-6KgQEDUe.js → nearest-DOx4jySJ.js} +2 -10
- package/dist/chunks/nearest-DOx4jySJ.js.map +1 -0
- package/dist/chunks/{parse-DhmG26fI.js → parse-DVMPLUDe.js} +47 -72
- package/dist/chunks/parse-DVMPLUDe.js.map +1 -0
- package/dist/chunks/password-policy-Clq6PGE-.js +9 -0
- package/dist/chunks/password-policy-Clq6PGE-.js.map +1 -0
- package/dist/chunks/{paths-CGlGDrOU.js → paths-C34-TJLh.js} +32 -56
- package/dist/chunks/paths-C34-TJLh.js.map +1 -0
- package/dist/chunks/{port-k5VBw8t9.js → port-CnsrxKNR.js} +23 -70
- package/dist/chunks/port-CnsrxKNR.js.map +1 -0
- package/dist/chunks/process-CboOFPU_.js +192 -0
- package/dist/chunks/process-CboOFPU_.js.map +1 -0
- package/dist/chunks/{restart-BYu_E7x5.js → restart-C0J8dZ2L.js} +11 -29
- package/dist/chunks/restart-C0J8dZ2L.js.map +1 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js +91 -0
- package/dist/chunks/run-deploy-DoNDvwT4.js.map +1 -0
- package/dist/chunks/{schema-B240VXcV.js → schema-CZ6f-PHD.js} +7 -20
- package/dist/chunks/schema-CZ6f-PHD.js.map +1 -0
- package/dist/chunks/secret-MY397r90.js +219 -0
- package/dist/chunks/secret-MY397r90.js.map +1 -0
- package/dist/chunks/secrets-CG5N4lwY.js +1061 -0
- package/dist/chunks/secrets-CG5N4lwY.js.map +1 -0
- package/dist/chunks/server-Dm_dXfTW.js +255 -0
- package/dist/chunks/server-Dm_dXfTW.js.map +1 -0
- package/dist/chunks/server-attention-UQwYXqKe.js +10 -0
- package/dist/chunks/server-attention-UQwYXqKe.js.map +1 -0
- package/dist/chunks/server-create-D7nvhgBd.js +96 -0
- package/dist/chunks/server-create-D7nvhgBd.js.map +1 -0
- package/dist/chunks/server-ids-BEQD2rFz.js +23 -0
- package/dist/chunks/server-ids-BEQD2rFz.js.map +1 -0
- package/dist/chunks/server-vars-DMYmHutL.js +27 -0
- package/dist/chunks/server-vars-DMYmHutL.js.map +1 -0
- package/dist/chunks/service-C8l-ewNA.js +585 -0
- package/dist/chunks/service-C8l-ewNA.js.map +1 -0
- package/dist/chunks/{settings-xu-XTfWg.js → settings-CtYDs5PX.js} +62 -78
- package/dist/chunks/settings-CtYDs5PX.js.map +1 -0
- package/dist/chunks/{setup-temp-CAN4_bA-.js → setup-temp-TAtDmMMU.js} +43 -37
- package/dist/chunks/setup-temp-TAtDmMMU.js.map +1 -0
- package/dist/chunks/shape-CDGeYl_J.js +9 -0
- package/dist/chunks/shape-CDGeYl_J.js.map +1 -0
- package/dist/chunks/{src-BOBh9MBf.js → src-BnzkVy_M.js} +12547 -10578
- package/dist/chunks/src-BnzkVy_M.js.map +1 -0
- package/dist/chunks/{status-B6f2-qhs.js → status-efbbfYZQ.js} +53 -26
- package/dist/chunks/status-efbbfYZQ.js.map +1 -0
- package/dist/chunks/store-Bs_Lljjm.js +2082 -0
- package/dist/chunks/store-Bs_Lljjm.js.map +1 -0
- package/dist/chunks/template-xan58bJh.js +28 -0
- package/dist/chunks/template-xan58bJh.js.map +1 -0
- package/dist/chunks/token-DDeWfZA4.js +142 -0
- package/dist/chunks/token-DDeWfZA4.js.map +1 -0
- package/dist/chunks/{ui-D562aqw5.js → ui-BcIAtyxE.js} +68 -79
- package/dist/chunks/ui-BcIAtyxE.js.map +1 -0
- package/dist/chunks/{ui-dir-CsU3uLNV.js → ui-dir-ClCzVRc3.js} +3 -7
- package/dist/chunks/ui-dir-ClCzVRc3.js.map +1 -0
- package/dist/chunks/ui-format-CDvvqOoi.js +53 -0
- package/dist/chunks/ui-format-CDvvqOoi.js.map +1 -0
- package/dist/chunks/{ui-release-DKzVvlLd.js → ui-release-XbJ85pYI.js} +36 -38
- package/dist/chunks/ui-release-XbJ85pYI.js.map +1 -0
- package/dist/chunks/{ui-revert-EkBBwRTt.js → ui-revert-Dgawq7ze.js} +4 -4
- package/dist/chunks/ui-revert-Dgawq7ze.js.map +1 -0
- package/dist/chunks/{ui-switch-BnZTdMDd.js → ui-switch-CfQMbZ0g.js} +31 -38
- package/dist/chunks/ui-switch-CfQMbZ0g.js.map +1 -0
- package/dist/chunks/{ui-update-_xryLYxw.js → ui-update-B3PPivUm.js} +30 -48
- package/dist/chunks/ui-update-B3PPivUm.js.map +1 -0
- package/dist/chunks/ui-update-CAiH2tFb.js +109 -0
- package/dist/chunks/ui-update-CAiH2tFb.js.map +1 -0
- package/dist/chunks/{up-DNZuTi2q.js → up-BQSnYxYd.js} +47 -53
- package/dist/chunks/up-BQSnYxYd.js.map +1 -0
- package/dist/chunks/{usage-BrnDARNM.js → usage-KG8TeOio.js} +7 -20
- package/dist/chunks/usage-KG8TeOio.js.map +1 -0
- package/dist/chunks/{workspaces-DYcfvKV_.js → workspaces-D9akpzU8.js} +80 -68
- package/dist/chunks/workspaces-D9akpzU8.js.map +1 -0
- package/dist/chunks/{wsl-temperature-BiCI4iK6.js → wsl-temperature-D-_d4Yk1.js} +47 -42
- package/dist/chunks/wsl-temperature-D-_d4Yk1.js.map +1 -0
- package/dist/cli.js +306 -238
- package/dist/cli.js.map +1 -1
- package/dist/client.js +76 -29
- package/dist/client.js.map +1 -1
- package/dist/types/api/acme.d.ts +3 -7
- package/dist/types/api/auth/$.routes.d.ts +107 -16
- package/dist/types/api/backups.d.ts +5 -5
- package/dist/types/api/control.d.ts +747 -38
- package/dist/types/api/ddns.d.ts +13 -18
- package/dist/types/api/events.d.ts +9 -3
- package/dist/types/api/health.d.ts +2 -4
- package/dist/types/api/jobs.d.ts +438 -0
- package/dist/types/api/logs.d.ts +20 -0
- package/dist/types/api/metrics.d.ts +2 -5
- package/dist/types/api/notifications.d.ts +3 -6
- package/dist/types/api/proxy.d.ts +63 -23
- package/dist/types/api/server-ops.d.ts +17 -0
- package/dist/types/api/servers/$.routes.d.ts +418 -186
- package/dist/types/api/session-required.d.ts +16 -0
- package/dist/types/api/settings.d.ts +7 -7
- package/dist/types/api/state.d.ts +100 -10
- package/dist/types/api/static.d.ts +2 -2
- package/dist/types/api/tls.d.ts +2 -5
- package/dist/types/api/workspaces/$.routes.d.ts +186 -12
- package/dist/types/api/wsl-temperature.d.ts +4 -10
- package/dist/types/app.d.ts +4511 -2778
- package/dist/types/cli/account.d.ts +23 -0
- package/dist/types/cli/add.d.ts +96 -0
- package/dist/types/cli/args.d.ts +24 -35
- package/dist/types/cli/backup-offline.d.ts +2 -8
- package/dist/types/cli/backup.d.ts +12 -21
- package/dist/types/cli/down.d.ts +15 -41
- package/dist/types/cli/import-plan.d.ts +55 -0
- package/dist/types/cli/import-write.d.ts +5 -0
- package/dist/types/cli/import.d.ts +86 -0
- package/dist/types/cli/io.d.ts +26 -35
- package/dist/types/cli/job.d.ts +99 -0
- package/dist/types/cli/logs.d.ts +1 -10
- package/dist/types/cli/ls.d.ts +57 -0
- package/dist/types/cli/migrate.d.ts +31 -8
- package/dist/types/cli/nearest.d.ts +1 -9
- package/dist/types/cli/run-deploy.d.ts +36 -0
- package/dist/types/cli/secret.d.ts +90 -0
- package/dist/types/cli/server.d.ts +6 -15
- package/dist/types/cli/service.d.ts +135 -0
- package/dist/types/cli/setup-temp.d.ts +17 -13
- package/dist/types/cli/status.d.ts +7 -1
- package/dist/types/cli/token.d.ts +6 -0
- package/dist/types/cli/ui-switch.d.ts +3 -14
- package/dist/types/cli/ui-update.d.ts +3 -16
- package/dist/types/cli/up.d.ts +9 -22
- package/dist/types/cli/usage.d.ts +2 -6
- package/dist/types/cli.d.ts +1 -10
- package/dist/types/client.d.ts +4099 -1142
- package/dist/types/config/accounts.d.ts +16 -0
- package/dist/types/config/jobs.d.ts +68 -0
- package/dist/types/config/layout.d.ts +2 -8
- package/dist/types/config/migrations.d.ts +9 -41
- package/dist/types/config/parse.d.ts +8 -13
- package/dist/types/config/patch.d.ts +1 -6
- package/dist/types/config/schema.d.ts +16 -18
- package/dist/types/config/secret-parts.d.ts +6 -27
- package/dist/types/config/secrets.d.ts +167 -88
- package/dist/types/config/seed.d.ts +1 -6
- package/dist/types/config/server-ids.d.ts +2 -11
- package/dist/types/config/settings.d.ts +13 -49
- package/dist/types/config/store.d.ts +17 -54
- package/dist/types/config/workspaces.d.ts +24 -56
- package/dist/types/helpers/action-result.d.ts +18 -32
- package/dist/types/helpers/atomic.d.ts +1 -4
- package/dist/types/helpers/backoff.d.ts +0 -1
- package/dist/types/helpers/bind.d.ts +3 -11
- package/dist/types/helpers/config-text.d.ts +4 -19
- package/dist/types/helpers/cookies.d.ts +2 -7
- package/dist/types/helpers/copy-tree.d.ts +4 -12
- package/dist/types/helpers/daemon-log.d.ts +8 -33
- package/dist/types/helpers/daemon.d.ts +20 -70
- package/dist/types/helpers/deferred.d.ts +2 -4
- package/dist/types/helpers/env-file.d.ts +2 -7
- package/dist/types/helpers/error.d.ts +3 -14
- package/dist/types/helpers/event-stream.d.ts +18 -10
- package/dist/types/helpers/factory.d.ts +2 -3
- package/dist/types/helpers/last-stop.d.ts +5 -12
- package/dist/types/helpers/logger.d.ts +1 -5
- package/dist/types/helpers/open.d.ts +0 -1
- package/dist/types/helpers/openapi.d.ts +19 -5
- package/dist/types/helpers/paths.d.ts +18 -53
- package/dist/types/helpers/restore-lock.d.ts +2 -17
- package/dist/types/helpers/runtime.d.ts +3 -13
- package/dist/types/helpers/secret-compare.d.ts +2 -10
- package/dist/types/helpers/server-create.d.ts +15 -0
- package/dist/types/helpers/shell.d.ts +2 -16
- package/dist/types/helpers/sse.d.ts +8 -6
- package/dist/types/helpers/ui-dir.d.ts +1 -5
- package/dist/types/helpers/utf8-chunks.d.ts +2 -8
- package/dist/types/helpers/validate.d.ts +2 -4
- package/dist/types/helpers/validator.d.ts +8 -4
- package/dist/types/helpers/version.d.ts +1 -6
- package/dist/types/helpers/workspace.d.ts +24 -16
- package/dist/types/index.d.ts +2 -3
- package/dist/types/middleware/auth.d.ts +8 -27
- package/dist/types/middleware/body-limit.d.ts +10 -0
- package/dist/types/middleware/host.d.ts +4 -23
- package/dist/types/middleware/loopback.d.ts +1 -8
- package/dist/types/middleware/token-scope.d.ts +34 -0
- package/dist/types/node-compat.d.ts +43 -0
- package/dist/types/openapi-reference.d.ts +4 -19
- package/dist/types/openapi.d.ts +5 -8
- package/dist/types/providers/archive.d.ts +8 -25
- package/dist/types/providers/backup-hook.d.ts +4 -19
- package/dist/types/providers/ddns/dyndns2.d.ts +0 -3
- package/dist/types/providers/ddns/index.d.ts +2 -3
- package/dist/types/providers/ddns/ip.d.ts +2 -12
- package/dist/types/providers/ddns/namecheap-api.d.ts +3 -2
- package/dist/types/providers/ddns/types.d.ts +6 -32
- package/dist/types/providers/ddns/zone.d.ts +1 -4
- package/dist/types/providers/docker.d.ts +18 -45
- package/dist/types/providers/entry-state.d.ts +4 -9
- package/dist/types/providers/health-check.d.ts +1 -5
- package/dist/types/providers/host.d.ts +33 -108
- package/dist/types/providers/identity.d.ts +9 -34
- package/dist/types/providers/log-tail.d.ts +14 -24
- package/dist/types/providers/nanny-sweep.d.ts +8 -25
- package/dist/types/providers/nanny.d.ts +16 -58
- package/dist/types/providers/port.d.ts +28 -83
- package/dist/types/providers/proc.d.ts +22 -80
- package/dist/types/providers/process.d.ts +12 -36
- package/dist/types/providers/proxy/admin.d.ts +11 -0
- package/dist/types/providers/proxy/types.d.ts +4 -16
- package/dist/types/providers/telegram.d.ts +1 -17
- package/dist/types/providers/ui-release.d.ts +15 -25
- package/dist/types/providers/webhook.d.ts +8 -29
- package/dist/types/providers/wsl-temperature.d.ts +13 -22
- package/dist/types/services/acme-challenge.d.ts +2 -16
- package/dist/types/services/auth.d.ts +65 -80
- package/dist/types/services/backups/archive-safety.d.ts +30 -0
- package/dist/types/services/backups/paths.d.ts +31 -0
- package/dist/types/services/backups.d.ts +61 -271
- package/dist/types/services/config-watch.d.ts +3 -15
- package/dist/types/services/control-server.d.ts +6 -10
- package/dist/types/services/ddns.d.ts +12 -13
- package/dist/types/services/dependencies.d.ts +3 -14
- package/dist/types/services/deploy.d.ts +34 -0
- package/dist/types/services/events.d.ts +15 -9
- package/dist/types/services/exposure.d.ts +13 -63
- package/dist/types/services/history.d.ts +5 -14
- package/dist/types/services/host-monitor.d.ts +6 -11
- package/dist/types/services/init.d.ts +5 -35
- package/dist/types/services/job-ledger.d.ts +27 -0
- package/dist/types/services/jobs.d.ts +113 -0
- package/dist/types/services/log-buffer.d.ts +7 -8
- package/dist/types/services/log-files.d.ts +12 -42
- package/dist/types/services/log-relay.d.ts +3 -13
- package/dist/types/services/nanny.d.ts +3 -10
- package/dist/types/services/notifications.d.ts +31 -61
- package/dist/types/services/panel.d.ts +32 -78
- package/dist/types/services/proxy-certificates/certificates.d.ts +31 -69
- package/dist/types/services/proxy-config.d.ts +15 -36
- package/dist/types/services/proxy-dns01.d.ts +14 -0
- package/dist/types/services/proxy.d.ts +73 -254
- package/dist/types/services/scheduler.d.ts +46 -0
- package/dist/types/services/state.d.ts +17 -8
- package/dist/types/services/supervisor/compose.d.ts +2 -6
- package/dist/types/services/supervisor/entry.d.ts +29 -32
- package/dist/types/services/supervisor/health.d.ts +8 -31
- package/dist/types/services/supervisor/job-run.d.ts +36 -0
- package/dist/types/services/supervisor/output.d.ts +13 -77
- package/dist/types/services/supervisor/persistent.d.ts +5 -11
- package/dist/types/services/supervisor/port-preflight.d.ts +4 -10
- package/dist/types/services/supervisor/records.d.ts +27 -60
- package/dist/types/services/supervisor/restart-required.d.ts +13 -0
- package/dist/types/services/supervisor/spawn.d.ts +3 -5
- package/dist/types/services/supervisor/view.d.ts +3 -1
- package/dist/types/services/supervisor.d.ts +31 -43
- package/dist/types/services/tls.d.ts +6 -17
- package/dist/types/services/ui-update.d.ts +19 -17
- package/dist/types/services/ui.d.ts +10 -19
- package/dist/types/shared/action-outcome.d.ts +2 -7
- package/dist/types/shared/api-client.d.ts +133 -177
- package/dist/types/shared/api-scopes.d.ts +17 -0
- package/dist/types/shared/backup-scope.d.ts +16 -90
- package/dist/types/shared/clone.d.ts +2 -11
- package/dist/types/shared/contracts/accounts.d.ts +99 -0
- package/dist/types/shared/contracts/backups.d.ts +219 -0
- package/dist/types/shared/contracts/ddns.d.ts +208 -0
- package/dist/types/shared/contracts/frames.d.ts +1395 -0
- package/dist/types/shared/contracts/index.d.ts +3 -0
- package/dist/types/shared/contracts/logs.d.ts +107 -0
- package/dist/types/shared/contracts/proxy.d.ts +303 -0
- package/dist/types/shared/contracts.d.ts +852 -1982
- package/dist/types/shared/cpu-scale.d.ts +3 -19
- package/dist/types/shared/crash-cause.d.ts +8 -0
- package/dist/types/shared/cron.d.ts +70 -0
- package/dist/types/shared/ddns-form.d.ts +9 -43
- package/dist/types/shared/endpoint.d.ts +1 -7
- package/dist/types/shared/error-codes.d.ts +438 -0
- package/dist/types/shared/error-message.d.ts +1 -7
- package/dist/types/shared/fields.d.ts +7 -17
- package/dist/types/shared/form-repair.d.ts +1 -5
- package/dist/types/shared/generated.d.ts +3 -19
- package/dist/types/shared/host-readings.d.ts +25 -128
- package/dist/types/shared/lazy.d.ts +1 -1
- package/dist/types/shared/live-frames.d.ts +2 -8
- package/dist/types/shared/live-series.d.ts +2 -8
- package/dist/types/shared/live-store.d.ts +4 -8
- package/dist/types/shared/log-download.d.ts +6 -0
- package/dist/types/shared/meta.d.ts +6 -0
- package/dist/types/shared/password-policy.d.ts +10 -0
- package/dist/types/shared/patch-diff.d.ts +13 -72
- package/dist/types/shared/port-reading.d.ts +18 -0
- package/dist/types/shared/probe-latency.d.ts +3 -21
- package/dist/types/shared/proxy-form.d.ts +33 -74
- package/dist/types/shared/proxy-validate.d.ts +11 -0
- package/dist/types/shared/query-params.d.ts +8 -0
- package/dist/types/shared/server-attention.d.ts +2 -27
- package/dist/types/shared/server-form.d.ts +15 -54
- package/dist/types/shared/server-key.d.ts +1 -12
- package/dist/types/shared/server-readings.d.ts +7 -32
- package/dist/types/shared/server-url.d.ts +9 -31
- package/dist/types/shared/shape.d.ts +1 -16
- package/dist/types/shared/stream-access.d.ts +2 -8
- package/dist/types/shared/ui-format.d.ts +25 -65
- package/docs/API.md +315 -107
- package/docs/BACKUPS.md +61 -56
- package/docs/CLI.md +255 -49
- package/docs/DDNS.md +35 -49
- package/docs/JOBS.md +129 -0
- package/docs/NOTIFICATIONS.md +58 -90
- package/docs/REVERSE_PROXY.md +116 -188
- package/docs/SECURITY.md +126 -44
- package/docs/SERVERS.md +282 -409
- package/docs/UI_CREATION.md +90 -47
- package/docs/demo/blank-host-restore.sh +31 -7
- package/package.json +15 -6
- package/scripts/prepare.mjs +47 -0
- package/uis/stock/dist/assets/CopyButton-8mliL0xi.js +1 -0
- package/uis/stock/dist/assets/GlobalSettingsView-BINXY77E.js +1 -0
- package/uis/stock/dist/assets/LogViewer-kiSnTwdY.js +1 -0
- package/uis/stock/dist/assets/LogsView-DDXf_ONs.js +1 -0
- package/uis/stock/dist/assets/Modal-lrUuViF2.js +39 -0
- package/uis/stock/dist/assets/ProxyView-uXMaJdSQ.js +1 -0
- package/uis/stock/dist/assets/ServerDetailView-CW0Vb_c0.js +4 -0
- package/uis/stock/dist/assets/SettingsShell-B135xWjJ.js +1 -0
- package/uis/stock/dist/assets/SettingsView-BLtWxVkl.js +2 -0
- package/uis/stock/dist/assets/de-BIoTrHBQ.js +1 -0
- package/uis/stock/dist/assets/es-x4-ih8lH.js +1 -0
- package/uis/stock/dist/assets/fr-DatqBBkO.js +1 -0
- package/uis/stock/dist/assets/index-CnojaKcA.css +2 -0
- package/uis/stock/dist/assets/index-D-CiZReu.js +16 -0
- package/uis/stock/dist/assets/ja-CW1703Gw.js +1 -0
- package/uis/stock/dist/assets/ko-wFbT4XtK.js +1 -0
- package/uis/stock/dist/assets/ru-C1p5C4VN.js +1 -0
- package/uis/stock/dist/assets/useUnsavedGuard-BcsXsfCC.js +9 -0
- package/uis/stock/dist/assets/vi-CDqr0uie.js +1 -0
- package/uis/stock/dist/assets/zh-CN-BJ7iit-X.js +1 -0
- package/uis/stock/dist/index.html +4 -3
- package/uis/stock/dist/ui.json +3 -3
- package/dist/chunks/archive-DP-XQR8X.js.map +0 -1
- package/dist/chunks/atomic-C1PfJpE7.js.map +0 -1
- package/dist/chunks/backup-DeAJ3pbO.js.map +0 -1
- package/dist/chunks/backups-twva7x2n.js +0 -4691
- package/dist/chunks/backups-twva7x2n.js.map +0 -1
- package/dist/chunks/config-text-DifCHhnz.js +0 -50
- package/dist/chunks/config-text-DifCHhnz.js.map +0 -1
- package/dist/chunks/contracts-CMBD1TF9.js.map +0 -1
- package/dist/chunks/daemon-CofN9k6Q.js +0 -247
- package/dist/chunks/daemon-CofN9k6Q.js.map +0 -1
- package/dist/chunks/daemon-log-BVj8cDEo.js +0 -241
- package/dist/chunks/daemon-log-BVj8cDEo.js.map +0 -1
- package/dist/chunks/docker-Cy9Lyvda.js.map +0 -1
- package/dist/chunks/down-C59ne5aM.js.map +0 -1
- package/dist/chunks/init-BZ7hK9Vf.js.map +0 -1
- package/dist/chunks/last-stop-C-BXz_XI.js +0 -53
- package/dist/chunks/last-stop-C-BXz_XI.js.map +0 -1
- package/dist/chunks/layout-DwTtmund.js +0 -24
- package/dist/chunks/layout-DwTtmund.js.map +0 -1
- package/dist/chunks/lazy-Ce5zEAq1.js +0 -66
- package/dist/chunks/lazy-Ce5zEAq1.js.map +0 -1
- package/dist/chunks/log-buffer-Dy9HHDMD.js +0 -414
- package/dist/chunks/log-buffer-Dy9HHDMD.js.map +0 -1
- package/dist/chunks/logger-B5U4GD3j.js.map +0 -1
- package/dist/chunks/logs---TI_bxM.js.map +0 -1
- package/dist/chunks/migrate-Cfoq-Vgh.js +0 -155
- package/dist/chunks/migrate-Cfoq-Vgh.js.map +0 -1
- package/dist/chunks/nanny-COyCJXj9.js +0 -1172
- package/dist/chunks/nanny-COyCJXj9.js.map +0 -1
- package/dist/chunks/nanny-rewguyXg.js.map +0 -1
- package/dist/chunks/nanny-sweep-ClVuNJRo.js.map +0 -1
- package/dist/chunks/nearest-6KgQEDUe.js.map +0 -1
- package/dist/chunks/parse-DhmG26fI.js.map +0 -1
- package/dist/chunks/paths-CGlGDrOU.js.map +0 -1
- package/dist/chunks/port-k5VBw8t9.js.map +0 -1
- package/dist/chunks/restart-BYu_E7x5.js.map +0 -1
- package/dist/chunks/schema-B240VXcV.js.map +0 -1
- package/dist/chunks/secrets-BieELnZh.js +0 -562
- package/dist/chunks/secrets-BieELnZh.js.map +0 -1
- package/dist/chunks/server-By-zktjx.js +0 -169
- package/dist/chunks/server-By-zktjx.js.map +0 -1
- package/dist/chunks/server-ids-DRuNLVCV.js +0 -32
- package/dist/chunks/server-ids-DRuNLVCV.js.map +0 -1
- package/dist/chunks/set-password-D5vZqqSX.js +0 -43
- package/dist/chunks/set-password-D5vZqqSX.js.map +0 -1
- package/dist/chunks/set-token-xJkA1IZp.js +0 -78
- package/dist/chunks/set-token-xJkA1IZp.js.map +0 -1
- package/dist/chunks/settings-xu-XTfWg.js.map +0 -1
- package/dist/chunks/setup-temp-CAN4_bA-.js.map +0 -1
- package/dist/chunks/shape-DnTKzjQ2.js +0 -24
- package/dist/chunks/shape-DnTKzjQ2.js.map +0 -1
- package/dist/chunks/src-BOBh9MBf.js.map +0 -1
- package/dist/chunks/status-B6f2-qhs.js.map +0 -1
- package/dist/chunks/ui-D562aqw5.js.map +0 -1
- package/dist/chunks/ui-dir-CsU3uLNV.js.map +0 -1
- package/dist/chunks/ui-release-DKzVvlLd.js.map +0 -1
- package/dist/chunks/ui-revert-EkBBwRTt.js.map +0 -1
- package/dist/chunks/ui-switch-BnZTdMDd.js.map +0 -1
- package/dist/chunks/ui-update-_xryLYxw.js.map +0 -1
- package/dist/chunks/up-DNZuTi2q.js.map +0 -1
- package/dist/chunks/usage-BrnDARNM.js.map +0 -1
- package/dist/chunks/workspaces-DYcfvKV_.js.map +0 -1
- package/dist/chunks/wsl-temperature-BiCI4iK6.js.map +0 -1
- package/dist/types/cli/set-password.d.ts +0 -14
- package/dist/types/cli/set-token.d.ts +0 -21
- package/uis/stock/dist/assets/CopyButton-BUBKRJyY.js +0 -1
- package/uis/stock/dist/assets/GlobalSettingsView-yYMcRWvt.js +0 -1
- package/uis/stock/dist/assets/LogViewer-DIliXy62.js +0 -1
- package/uis/stock/dist/assets/LogsView-B7Z-7RNg.js +0 -1
- package/uis/stock/dist/assets/Modal-DmKa5Qpp.js +0 -39
- package/uis/stock/dist/assets/ProxyView-DvZiNkwb.js +0 -1
- package/uis/stock/dist/assets/ServerDetailView-6idGT_EX.js +0 -2
- package/uis/stock/dist/assets/SettingsShell-CeGtleYI.js +0 -1
- package/uis/stock/dist/assets/SettingsView-BrhJIrmk.js +0 -2
- package/uis/stock/dist/assets/de-BRITeb0H.js +0 -1
- package/uis/stock/dist/assets/es-B2zIEssV.js +0 -1
- package/uis/stock/dist/assets/fr-s0ZOBEqh.js +0 -1
- package/uis/stock/dist/assets/index-C1MehbKy.css +0 -2
- package/uis/stock/dist/assets/index-CnBN54wF.js +0 -15
- package/uis/stock/dist/assets/ja-CU7MR85V.js +0 -1
- package/uis/stock/dist/assets/ko-tL5Me6d-.js +0 -1
- package/uis/stock/dist/assets/ru-92yrvkNJ.js +0 -1
- package/uis/stock/dist/assets/vi-CzvY16k2.js +0 -1
- package/uis/stock/dist/assets/zh-CN-DDwFW_uW.js +0 -1
package/README.md
CHANGED
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
Point it at the things you run — a gateway, a media server, a bot, a database — and it starts them,
|
|
12
12
|
watches them, restarts what dies, and shows you one page of what is going on. Split them into
|
|
13
|
-
[workspaces](#-workspaces) when one panel holds more than one setup
|
|
14
|
-
|
|
15
|
-
[bring your own UI](#-bring-your-own-ui-byou) (BYOU: a static site the panel serves instead of the
|
|
16
|
-
stock one) when you want one that fits you exactly.
|
|
13
|
+
[workspaces](#-workspaces) when one panel holds more than one setup, and
|
|
14
|
+
[bring your own UI](#-bring-your-own-ui-byou) when you want one that fits you exactly.
|
|
17
15
|
|
|
18
16
|
[](https://www.npmjs.com/package/home-hosted)
|
|
19
17
|
[](https://www.npmjs.com/package/home-hosted)
|
|
@@ -21,7 +19,7 @@ stock one) when you want one that fits you exactly.
|
|
|
21
19
|
[](./LICENSE)
|
|
22
20
|
[](https://nodejs.org)
|
|
23
21
|
|
|
24
|
-
[🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [🤖 Agents & API](#-agents-scripts-and-your-own-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🌐 Dynamic DNS](./docs/DDNS.md) · [💾 Backups](#-backups) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🔐 Security](#-security) · [🎨 BYOU](#-bring-your-own-ui-byou) · [❓ FAQ](#-faq)
|
|
22
|
+
[🚀 Quick start](#-quick-start) · [🗂 Workspaces](#-workspaces) · [🧩 Servers](./docs/SERVERS.md) · [⏱ Jobs](./docs/JOBS.md) · [🤖 Agents & API](#-agents-scripts-and-your-own-tools) · [✨ Features](#-features) · [🛠 CLI](#-cli) · [🔔 Notifications](./docs/NOTIFICATIONS.md) · [🌐 Dynamic DNS](./docs/DDNS.md) · [💾 Backups](#-backups) · [🔀 Reverse proxy](./docs/REVERSE_PROXY.md) · [🔐 Security](#-security) · [🎨 BYOU](#-bring-your-own-ui-byou) · [❓ FAQ](#-faq)
|
|
25
23
|
|
|
26
24
|
</div>
|
|
27
25
|
|
|
@@ -72,7 +70,7 @@ stack.
|
|
|
72
70
|
| ❌ **"Is it still running?"** | Health, CPU/memory, uptime and live logs per server |
|
|
73
71
|
| ❌ **Silent deaths** | Restarted automatically, and you are told — in the panel, Telegram or a webhook |
|
|
74
72
|
| ❌ **Fragile reboots** | `autostart` brings the stack back; one `down` stops it all cleanly |
|
|
75
|
-
| ❌ **"Move it to the new box"** | One archive — config
|
|
73
|
+
| ❌ **"Move it to the new box"** | One archive — config, secret environment values and declared data — restored on a blank host |
|
|
76
74
|
| ✅ **home-hosted** | Declare it once, watch it forever |
|
|
77
75
|
|
|
78
76
|
It ships with **no servers configured**: a server is a command, its arguments and its environment.
|
|
@@ -86,25 +84,28 @@ It ships with **no servers configured**: a server is a command, its arguments an
|
|
|
86
84
|
## ⚡ Quick start
|
|
87
85
|
|
|
88
86
|
```bash
|
|
89
|
-
npx home-hosted # start it
|
|
90
|
-
npx home-hosted status # where it is, what is running, the first-run
|
|
87
|
+
npx home-hosted # start it (detached) and print the first-run sign-in
|
|
88
|
+
npx home-hosted status # where it is, what is running, the first-run sign-in until you change it
|
|
91
89
|
npx home-hosted down # stop the panel *and* everything it started
|
|
92
90
|
```
|
|
93
91
|
|
|
94
|
-
Open **<http://127.0.0.1:3999
|
|
95
|
-
settings →
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
Open **<http://127.0.0.1:3999>** and sign in with what `up` printed — `sign in as default / <secret>`:
|
|
93
|
+
account id `default`, that secret. Set your own under **Global settings → Accounts**. Then supervise something — **➕ Add server** in the panel, or:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npx home-hosted add web --port 4000 --secret-env DATABASE_URL -- node server.js # declare it (panel up or not)
|
|
97
|
+
npx home-hosted secret set web DATABASE_URL # its secret, prompted without echo
|
|
98
|
+
npx home-hosted start web # start it; waits until it answers on 4000
|
|
99
|
+
npx home-hosted ls # what this workspace declares
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
<sub>Needs Node 24+; the CLI refuses an older one and names the version it found. `pnpm dlx home-hosted …`
|
|
103
|
+
works too.</sub>
|
|
99
104
|
|
|
100
105
|
> [!IMPORTANT]
|
|
101
|
-
> **Before you expose it
|
|
102
|
-
>
|
|
103
|
-
>
|
|
104
|
-
> `settings.json`, or `up --host lan`). And an API token is **full admin**: it can create and start a
|
|
105
|
-
> server entry, and an entry runs any command as the panel's user. Changing the password does **not**
|
|
106
|
-
> revoke a token — rotate it with `set-token --generate`. The whole model, including which actions a
|
|
107
|
-
> token is refused: [SECURITY.md](./docs/SECURITY.md).
|
|
106
|
+
> **Before you expose it beyond this machine**, set your own secret (12+ characters) — until then it
|
|
107
|
+
> refuses to bind past `127.0.0.1` — *then* bind to `lan` (UI, `settings.json`, or `up --host lan`).
|
|
108
|
+
> **Treat an `admin` account as a shell on this machine.** [SECURITY.md](./docs/SECURITY.md).
|
|
108
109
|
|
|
109
110
|
<details>
|
|
110
111
|
<summary><b>📦 Install it instead of npx-ing it</b></summary>
|
|
@@ -126,44 +127,32 @@ nothing of it is left behind.
|
|
|
126
127
|
npx home-hosted init # every step has a default; --yes takes them all
|
|
127
128
|
```
|
|
128
129
|
|
|
129
|
-
The project's scripts all pass `--home ./state`, and its `.gitignore` commits the server
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
// package.json
|
|
134
|
-
{ "scripts": { "up": "home-hosted up --home ./state", "down": "home-hosted down --home ./state", "status": "home-hosted status --home ./state" } }
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
Clone, `pnpm install`, `pnpm run up` — the same setup on any machine with Node. Give each project its
|
|
138
|
-
own panel port (`control.port`, e.g. `4399`) so two can run side by side. Call it `pnpm run up`:
|
|
139
|
-
`pnpm up` is pnpm's own update command. Worked example:
|
|
130
|
+
The project's scripts all pass `--home ./state`, and its `.gitignore` commits the server definitions
|
|
131
|
+
while keeping secrets, logs, TLS keys and archives local. Clone, `pnpm install`, `pnpm run up` — the
|
|
132
|
+
same setup on any machine with Node (`pnpm up` is pnpm's own update command). Give each project its own
|
|
133
|
+
panel port (`control.port`) so two can run side by side. Worked example:
|
|
140
134
|
**[hhosted-ai-pack](https://github.com/NamesMT/hhosted-ai-pack)**.
|
|
141
135
|
|
|
142
136
|
</details>
|
|
143
137
|
|
|
144
138
|
<details>
|
|
145
|
-
<summary><b>🧰 Start it at boot: systemd or
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
[Service]
|
|
153
|
-
User=youruser
|
|
154
|
-
WorkingDirectory=/srv/home-hosted
|
|
155
|
-
Environment=HHOSTED_HOME=/srv/home-hosted
|
|
156
|
-
ExecStart=/usr/local/bin/home-hosted up --foreground
|
|
157
|
-
Restart=always
|
|
158
|
-
|
|
159
|
-
[Install]
|
|
160
|
-
WantedBy=multi-user.target
|
|
139
|
+
<summary><b>🧰 Start it at boot: systemd, launchd or Task Scheduler</b></summary>
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
hh service install # a user service: systemd on Linux, launchd on macOS, Task Scheduler on Windows
|
|
143
|
+
hh service install --system # machine-wide, at boot (sudo / an administrator)
|
|
144
|
+
hh service status # installed? running?
|
|
145
|
+
hh service uninstall
|
|
161
146
|
```
|
|
162
147
|
|
|
148
|
+
The unit runs `up --foreground` and restarts the panel only after a failure; persistent entries keep
|
|
149
|
+
running when it stops. On Linux, a user service waits for a login after a reboot unless you run
|
|
150
|
+
`loginctl enable-linger`. Windows without an administrator, `--print`, containers:
|
|
151
|
+
[CLI.md](./docs/CLI.md#starting-at-boot).
|
|
152
|
+
|
|
163
153
|
> [!CAUTION]
|
|
164
|
-
> **
|
|
165
|
-
>
|
|
166
|
-
> without `-w`. Or pin it with `HHOSTED_PROJECT`.
|
|
154
|
+
> **Under Docker, set the working directory** (`-w`) or `HHOSTED_PROJECT`: relative paths in your
|
|
155
|
+
> servers (`cwd`, `{projectDir}`, `dataEnvs`) resolve against it.
|
|
167
156
|
|
|
168
157
|
</details>
|
|
169
158
|
|
|
@@ -172,55 +161,31 @@ WantedBy=multi-user.target
|
|
|
172
161
|
## 🤖 Agents, scripts and your own tools
|
|
173
162
|
|
|
174
163
|
Everything the panel does goes through one HTTP API — the stock UI is just one client of it. Get a
|
|
175
|
-
|
|
164
|
+
credential, then plain HTTP:
|
|
176
165
|
|
|
177
166
|
```bash
|
|
178
|
-
home-hosted
|
|
179
|
-
# (or Global settings → Authentication → Generate token)
|
|
167
|
+
home-hosted account create monitor --scope read,lifecycle # prints the secret once
|
|
180
168
|
|
|
181
|
-
curl -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/state
|
|
182
|
-
curl -H "Authorization: Bearer hh_…" -X POST 'http://127.0.0.1:3999/api/servers/gateway/restart?workspace=default'
|
|
183
|
-
curl -N -H "Authorization: Bearer hh_…" http://127.0.0.1:3999/api/events
|
|
184
|
-
home-hosted status --json # where everything is
|
|
169
|
+
curl -H "Authorization: Bearer monitor:hh_…" http://127.0.0.1:3999/api/state
|
|
170
|
+
curl -H "Authorization: Bearer monitor:hh_…" -X POST 'http://127.0.0.1:3999/api/servers/gateway/restart?workspace=default'
|
|
171
|
+
curl -N -H "Authorization: Bearer monitor:hh_…" http://127.0.0.1:3999/api/events # live SSE
|
|
185
172
|
```
|
|
186
173
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
and is `503` while any server needs attention — point your uptime monitor at it.
|
|
174
|
+
- **TypeScript:** `import { createClient } from 'home-hosted/client'` — a small client typed from the
|
|
175
|
+
panel's own routes, with the live event stream ([API.md](./docs/API.md#the-typescript-client)).
|
|
176
|
+
- **Any other language:** `GET /openapi/spec.json` documents every route (browse at `/openapi/ui`), so an
|
|
177
|
+
OpenAPI generator gives you a typed client.
|
|
178
|
+
- **Uptime monitors:** `GET /healthz` needs no credential and is `503` while any server needs attention.
|
|
193
179
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
> panel's user. Keep it like a password; rotate with `set-token --generate`.
|
|
197
|
-
|
|
198
|
-
<details>
|
|
199
|
-
<summary><b>🌐 The endpoints worth knowing</b></summary>
|
|
200
|
-
|
|
201
|
-
✅ takes `?workspace=<id>` (omitted = the default workspace); ❌ is panel-wide.
|
|
202
|
-
|
|
203
|
-
| | | |
|
|
204
|
-
| --- | --- | --- |
|
|
205
|
-
| `GET /api/state` | the full snapshot: settings, every workspace and server, host vitals | ❌ |
|
|
206
|
-
| `GET /api/events` | SSE: `hello` (full state), then `state`, `server`, `log`, `ping` | optional |
|
|
207
|
-
| `GET`/`PUT`/`PATCH`/`DELETE /api/servers/:id` | entries — `PUT` is create-or-replace, so a re-run converges | ✅ |
|
|
208
|
-
| `POST /api/servers/:id/{start,stop,restart,free-port}` | lifecycle | ✅ |
|
|
209
|
-
|
|
210
|
-
Every error is one envelope — `{ "message", "code", "detail"? }` — with a stable `code` to branch on.
|
|
211
|
-
Every endpoint, SSE frames, metrics and compatibility rules: **[API.md](./docs/API.md)**.
|
|
212
|
-
|
|
213
|
-
</details>
|
|
180
|
+
Every endpoint, SSE frame, error code and metric: **[API.md](./docs/API.md)**. An `admin` credential can
|
|
181
|
+
run commands as the panel's user, so give a script the least `--scope` it needs.
|
|
214
182
|
|
|
215
183
|
<details>
|
|
216
184
|
<summary><b>🧑💻 Pointing an AI agent at it</b></summary>
|
|
217
185
|
|
|
218
|
-
Give it
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
2. `http://127.0.0.1:3999/openapi/spec.json` — the API it may call,
|
|
222
|
-
3. `home-hosted status --json` — where things are,
|
|
223
|
-
4. [SERVERS.md](./docs/SERVERS.md) — how a server is declared.
|
|
186
|
+
Give it an account (`home-hosted account create agent --scope read`),
|
|
187
|
+
`/openapi/spec.json`, `home-hosted status --json`, and [SERVERS.md](./docs/SERVERS.md) /
|
|
188
|
+
[JOBS.md](./docs/JOBS.md) for how entries are declared.
|
|
224
189
|
|
|
225
190
|
</details>
|
|
226
191
|
|
|
@@ -232,32 +197,29 @@ Give it four things and it can run your home server without guessing:
|
|
|
232
197
|
|
|
233
198
|
| | |
|
|
234
199
|
| --- | --- |
|
|
235
|
-
| ♾️ **`persistent: true` survives the panel** | The entry runs under its own tiny supervisor (a **nanny**
|
|
236
|
-
| 🔗 **`dependsOn` waits for *healthy*** | A dependent
|
|
237
|
-
| 🔄 **`onPortConflict: follow
|
|
238
|
-
| 👻 **The orphan list** | A process this panel started that no entry owns any more
|
|
239
|
-
|
|
240
|
-
The rest, one line each:
|
|
200
|
+
| ♾️ **`persistent: true` survives the panel** | The entry runs under its own tiny supervisor (a **nanny**), so `down`, an upgrade or a crash leaves it serving; the next panel re-attaches |
|
|
201
|
+
| 🔗 **`dependsOn` waits for *healthy*** | A dependent starts only once what it needs passes its health probe — a web app never binds before its database accepts connections |
|
|
202
|
+
| 🔄 **`onPortConflict: follow`** | A program that restarts itself into a new process is recognised as the entry's own successor and taken over, instead of blocking on its own port |
|
|
203
|
+
| 👻 **The orphan list** | A process this panel started that no entry owns any more is listed under **Servers** with a **Stop it** button. Nothing is killed on a guess |
|
|
241
204
|
|
|
242
205
|
<details>
|
|
243
206
|
<summary><b>📋 The full feature list</b></summary>
|
|
244
207
|
|
|
245
208
|
| | |
|
|
246
209
|
| --- | --- |
|
|
247
|
-
|
|
|
248
|
-
| 🚦 **Lifecycle** | Start, stop, restart from the panel, the CLI or the API; `autostart` entries come up with it |
|
|
249
|
-
| 📝 **Hand edits welcome** | Edit `servers.config.json` or the panel's `settings.json` in an editor or `git checkout` — picked up in seconds. A file it cannot read is reported in the UI, and what is running is left alone |
|
|
210
|
+
| 📝 **Hand edits welcome** | Edit `servers.config.json` or `settings.json` in an editor or `git checkout` — picked up in seconds; a file it cannot read is reported and what is running is left alone |
|
|
250
211
|
| ♻️ **Auto-restart** | Exponential backoff on crash, with a retry budget that survives a panel restart |
|
|
251
|
-
| 🩺 **Health that acts** | TCP or HTTP probes
|
|
212
|
+
| 🩺 **Health that acts** | TCP or HTTP probes; a card warns after `unhealthyThreshold` failures (default 3). A forced restart is opt-in (`forceRestartAfterMs`). Ports are checked before starting |
|
|
252
213
|
| 📜 **Logs** | Live stream, rotated files, search, download, clear |
|
|
253
214
|
| 📈 **Resources** | CPU and memory per process tree (summed containers for compose), with an optional memory ceiling |
|
|
254
|
-
| 🌡️ **Host vitals** | CPU, memory, swap, disk, temperature and load, with
|
|
215
|
+
| 🌡️ **Host vitals** | CPU, memory, swap, disk, temperature and load, with alert thresholds |
|
|
255
216
|
| 🔔 **Notifications** | Telegram and webhooks (ntfy, Discord, Slack, …) on crash, unhealthy, recovery, host thresholds and DNS changes |
|
|
256
|
-
| 🌐 **Dynamic DNS** |
|
|
217
|
+
| 🌐 **Dynamic DNS** | Cloudflare, Namecheap, Porkbun, GoDaddy, Gandi, deSEC, DuckDNS, No-IP and more |
|
|
257
218
|
| 🔀 **Reverse proxy** | One Caddy engine with automatic HTTPS: `git.example.com` → a Gitea entry, `panel.example.com` → the panel |
|
|
258
219
|
| 💾 **Backups** | Config, secrets and data in one zip — plain or AES-256, scheduled or manual, restorable on a blank host |
|
|
259
|
-
|
|
|
260
|
-
|
|
|
220
|
+
| 🚀 **Deploy** | Ordered steps (`git pull`, `pnpm build`, …); a failed step stops the sequence and **leaves the old process running** ([SERVERS.md](./docs/SERVERS.md#deploying)) |
|
|
221
|
+
| 🗓 **Scheduled jobs** | A command on a 5-field cron expression whose exit code is the outcome; a failed run notifies like a crash ([JOBS.md](./docs/JOBS.md)) |
|
|
222
|
+
| 🔐 **Per-server secrets** | Names in the entry, values in the workspace secrets file (0600) — never in the config, and a backup carries them |
|
|
261
223
|
| 🌍 **Translated** | English, Vietnamese, Chinese, Japanese, Spanish, Korean, Russian, French, German |
|
|
262
224
|
| 🖥 **Cross-platform** | Linux, macOS and Windows — no shell utilities assumed |
|
|
263
225
|
|
|
@@ -267,22 +229,22 @@ The rest, one line each:
|
|
|
267
229
|
|
|
268
230
|
## 🗂 Workspaces
|
|
269
231
|
|
|
270
|
-
A workspace
|
|
271
|
-
creates `default`. A server id is unique only inside its workspace.
|
|
232
|
+
A workspace owns its servers, secrets, logs and settings; listener, auth, backups, TLS and UI stay
|
|
233
|
+
panel-wide. The first boot creates `default`. A server id is unique only inside its workspace. A
|
|
234
|
+
workspace id is lowercase letters, digits, `-` and `_`, at most 40 characters, and never a Windows
|
|
235
|
+
device name (`con`, `nul`, …).
|
|
272
236
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
| **Global overview** · **Global settings** | `/global/overview` · `/global/settings` | every workspace; listener, auth, backups, TLS, UI |
|
|
278
|
-
| **Reverse proxy** | `/proxy` | panel-wide |
|
|
237
|
+
Each workspace has its own **Overview**, **Servers**, **Logs** and **Settings** under `/w/<workspace>`;
|
|
238
|
+
**Global overview**, **Global settings** and **Reverse proxy** are panel-wide. Edits on the settings
|
|
239
|
+
and proxy pages apply on **Save** (a "Pending save" badge marks them; the proxy's engine buttons act at
|
|
240
|
+
once), and leaving with unsaved edits asks first. List fields take one entry per line.
|
|
279
241
|
|
|
280
242
|
<details>
|
|
281
243
|
<summary><b>🗂 What lives where</b></summary>
|
|
282
244
|
|
|
283
245
|
| | |
|
|
284
246
|
| --- | --- |
|
|
285
|
-
| panel-wide — `$HHOSTED_HOME/.hh/` | `settings.json` (listener, auth, TLS, host vitals, backups, proxy), `workspaces.json`, `.control-secrets.json` (
|
|
247
|
+
| panel-wide — `$HHOSTED_HOME/.hh/` | `settings.json` (listener, auth, TLS, host vitals, backups, proxy), `workspaces.json`, `.control-secrets.json` (account and token hashes, 0600), `.tls/`, `.ui/`, `.backups/`, `.logs/`, `.proxy/` (the engine and its state), `run.json` (the live panel, 0600) |
|
|
286
248
|
| per workspace — `.hh/<id>/` | `settings.json` (server defaults, logs, notifications, DDNS), `servers.config.json`, `.secrets.json` (0600), `.logs/<id>.log`, `.state/` |
|
|
287
249
|
|
|
288
250
|
</details>
|
|
@@ -320,140 +282,57 @@ Compose and more fill the form — or write it into the workspace's `servers.con
|
|
|
320
282
|
|
|
321
283
|
## 🛠 CLI
|
|
322
284
|
|
|
285
|
+
`home-hosted <command>` (or `hh`). `<command> --help` prints what it takes; behaviour in depth:
|
|
286
|
+
[CLI.md](./docs/CLI.md).
|
|
287
|
+
|
|
323
288
|
| command | |
|
|
324
289
|
| --- | --- |
|
|
325
|
-
| `home-hosted up`
|
|
326
|
-
| `home-hosted
|
|
327
|
-
| `home-hosted
|
|
328
|
-
| `home-hosted
|
|
329
|
-
| `home-hosted
|
|
330
|
-
| `home-hosted
|
|
331
|
-
| `home-hosted
|
|
332
|
-
| `home-hosted usage` |
|
|
290
|
+
| `home-hosted up` / `down` / `restart [<id>]` | start the panel detached; stop it and everything it started; restart it, or one server |
|
|
291
|
+
| `home-hosted status` | running? where? how many servers up? every path |
|
|
292
|
+
| `home-hosted add <id> -- <command…>` / `ls` | declare a server, or list them — with the panel up or down |
|
|
293
|
+
| `home-hosted start` / `stop` / `free-port <id>` | one server, leaving the panel up |
|
|
294
|
+
| `home-hosted secret set\|unset\|ls <id> [NAME]` | a server's or job's secret environment; never prints a value |
|
|
295
|
+
| `home-hosted import pm2\|compose <file>` | carry a pm2 ecosystem or a compose stack in as entries |
|
|
296
|
+
| `home-hosted deploy <id>` / `job ls\|run\|log` | run an entry's deploy steps; list, run or read scheduled jobs |
|
|
297
|
+
| `home-hosted logs [<id>]` / `usage` | the panel's console or one server's log; CPU and memory per server |
|
|
333
298
|
| `home-hosted backup` | `list`, `create`, `restore` — works with the panel stopped |
|
|
334
|
-
| `home-hosted
|
|
335
|
-
| `home-hosted migrate` | bring configs up to this release
|
|
336
|
-
| `home-hosted init` | scaffold a self-contained project |
|
|
299
|
+
| `home-hosted account` / `token` | sign-in accounts and API tokens, without a browser |
|
|
300
|
+
| `home-hosted migrate` / `init` | bring configs up to this release; scaffold a project |
|
|
337
301
|
| `home-hosted ui-switch` / `ui-update` / `ui-revert` | install, update or remove a custom UI |
|
|
338
|
-
| `home-hosted setup-temp
|
|
339
|
-
|
|
340
|
-
<details>
|
|
341
|
-
<summary><b>⚙️ Every command and its flags</b></summary>
|
|
342
|
-
|
|
343
|
-
```text
|
|
344
|
-
up -p/--port <port> --host <local|lan|ipv4> --open --no-autostart --foreground --print-config
|
|
345
|
-
(--port and --host are saved to settings.json)
|
|
346
|
-
down --with-persistent
|
|
347
|
-
restart (no id) down, then up: up's flags plus --with-persistent
|
|
348
|
-
restart <id> one server through the panel: [-w/--workspace <id>] — up's flags are refused here
|
|
349
|
-
status --json
|
|
350
|
-
start <id> [-w/--workspace <id>] [--free-port]
|
|
351
|
-
stop <id> [-w/--workspace <id>]
|
|
352
|
-
free-port <id> [-w/--workspace <id>]
|
|
353
|
-
logs [<id>] --lines <n≥1|all> --follow --json [-w/--workspace <id>]
|
|
354
|
-
usage --json
|
|
355
|
-
backup list --json
|
|
356
|
-
backup create (--include <ids> | --all) [--exclude <ids>] --password <text> --confirm --json
|
|
357
|
-
backup restore (<name> | --from <path>) (--include <ids> | --all) [--exclude <ids>] --password <text> --confirm --json
|
|
358
|
-
init --dir <dir> --name <name> --pm <pnpm|npm|yarn|bun> --no-install -y/--yes
|
|
359
|
-
set-password --clear (HHOSTED_PASSWORD for a script; --clear locks every sign-in out)
|
|
360
|
-
set-token --generate --clear (HHOSTED_TOKEN for a script)
|
|
361
|
-
migrate --dry-run -y/--yes (HHOSTED_MIGRATE=allow for a script)
|
|
362
|
-
ui-switch --repo <owner/name> --tag <tag> --asset <name> --file <path|url> --list --token <token> -y/--yes
|
|
363
|
-
ui-update --check --tag <tag> --asset <name> --old --repo <owner/name> --token <token> -y/--yes
|
|
364
|
-
ui-revert (no flags)
|
|
365
|
-
setup-temp --wsl [--download | --no-download] | --clear
|
|
366
|
-
|
|
367
|
-
every command --home <dir> --project <dir> -h/--help -v/--version (or $HHOSTED_HOME, $HHOSTED_PROJECT)
|
|
368
|
-
help <command> the same as <command> --help
|
|
369
|
-
environment HHOSTED_PASSWORD, HHOSTED_TOKEN, HHOSTED_MIGRATE=allow, HHOSTED_DDNS_SECRET,
|
|
370
|
-
GITHUB_TOKEN / GH_TOKEN (ui-switch, ui-update)
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
- `--json` prints one document on stdout or nothing; refusals go to stderr. Branch on the exit code.
|
|
374
|
-
The exception is a stream: `logs --follow --json` prints one `{ path, line }` object per line.
|
|
375
|
-
- A flag a command cannot honour is refused, and `backup create`/`restore` without a terminal need
|
|
376
|
-
`--confirm` (without it they show the plan and exit 1). Depth: [CLI.md](./docs/CLI.md).
|
|
377
|
-
- Piping into `head`/`grep -q` exits 0, so `set -o pipefail` is safe.
|
|
378
|
-
- `start web && curl …` works: `start` waits to confirm the process stayed up.
|
|
379
|
-
- A misspelled command or flag suggests the one you meant.
|
|
302
|
+
| `home-hosted setup-temp` / `service` | CPU temperature on WSL2; start the panel at boot |
|
|
380
303
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
<summary><b>🧭 Upgrading, and why the panel sometimes refuses to start</b></summary>
|
|
385
|
-
|
|
386
|
-
```bash
|
|
387
|
-
home-hosted migrate --dry-run # what would change
|
|
388
|
-
home-hosted migrate # asks before each schema step, keeps a .bak beside each file
|
|
389
|
-
```
|
|
304
|
+
Every command takes `--help` (`home-hosted add --help`) for its own flags, and `home-hosted --help`
|
|
305
|
+
lists them all. `--json` prints one document; refusals go to stderr. Scripting rules and exit codes:
|
|
306
|
+
[CLI.md](./docs/CLI.md#for-scripts).
|
|
390
307
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
upgrade needs from you. **Coming from 0.6.x:** run the latest 0.7.x once first.
|
|
395
|
-
|
|
396
|
-
</details>
|
|
397
|
-
|
|
398
|
-
<details>
|
|
399
|
-
<summary><b>🤔 What <code>status --json</code> tells you</b></summary>
|
|
400
|
-
|
|
401
|
-
`running` and `liveness` are always present. `liveness` is `live` (it is this panel), `unknown`
|
|
402
|
-
(alive, start time unavailable — counted as running), `gone`, or `recycled` (the pid now belongs to
|
|
403
|
-
another process — nothing is signalled). Then `answering: false` means the process exists but does not
|
|
404
|
-
respond, and `exitedCleanly` says whether someone ran `down` or it died. There is more in that
|
|
405
|
-
document (paths, ports, the missing-record cases) — [CLI.md](./docs/CLI.md#what-status-tells-you).
|
|
406
|
-
|
|
407
|
-
</details>
|
|
308
|
+
**Upgrading:** a newer release reads an older config; `home-hosted migrate --dry-run` shows what it
|
|
309
|
+
would change, and a config it cannot read stops `up` with the exact problem —
|
|
310
|
+
[CLI.md](./docs/CLI.md#upgrading).
|
|
408
311
|
|
|
409
312
|
---
|
|
410
313
|
|
|
411
314
|
## 🔐 Security
|
|
412
315
|
|
|
413
|
-
**Safe out of the box.** The panel listens on `127.0.0.1` only, behind a
|
|
414
|
-
start
|
|
415
|
-
set your own
|
|
316
|
+
**Safe out of the box.** The panel listens on `127.0.0.1` only, behind a secret generated on first
|
|
317
|
+
start, and refuses to listen anywhere else — or to be served through its own reverse proxy — until
|
|
318
|
+
you set your own of at least 12 characters.
|
|
416
319
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
1. **Set your own password before exposing it**, then bind to `lan` (UI, config, or `up --host lan`).
|
|
421
|
-
2. **Treat an API token as the account it runs as** — changing the password does *not* revoke it.
|
|
422
|
-
3. **Forgot the password?** Run `home-hosted set-password` on the machine to set a new one; no login needed.
|
|
423
|
-
|
|
424
|
-
</details>
|
|
425
|
-
|
|
426
|
-
<details>
|
|
427
|
-
<summary><b>🔍 How a request is trusted</b></summary>
|
|
428
|
-
|
|
429
|
-
| Check | Rule |
|
|
430
|
-
| --- | --- |
|
|
431
|
-
| **Host** | an IP, `localhost`, a local name (`.local`, `.lan`, `homeserver`, …), a panel proxy route, or listed in `control.allowedHosts` — otherwise `421`. This blocks DNS-rebinding attacks from web pages you visit |
|
|
432
|
-
| **Origin** | a cookie-authenticated write must be same-origin; bearer-token requests are exempt (browsers never attach one by themselves) |
|
|
433
|
-
| **"This machine"** | a loopback peer that also carries **none** of `Forwarded`, `X-Forwarded-For`, `X-Real-IP` or the `X-Forwarded-Proto`/`-Host`/`-Port`/`-Prefix` family. That is right for the panel's own reverse proxy and for any proxy that adds at least one of them — but it is a **heuristic, not a guarantee**: a proxy that strips them all is indistinguishable from a local client. Set `trustProxy` deliberately and never put the panel behind a header-stripping proxy |
|
|
434
|
-
| **Lockout** | repeated failures lock out per client address; `trustProxy: "loopback"` (default) reads the real address from a proxy on this machine |
|
|
435
|
-
|
|
436
|
-
Secrets never go in a config file: every secret file is `0600`, and `.hh` is `0700` from the moment
|
|
437
|
-
any command creates it. DDNS
|
|
438
|
-
credentials are also sealed under `HHOSTED_DDNS_SECRET` — set your own if you commit or share `.hh/`.
|
|
439
|
-
Details: [SECURITY.md](./docs/SECURITY.md).
|
|
440
|
-
|
|
441
|
-
</details>
|
|
320
|
+
Set your own secret before exposing it, give a script the least `--scope` it needs, and if you are
|
|
321
|
+
locked out, `home-hosted account reset` on the machine prints a fresh secret. How a request is trusted
|
|
322
|
+
and where secrets live: **[SECURITY.md](./docs/SECURITY.md)**.
|
|
442
323
|
|
|
443
324
|
---
|
|
444
325
|
|
|
445
326
|
## 🔔 Notifications
|
|
446
327
|
|
|
447
328
|
A message when something happens while you are not looking: a server that gave up restarting, a
|
|
448
|
-
failing health check, a
|
|
449
|
-
**
|
|
450
|
-
inherited or overridden per destination. **Two minutes of setup: [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
|
|
329
|
+
failing health check, a recovery, a host threshold, a DNS change — to Telegram chats and webhooks.
|
|
330
|
+
**[NOTIFICATIONS.md](./docs/NOTIFICATIONS.md).**
|
|
451
331
|
|
|
452
332
|
## 🌐 Dynamic DNS
|
|
453
333
|
|
|
454
|
-
**Workspace settings → Dynamic DNS** keeps hostnames pointed at this machine's public IP
|
|
455
|
-
|
|
456
|
-
permanent refusal (bad credentials) stops retrying until you fix it. **[DDNS.md](./docs/DDNS.md).**
|
|
334
|
+
**Workspace settings → Dynamic DNS** keeps hostnames pointed at this machine's public IP; a provider
|
|
335
|
+
is called only when the address changed. **[DDNS.md](./docs/DDNS.md).**
|
|
457
336
|
|
|
458
337
|
## 🔀 Reverse proxy
|
|
459
338
|
|
|
@@ -466,42 +345,16 @@ One Caddy engine in front of everything, installed and supervised by the panel,
|
|
|
466
345
|
## 💾 Backups
|
|
467
346
|
|
|
468
347
|
**Global settings → Backups** takes one `.zip` of the panel and the workspaces you pick — settings,
|
|
469
|
-
servers, secrets, declared data — plain or AES-256, and puts it back.
|
|
348
|
+
servers, secrets, declared data — plain or AES-256, on a schedule or by hand, and puts it back.
|
|
470
349
|
|
|
471
350
|
```bash
|
|
472
351
|
home-hosted backup create --all --confirm
|
|
473
|
-
home-hosted backup create --all --exclude global:secrets --confirm
|
|
474
352
|
home-hosted backup restore <name> --all --confirm
|
|
475
|
-
home-hosted backup restore --from /media/usb/x.zip --all --confirm
|
|
476
353
|
```
|
|
477
354
|
|
|
478
|
-
Both work with the panel **stopped
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
<summary><b>🚚 One archive is a whole setup</b></summary>
|
|
482
|
-
|
|
483
|
-
Start a **blank** home-hosted anywhere, upload the archive, restore: workspaces come back, data lands
|
|
484
|
-
where *this* machine's config says (`{projectDir}`, `{home}` follow the new host), and `autostart`
|
|
485
|
-
entries come up. A restore never writes where no config declares. Older archives are migrated on the
|
|
486
|
-
way in; archives from a newer release are refused.
|
|
487
|
-
|
|
488
|
-
</details>
|
|
489
|
-
|
|
490
|
-
<details>
|
|
491
|
-
<summary><b>⏱️ Schedules, and what not to restore</b></summary>
|
|
492
|
-
|
|
493
|
-
- A schedule writes an `auto-…` archive every N hours with its own retention, and never prunes the
|
|
494
|
-
ones you took by hand.
|
|
495
|
-
- Pick per item: whole workspaces, or one secret, one data directory.
|
|
496
|
-
- **The password and token hashes are secrets too** — restoring them reinstates the old machine's
|
|
497
|
-
credentials. Leave `global:secrets` unticked, or rotate afterwards.
|
|
498
|
-
- **A live database copied file by file can be torn.** Stop it around the backup, or declare
|
|
499
|
-
`dump`/`load` hooks so the engine writes the backup itself.
|
|
500
|
-
|
|
501
|
-
That is the whole of what you have to decide before ticking a box. What an id selects, how retention
|
|
502
|
-
counts, which paths follow a new host: [BACKUPS.md](./docs/BACKUPS.md).
|
|
503
|
-
|
|
504
|
-
</details>
|
|
355
|
+
Both work with the panel **stopped**. A server's code and its `envFile` are not in the archive, and
|
|
356
|
+
`global:secrets` carries the old machine's accounts. Item ids, encryption, schedules and what not to
|
|
357
|
+
restore: **[BACKUPS.md](./docs/BACKUPS.md)**.
|
|
505
358
|
|
|
506
359
|
---
|
|
507
360
|
|
|
@@ -517,8 +370,7 @@ takes a zip, `home-hosted ui-switch --asset noc-console` installs the NOC consol
|
|
|
517
370
|
> Help me build a UI for `home-hosted`: a nostalgic game theme — servers as a party menu, health as HP
|
|
518
371
|
> bars, logs in a text box. Follow `docs/UI_CREATION.md` and `docs/API.md`.
|
|
519
372
|
|
|
520
|
-
[UI_CREATION.md](./docs/UI_CREATION.md) is the contract: install, `ui.json`, the rules
|
|
521
|
-
a checklist.
|
|
373
|
+
[UI_CREATION.md](./docs/UI_CREATION.md) is the contract: install, `ui.json`, the rules and a checklist.
|
|
522
374
|
|
|
523
375
|
</details>
|
|
524
376
|
|
|
@@ -542,19 +394,9 @@ home-hosted usage # what is eating the machine
|
|
|
542
394
|
<summary><b>What happens to my servers when the panel stops?</b></summary>
|
|
543
395
|
|
|
544
396
|
`down`, `SIGTERM` and `SIGINT` stop every server the panel started. `persistent` entries keep running
|
|
545
|
-
under their
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
Being **killed** is the other case: a panel that dies hard cannot stop anything, so its servers keep
|
|
549
|
-
running and the next panel adopts them — [SERVERS.md](./docs/SERVERS.md#orphaned-processes).
|
|
550
|
-
|
|
551
|
-
</details>
|
|
552
|
-
|
|
553
|
-
<details>
|
|
554
|
-
<summary><b>Is it a systemd replacement?</b></summary>
|
|
555
|
-
|
|
556
|
-
No — keep systemd for the panel itself and for system services; use home-hosted for what you run
|
|
557
|
-
yourself.
|
|
397
|
+
under their nanny and are re-attached by the next panel; `down --with-persistent` stops them too. A
|
|
398
|
+
panel that is **killed** cannot stop anything, so its servers keep running and the next panel adopts
|
|
399
|
+
them — [SERVERS.md](./docs/SERVERS.md#orphaned-processes).
|
|
558
400
|
|
|
559
401
|
</details>
|
|
560
402
|
|
|
@@ -574,63 +416,16 @@ reached by IP). IPs and local names never need it.
|
|
|
574
416
|
|
|
575
417
|
</details>
|
|
576
418
|
|
|
577
|
-
<details>
|
|
578
|
-
<summary><b>Where is my state?</b></summary>
|
|
579
|
-
|
|
580
|
-
`~/.home-hosted/.hh` (or `$HHOSTED_HOME/.hh`) — see [What lives where](#-workspaces). `home-hosted status`
|
|
581
|
-
prints every path.
|
|
582
|
-
|
|
583
|
-
</details>
|
|
584
|
-
|
|
585
|
-
<details>
|
|
586
|
-
<summary><b>Windows support, really?</b></summary>
|
|
587
|
-
|
|
588
|
-
Yes: process trees from Win32_Process, `taskkill` for stopping, `.cmd` shims resolved in
|
|
589
|
-
`node_modules/.bin`, and configs saved by Notepad or PowerShell (BOM, UTF-16) read as-is.
|
|
590
|
-
|
|
591
|
-
</details>
|
|
592
|
-
|
|
593
419
|
---
|
|
594
420
|
|
|
595
421
|
## 🗂 Working on it
|
|
596
422
|
|
|
597
|
-
|
|
598
|
-
pnpm install
|
|
599
|
-
pnpm dev # panel :6000 + stock UI dev server :6001, state in .dev-state/ (password: dev)
|
|
600
|
-
pnpm run check:fast # while working: lint/types (cached) + only the tests your changes reach
|
|
601
|
-
pnpm run check # before pushing: lint, types, doc links and the full suite with coverage
|
|
602
|
-
```
|
|
603
|
-
|
|
604
|
-
```text
|
|
605
|
-
src/ the panel. Top level: app.ts (Hono root), cli.ts, index.ts (all wiring),
|
|
606
|
-
client.ts (the published client), openapi.ts + openapi-reference.ts.
|
|
607
|
-
Then one directory per layer:
|
|
608
|
-
cli/ (one module per command) api/ (one route factory per URL group)
|
|
609
|
-
services/ (stateful) providers/ (OS/vendor leaves, plain data)
|
|
610
|
-
config/ (stores, parsing, migrations) middleware/ (host, auth, loopback)
|
|
611
|
-
helpers/ (cross-layer utilities) shared/ (schemas + code the UIs import too;
|
|
612
|
-
no Vue, no node:)
|
|
613
|
-
uis/ stock (ships in the package) and noc-console — Vite + Vue, static output.
|
|
614
|
-
Shared by both: vite.shared.ts (config, aliases, dev proxy) and tap-targets.css
|
|
615
|
-
test/ vitest; one directory per src/ layer, plus support/ (harnesses), fixtures/
|
|
616
|
-
and scripts/ (tests that drive a script in scripts/)
|
|
617
|
-
docs/ user docs, mockups/, media/, branding/, demo/
|
|
618
|
-
scripts/ build, release and check helpers — quickcheck.mjs is the gate
|
|
619
|
-
.agentDocs/ internals docs for agents; not published
|
|
620
|
-
bin/ the published `home-hosted` / `hh` entry point
|
|
621
|
-
```
|
|
423
|
+
Building, testing and the dev server: [CONTRIBUTING.md](https://github.com/NamesMT/home-hosted/blob/main/CONTRIBUTING.md).
|
|
622
424
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
| every CLI command and what `status` means | [CLI.md](./docs/CLI.md) |
|
|
628
|
-
| backups and restores in depth | [BACKUPS.md](./docs/BACKUPS.md) |
|
|
629
|
-
| hostnames and HTTPS | [REVERSE_PROXY.md](./docs/REVERSE_PROXY.md) · [DDNS.md](./docs/DDNS.md) |
|
|
630
|
-
| alerts | [NOTIFICATIONS.md](./docs/NOTIFICATIONS.md) |
|
|
631
|
-
| the security model | [SECURITY.md](./docs/SECURITY.md) |
|
|
632
|
-
| build a UI | [UI_CREATION.md](./docs/UI_CREATION.md) |
|
|
633
|
-
| change the internals | [AGENTS.md](https://github.com/NamesMT/home-hosted/blob/main/AGENTS.md) |
|
|
425
|
+
**The docs:** [servers](./docs/SERVERS.md) · [jobs](./docs/JOBS.md) · [CLI](./docs/CLI.md) ·
|
|
426
|
+
[API](./docs/API.md) · [backups](./docs/BACKUPS.md) · [reverse proxy](./docs/REVERSE_PROXY.md) ·
|
|
427
|
+
[DDNS](./docs/DDNS.md) · [notifications](./docs/NOTIFICATIONS.md) · [security](./docs/SECURITY.md) ·
|
|
428
|
+
[building a UI](./docs/UI_CREATION.md).
|
|
634
429
|
|
|
635
430
|
**Built on home-hosted:** [dsh-home-hosted](https://github.com/NamesMT/dsh-home-hosted) — server
|
|
636
431
|
management with boot autostart inside [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness).
|