Lighthouse
Use Lighthouse to investigate a running app and operate its connected resources. Select the app and process instance, inspect recent execution evidence, and confirm the affected resource before taking action.
The Lighthouse component supplies the browser UI, authenticated agent connections, and recent inspect store. Available views and actions follow the connected app's compiled components and driver capabilities.
Role
Lighthouse combines recent inspects, logs, routes, schedules, queue state, cache, and storage views. Your logging, metrics, and tracing backends retain the history you need across process restarts. Read Metrics and Inspects for scrape topology, capture limits, retention, and correlation fields.
Runtime Agents
Each application process connects as an agent with an app, source, host, and instance identity. source names the runtime role, such as http, jobs, scheduler, cli, or app. A combined process can host several logical runtime roles.
Select the app before choosing the runtime instance. In a Project with a default app and an admin app, an admin worker and an app worker can operate different queues despite sharing the same source name.
Set APP_INSTANCE_ID when replicas need stable operator identity. Use a unique value for each process instance so a restart or replica change does not send an action to the wrong process.
Connection and Access
For an app with the Lighthouse component, set its connection configuration through the deployment environment and secret store.
LIGHTHOUSE_ENABLED=true
LIGHTHOUSE_URL=wss://ops.example.com/lighthouse/ws/agent
LIGHTHOUSE_SECRET=<shared-secret-from-your-secret-store>
APP_INSTANCE_ID=admin-worker-1The agent sends LIGHTHOUSE_SECRET as a Bearer credential to /lighthouse/ws/agent. The server and agents must use the same secret. A missing secret disables the agent. Agents reconnect while their process is alive, and a connection failure allows application work to continue.
Open /lighthouse on the server that hosts Lighthouse. The browser login uses username admin and LIGHTHOUSE_SECRET as the password. A successful login sets an HTTP-only, SameSite=Lax cookie containing that secret. Protected API and websocket routes accept the cookie or a matching Bearer credential. This is shared-secret access, with no per-operator roles.
Use HTTPS and WSS for remote access. Restrict access through your operator network or authenticated proxy, and keep the secret out of URLs, screenshots, shell history, and incident reports. Coordinate secret rotation across the server and agents. Browser sessions using the old secret must authenticate again.
Verify registration and access from the Project root.
forj route:listThe route list includes the Lighthouse routes when the component is enabled. On a running local HTTP app at its default port, check the protected endpoint in another terminal without credentials.
curl --silent --output /dev/null --write-out '%{http_code}\n' \
http://127.0.0.1:3000/lighthouse/api/agents
# 401Then sign in through the browser and confirm that the intended app and instance appear. Route registration alone does not prove authentication or agent connectivity.
Inspects
Keep the browser console connected while reproducing a safe request, job, or schedule execution. Capture must also be enabled in the source process. Confirm that a recent row has the expected app, source, status, and duration, then open its timeline.
The recent inspect store is bounded in-memory history. A Lighthouse restart clears it, and capacity eviction removes older records. Use capture and retention controls to size this browsing window. Use the inspect correlation fields to follow exported spans and contextual logs.
Operator Actions
A connected agent can expose route listings, queue administration, schedule controls, cache and storage operations, selected CLI commands, and benchmarks. Treat actions that change state or send work as production changes.
| Action | Confirm before execution |
|---|---|
| Retry, cancel, delete, or clear queue work | App, instance, queue, job identity, retry effects, and backend support |
| Run or control a schedule | App, schedule name, overlap policy, and downstream effects |
| Change cache or storage data | Named resource, driver, object or key, and recovery path |
| Run a CLI command | Selected process, command arguments, and command side effects |
| Run a benchmark | Isolated or authorized environment, workload target, and cleanup behavior |
Queue drivers can return an unsupported error for admin operations. An unavailable action requires a driver or component check. A resource can still contain data when its selected driver cannot list or control it.
For workload setup, result interpretation, and cleanup checks, use Performance Benchmarks.
Operational Workflow
- Start with the alert, readiness failure, log, or metric series that identifies the affected app and resource.
- Select that app and the process instance in Lighthouse. Confirm source and instance identity before continuing.
- Open a recent inspect or resource view. Match its timestamp and identity to the original signal.
- Read the resource state and driver capability. Confirm the effect of any retry, deletion, schedule change, or command.
- Execute the authorized action once and read its result. Check the resource again before retrying an uncertain action.
- Verify recovery in application logs, metrics, readiness, and the resource's own state. Record the action and outcome without captured secrets.
If the agent disconnects during the action, use direct app commands and backend state to establish the result before submitting it again. For absent or incomplete evidence, follow signal failure checks.
Failure Modes
| Symptom | Check and response |
|---|---|
| Agent reports a missing secret | Supply the matching LIGHTHOUSE_SECRET through the process's secret delivery path. |
| Agent connection returns HTTP 401 | Verify that the server and agent use the same secret. |
| Connection returns HTTP 404 or HTTP 200 without a websocket upgrade | Check the /lighthouse/ws/agent URL, component enablement, and proxy websocket routing. |
| App or instance disappears | Check process state, network connectivity, and agent warnings. Use direct health, logs, metrics, and commands during the outage. |
| Browser login fails | Use username admin and the server's current shared secret. After rotation, authenticate again. |
| Resource or action is unavailable | Confirm the app's components and driver capability before inferring the resource's state. |
Production Checklist
- Browser and agent access use restricted operator networks and encrypted remote transport.
- Server, agents, and browser sessions use the intended shared secret.
- Every replica has an unambiguous app, source, and instance identity.
- Operators verify outcomes before repeating an action after a disconnect.
- Direct health checks, logs, metrics, and app commands remain available during a Lighthouse outage.