Skip to content

Slim control plane: single-process mode and UI served by API #3763

Done

Description

@integry

The control plane uses ~450 MB across separate Node processes (api ~170 MB, worker ~115, indexing-worker ~90, daemon) plus a serve -s dist UI container (~35 MB). Measured on a 1 GB Fly Machine: works with ~366 MB free; 512 MB is not viable. Small VPSes, laptops and Desktop all benefit from a lighter footprint.

Acceptance:

  • New propr all-in-one entry (npm script + image CMD option) runs daemon, worker and api in one Node process with shared Redis/SQLite connections; indexing worker optional (PROPR_INDEXING=off|inline|separate).
  • API can serve the built UI statically (same-origin), removing the UI container in all-in-one mode; runtime config.js injection preserved.
  • Launcher/CLI support a --profile minimal that starts redis + all-in-one only.
  • Measured RSS documented; target fits with headroom in 512 MB (stretch) / comfortably in 1 GB.
  • Existing multi-container mode unchanged and default.

Implementation

Add src/allInOne.ts composing existing daemon/worker/api bootstraps (src/daemon.ts, src/worker.ts, src/index.ts) with graceful shutdown ordering. Add static UI serving to the API server. Update docker/launcher/orchestrator.mjs and packages/cli startCommand/stackCommands for the minimal profile. Update setup.md capacity table.

Activity

  1. propr-dev commented on Nov 24, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3763/claude-opus-5-5-slim-control-plane-single-20261124-0015-aej
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3763-20261124-0015-claude-opus-5-5-aej

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions