internal/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT

Directories

Path Synopsis
Package admin serves the hub's own admin API under /api/home: plugins and their tools, admin tool calls with progress, jobs, the activity log, the settings, the tunnel, the system info and the event stream (server-sent events, with a long-poll fallback for a quick tunnel, which carries no SSE).
Package admin serves the hub's own admin API under /api/home: plugins and their tools, admin tool calls with progress, jobs, the activity log, the settings, the tunnel, the system info and the event stream (server-sent events, with a long-poll fallback for a quick tunnel, which carries no SSE).
Package audit keeps the hub's activity log: every tool call, from the assistants (the MCP endpoint), the admin and the CLI, with redacted arguments, in the activity table of homie.db (store.Activity).
Package audit keeps the hub's activity log: every tool call, from the assistants (the MCP endpoint), the admin and the CLI, with redacted arguments, in the activity table of homie.db (store.Activity).
Package config reads and writes the hub's data dir: homed.yaml, the instance id, the instance lock and the paths of the other files homed keeps there.
Package config reads and writes the hub's data dir: homed.yaml, the instance id, the instance lock and the paths of the other files homed keeps there.
Package firstrun serves the first-run page (docs/ADMIN-API.md §7): the local admin before the tunnel.
Package firstrun serves the first-run page (docs/ADMIN-API.md §7): the local admin before the tunnel.
Package gateway serves the hub's MCP endpoint, /mcp: the whole home as one MCP resource, "home", for ChatGPT and Claude.
Package gateway serves the hub's MCP endpoint, /mcp: the whole home as one MCP resource, "home", for ChatGPT and Claude.
Package hub holds the types the hub's packages share, so they can be built in parallel.
Package hub holds the types the hub's packages share, so they can be built in parallel.
Package install installs, updates and removes plugins from GitHub releases, and updates the homed binary itself.
Package install installs, updates and removes plugins from GitHub releases, and updates the homed binary itself.
Package plugins runs the hub's plugins and calls their tools.
Package plugins runs the hub's plugins and calls their tools.
Package store is the hub's database, <data dir>/homie.db: MCP Gatekeeper's tables (accounts, people, passkeys, sessions, invites, OAuth, the admin-action audit) through package sqlitestore, and the hub's own tables next to them in the same file:
Package store is the hub's database, <data dir>/homie.db: MCP Gatekeeper's tables (accounts, people, passkeys, sessions, invites, OAuth, the admin-action audit) through package sqlitestore, and the hub's own tables next to them in the same file:
Package tunnel is how homed reaches the internet: a Cloudflare Tunnel run by cloudflared as homed's child process (MCP Gatekeeper's tunnel/cloudflare Supervisor), in one of two modes:
Package tunnel is how homed reaches the internet: a Cloudflare Tunnel run by cloudflared as homed's child process (MCP Gatekeeper's tunnel/cloudflare Supervisor), in one of two modes:
tunneltest
Package tunneltest gives tests a fake cloudflared: internal/tunnel/testdata/fakecloudflared, built once per test binary and copied, with its own control directory, for each test.
Package tunneltest gives tests a fake cloudflared: internal/tunnel/testdata/fakecloudflared, built once per test binary and copied, with its own control directory, for each test.
Package web serves the admin SPA (web/, built by `make web` into dist/) from the homed binary, through MCP Gatekeeper's webui: the SPA's client routes answer index.html (a reload of /devices/tv works), hashed assets under /assets/ are cached for a year, the top-level files of the build (theme.js, the icons, the manifest) revalidate by ETag, and every answer carries the strict CSP of csp.txt (no inline script or style, no eval).
Package web serves the admin SPA (web/, built by `make web` into dist/) from the homed binary, through MCP Gatekeeper's webui: the SPA's client routes answer index.html (a reload of /devices/tv works), hashed assets under /assets/ are cached for a year, the top-level files of the build (theme.js, the icons, the manifest) revalidate by ETag, and every answer carries the strict CSP of csp.txt (no inline script or style, no eval).
Package wire holds the JSON conventions of the hub's own APIs, /api/home (internal/admin) and the first-run page's /api/firstrun (internal/firstrun): bodies, times, and MCP Gatekeeper's error form
Package wire holds the JSON conventions of the hub's own APIs, /api/home (internal/admin) and the first-run page's /api/firstrun (internal/firstrun): bodies, times, and MCP Gatekeeper's error form

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL