Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Added host-level mDNS discovery for `http://frame.local`, tied to the FRAME stack lifecycle.
- Added staged Hybrid installation, a pinned Cloudflare Tunnel connector, and an internal-only
public gateway that enforces generated capability-aware route allowlists.
- Added safe public Audio Monitor listener APIs and separate LAN capture/public listener base URLs.
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ Open the Portal:
http://localhost/dashboard
```

From another device on the same LAN, open:

```text
http://frame.local
```

FRAME advertises this address when the host provides mDNS/Bonjour. On Windows, the launcher keeps
the advertisement active after sign-in and restores it when FRAME Edge returns. The host's LAN IP
remains the fallback on networks that filter multicast discovery.

Useful first pages:

- Portal: `http://localhost/dashboard`
Expand All @@ -98,7 +108,7 @@ Stop the stack:
- Choose **Stop stack** from the menu.

On Linux/macOS, run `chmod +x stack.sh` once, then run `./stack.sh` without arguments to open the
same menu.
same menu. macOS provides the required mDNS publisher; Linux uses `avahi-publish` when available.

## Optional Setup

Expand Down Expand Up @@ -272,7 +282,7 @@ The public-facing backlog for the alpha release line:
**Installer / Platform**

- Add host-port conflict preflight detection.
- Add LAN HTTPS and optional Cloudflare Access policy automation.
- Add optional Cloudflare Access policy automation.

**Photo Workflow**

Expand Down
3 changes: 2 additions & 1 deletion apps/frame-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ selected data folders, generate the capability-aware stack config and tunnel ing
`docker compose config --quiet`, start the stack with
`docker compose up -d --build --remove-orphans`, and open `http://localhost/setup`.
During install, the UI streams progress from the native backend and waits for the FRAME web edge to
accept connections before launching the browser.
accept connections before launching the browser. It also enables the shared mDNS launcher when
available so other LAN devices can open `http://frame.local`; on Windows this resumes after sign-in.

The packaged installer bundles the current FRAME stack resources and copies them into the selected
install root before running Docker Compose.
Expand Down
57 changes: 57 additions & 0 deletions apps/frame-setup/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,18 @@ fn apply_install_plan(app: AppHandle, plan: InstallPlan) -> Result<ApplyResult,
run_compose_config(&app, &stack_workspace, &mut logs)?;
run_compose_up(&app, &stack_workspace, &mut logs, mode == "HYBRID")?;
wait_for_web_setup(&app, &mut logs, plan.ports.edge)?;
match start_frame_discovery(&app, &stack_workspace, &mut logs) {
Ok(()) => push_install_log(
&app,
&mut logs,
"FRAME LAN discovery is enabled at http://frame.local.",
),
Err(error) => push_install_log(
&app,
&mut logs,
format!("FRAME started, but frame.local discovery is unavailable: {error}"),
),
}

Ok(ApplyResult {
path: saved.path,
Expand Down Expand Up @@ -384,6 +396,14 @@ fn prepare_stack_workspace(
.join("templates")
.join("docker-compose.yml");
copy_file(&template_source, &template_target)?;
copy_file(
&source.join("installer").join("stack.ps1"),
&workspace.join("installer").join("stack.ps1"),
)?;
copy_file(
&source.join("installer").join("stack.sh"),
&workspace.join("installer").join("stack.sh"),
)?;
Ok(())
}

Expand Down Expand Up @@ -474,6 +494,43 @@ fn wait_for_web_setup(app: &AppHandle, logs: &mut Vec<String>, port: u16) -> Res
}
}

#[cfg(windows)]
fn start_frame_discovery(
app: &AppHandle,
workspace: &Path,
logs: &mut Vec<String>,
) -> Result<(), String> {
run_logged_command(
app,
workspace,
logs,
"powershell.exe",
&[
"-NoProfile",
"-ExecutionPolicy",
"Bypass",
"-File",
"installer\\stack.ps1",
"discovery-start",
],
)
}

#[cfg(not(windows))]
fn start_frame_discovery(
app: &AppHandle,
workspace: &Path,
logs: &mut Vec<String>,
) -> Result<(), String> {
run_logged_command(
app,
workspace,
logs,
"sh",
&["installer/stack.sh", "discovery-start"],
)
}

fn save_install_plan_inner(plan: &InstallPlan) -> Result<SaveResult, String> {
validate_install_plan(plan)?;
let root = storage_root(plan)?;
Expand Down
4 changes: 3 additions & 1 deletion apps/frame-setup/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"resources": {
"../../../services/": "frame-stack/services",
"../../../config/": "frame-stack/config",
"../../../installer/templates/docker-compose.yml": "frame-stack/installer/templates/docker-compose.yml"
"../../../installer/templates/docker-compose.yml": "frame-stack/installer/templates/docker-compose.yml",
"../../../installer/stack.ps1": "frame-stack/installer/stack.ps1",
"../../../installer/stack.sh": "frame-stack/installer/stack.sh"
}
}
}
2 changes: 1 addition & 1 deletion docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ removed.
- Add API integration tests for implemented HTTP services.
- Split installer environment/state responsibilities out of `frame-installer.mjs`.
- Add host-port conflict preflight detection.
- Add LAN HTTPS and optional Cloudflare Access policy automation.
- Add optional Cloudflare Access policy automation.
- [x] Add a canonical service/capability registry with dependency and profile activation tests.
- [x] Add a root `stack verify` command and GitHub verification workflow.
- [x] Decide that `frame-pipeline-photos` is an internal service activated by photo capabilities.
Expand Down
3 changes: 2 additions & 1 deletion docs/adr/0004-frame-edge-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ restricted `frame-docker-proxy`.
- New services can attach a route by adding labels and keeping browser requests inside that prefix.
- The socket proxy also permits the read-only Docker events, network, ping, and version endpoints
required by Traefik discovery.
- The first implementation is LAN HTTP only. HTTPS and HYBRID tunnel exposure remain follow-up work.
- LAN HTTP is the intended direct-access model; FRAME-owned LAN TLS is out of scope per ADR 0013.
HYBRID tunnel exposure is defined separately in ADR 0005.
3 changes: 2 additions & 1 deletion docs/adr/0005-hybrid-public-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ The installer stages Hybrid mode without starting it. Startup validation require
- The tunnel token is not exposed through container environment inspection.
- Cloudflare account API credentials are not required by FRAME.
- Creating the tunnel and Published application remains an explicit Cloudflare dashboard step.
- Cloudflare Access policy automation and LAN HTTPS remain separate follow-up work.
- Cloudflare Access policy automation remains a separate follow-up. FRAME-owned LAN HTTPS is out of
scope per ADR 0013.
39 changes: 39 additions & 0 deletions docs/adr/0013-trusted-home-lan-http.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# ADR 0013: Keep direct LAN access on HTTP

- **Status:** Accepted
- **Date:** 2026-08-14

## Context

FRAME is designed for an operator-controlled home or production LAN. Public routes use Cloudflare
Tunnel, which provides browser-facing HTTPS without exposing the LAN edge. Adding HTTPS directly to
the LAN edge would require operators to provide a trusted DNS name and certificate or install a
FRAME-owned certificate authority on every client device.

## Decision

`frame-edge` remains an HTTP-only LAN entry point. LAN security, segmentation, and access policy are
the operator's responsibility. FRAME does not generate self-signed certificates, distribute a local
certificate authority, or automate LAN TLS.

When the host provides a standard mDNS publisher, FRAME advertises its LAN edge as `frame.local`
and the `_http._tcp` service named `FRAME`. Discovery starts and stops with the stack; on Windows,
a per-user watchdog restores it after sign-in and follows Edge availability. This is a friendly
alias rather than a security boundary; the host's LAN address and configured Edge port
remain valid fallbacks.

Hybrid/public routes continue to use HTTPS at Cloudflare and the capability-aware
`frame-public-gateway`. The internal `cloudflared` to public-gateway hop remains HTTP on the private
Docker network.

Browser features that require a secure context should use `localhost` when running on the FRAME host
or a configured Cloudflare HTTPS route when used from another device. FRAME must document such
requirements rather than presenting an untrusted LAN certificate.

## Consequences

- A default install has no certificate, DNS, or client trust-enrollment workflow.
- Supported LAN clients can open `http://frame.local` without finding the host IP first.
- Direct LAN traffic is not encrypted by FRAME.
- Operators who require LAN encryption may place FRAME behind infrastructure they manage.
- Cloudflare Access policy automation remains an optional, separate future enhancement.
18 changes: 17 additions & 1 deletion docs/schemas/gallery-api.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,27 @@
"id": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$" },
"platform": {
"type": "string",
"enum": ["website", "instagram", "tiktok", "youtube", "twitch", "facebook", "x", "threads", "bluesky", "discord", "linkedin", "reddit", "snapchat", "flickr"]
"enum": ["website", "fivehundredpx", "applemusic", "bandcamp", "behance", "bluesky", "cara", "discord", "facebook", "flickr", "github", "instagram", "kick", "linkhub", "linkedin", "mastodon", "medium", "pinterest", "pixelfed", "reddit", "snapchat", "soundcloud", "spotify", "substack", "telegram", "threads", "tiktok", "twitch", "vimeo", "whatsapp", "x", "youtube"]
},
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
"url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" },
"graphic": { "$ref": "#/$defs/socialGraphic" }
}
},
"support": {
"type": "object",
"additionalProperties": false,
"required": ["id", "platform", "url"],
"properties": {
"id": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$" },
"platform": {
"type": "string",
"enum": ["custom", "buymeacoffee", "gofundme", "justgiving", "kofi", "monzo", "patreon", "paypal", "revolut", "square", "starling", "stripe", "sumup", "tide", "venmo", "wise"]
},
"label": { "type": "string", "minLength": 1, "maxLength": 60 },
"url": { "type": "string", "maxLength": 2048, "pattern": "^https?://" }
}
},
"branding": {
"type": "object",
"additionalProperties": false,
Expand All @@ -148,6 +162,7 @@
"profile_id",
"custom_profiles",
"socials",
"supports",
"logo",
"updated_at",
"active_profile",
Expand All @@ -161,6 +176,7 @@
"profile_id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
"custom_profiles": { "type": "array", "items": { "$ref": "#/$defs/profile" } },
"socials": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/social" } },
"supports": { "type": "array", "maxItems": 32, "items": { "$ref": "#/$defs/support" } },
"logo": { "$ref": "#/$defs/logo" },
"updated_at": { "type": "string", "format": "date-time" },
"active_profile": { "$ref": "#/$defs/profile" },
Expand Down
25 changes: 17 additions & 8 deletions docs/spec/v1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ This section defines the **modules** of Syronius’ Frame and how they map to **

| Container | Holds These Modules | Notes |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| **frame-edge** | Traefik reverse proxy, LAN HTTPS termination, internal routing | Single HTTP edge for all web UIs |
| **frame-edge** | Traefik reverse proxy and LAN HTTP routing | Single HTTP edge for all web UIs |
| **frame-portal** | Portal shell (dashboard + nav), `/status` (or status links), capability-aware menu | Links to other UIs (no iframes) |
| **frame-ingest-video** | OpenIRL `srtla-receiver` ingest + stats | UDP ingest + stats endpoint |
| **frame-streams** | FRAME-owned stream profile management UI against the OpenIRL receiver API | Requires `frame-ingest-video` |
Expand Down Expand Up @@ -1303,8 +1303,9 @@ Implementation note (2026-06-11): the unified installer deploys the implemented
Edge, Portal, Discord Audio Bridge, Audio Monitor, Video Relay, Stream Management, and Overlay
services. It supports staged HYBRID deployment through a remotely managed Cloudflare Tunnel and a
separate generated public-route gateway. Hybrid startup is refused until its hostname, tunnel
token, and Portal credentials are configured. LAN HTTPS and Cloudflare Access policy automation
remain follow-up work.
token, and Portal credentials are configured. Direct LAN access intentionally remains HTTP under
the operator's trusted-network policy; see ADR 0013. Cloudflare Access policy automation remains a
follow-up.

Fresh installs enable only FRAME Edge and Portal. Every optional capability is opt-in, including the
Discord Audio Bridge, because it requires external credentials and joins live Discord voice
Expand Down Expand Up @@ -1336,12 +1337,20 @@ The following were resolved during pre-build spec review:
- **Audio transport internals** — MediaRecorder chunks over WebSocket → ffmpeg → HLS. See §2.0-I.
- **Retention defaults** — Manual operator process in V1; no automated cleanup. See §7.0-E.

Remaining open items:
The remaining pre-build items were resolved as follows:

- Overlay Wizard detailed UX flow
- Manual Upload UI UX (accepted file types, size limits, progress feedback)
- Traefik LAN HTTPS / TLS strategy (self-signed, mkcert, or other)
- Photo pipeline implementation language / runtime
- **Overlay Wizard detailed UX flow** - Implemented as a guided source-first flow with stable OBS
URLs, live preview, immutable templates, reusable presets, and source editing. See ADR 0011.
- **Manual Upload UI UX** - Implemented with configurable file and session limits, multiple-file
selection, per-file progress, and accepted/failed feedback.
- **Traefik LAN HTTPS / TLS strategy** - FRAME intentionally keeps direct LAN access on HTTP and
relies on Cloudflare for public HTTPS. See ADR 0013.
- **Photo pipeline implementation language / runtime** - TypeScript on Node.js 22 in the
`frame-pipeline-photos` container.

Remaining open item:

- Optional Cloudflare Access policy automation.

---

Expand Down
7 changes: 7 additions & 0 deletions installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ Cloudflare Tunnel and a separate internal FRAME Public Gateway. The public gatew
the generated capability-aware allowlist; LAN-only admin, capture, ingest, and management routes
remain unavailable through the tunnel.

Direct LAN access intentionally remains HTTP for operator-controlled networks. FRAME does not manage
LAN certificates or client trust; public HYBRID routes receive browser-facing HTTPS from Cloudflare.
When the host provides `dns-sd` or `avahi-publish`, starting FRAME also advertises the Edge as
`http://frame.local`; stopping or resetting FRAME removes that advertisement. On Windows, a hidden
per-user watchdog resumes it after sign-in and follows FRAME Edge availability. A custom Edge port
is advertised as `http://frame.local:<port>`.

FRAME Edge also denies known LAN-only management routes when requests arrive through the configured
public hostname or Cloudflare headers. This defense-in-depth protects the stack if a remotely
managed Cloudflare Published application is accidentally pointed at FRAME Edge instead of
Expand Down
Loading
Loading