Skip to content

Run the app builder with self-hosted installations - #236

Merged
tnkuehne merged 2 commits into
feat/hosted-app-builderfrom
feat/self-hosted-app-builder
Nov 20, 2026
Merged

tnkuehne merged 2 commits into
feat/hosted-app-builderfrom
feat/self-hosted-app-builder

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Self-hosted installations get the app builder from #232 as a Compose service, so one-click template installs (#234) work there as on hosted installations (#235).

  • The runtime image builds the service documentation module and the app builder and ships them in /opt/widefleet-builder, with the tsrs license. No new image or registry repository: the builder uses the runtime image's celld.
  • packages/app-builder/build.ts also writes dist/wrangler.json, a celld project with the Worker's name and compatibility date. celld rejects the hosted-only keys of wrangler.jsonc (base_dir, limits, observability …); Wrangler does not upload the file.
  • Compose runs the builder service with celld dev --no-watch: one stateless node with local storage on a tmpfs, so the builder holds no storage credentials. It runs read-only without capabilities, publishes no port and shares the builder network only with the control plane. It reaches the npm registry for dependencies. The control plane gets PLATFORM_APP_BUILDER_URL=http://builder:8080.
  • The local demo starts the builder too.

Tests:

  • compose.test.ts checks that only the builder and the control plane are on the builder network, that the builder has no ports, volumes or credentials, and that the control plane finds it.
  • builder-container.test.ts (packaged-runtime suite) starts the Compose service from the runtime image and bundles, documents and rejects a project.
  • Locally, the container also built and documented the gmail, github and onedrive templates with their npm dependencies.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Self-hosted installations and the local demo now run the app builder from the runtime image.

  • Self-hosted installs can build templates through a private app builder.

The previously reported startup issue is fixed: starting the control plane now starts the builder and waits for it to be healthy. No new actionable issues were found. Container tests were inspected, not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  C[Control plane] -->|Private Compose network| B[Builder service]
  B --> N[npm registry]
  I[Runtime image] --> B
  I --> R[App runtime]
  B --> W[Bundled app and documentation]
Loading

Reviews (8) · Last reviewed commit: "Start the app builder with the control p..." · Reviewed by Greptile

@tnkuehne
tnkuehne added this pull request to stack #233 November 19, 2026 22:55
Comment thread infra/compose.base.yaml Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs dc9785e Nov 19 2026, 11:53 PM

@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch from d4ba6ff to b588692 Compare November 19, 2026 23:33
@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch from b588692 to b817815 Compare November 19, 2026 23:37
@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch from b817815 to d852e06 Compare November 19, 2026 23:39
@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch from d852e06 to 2e7aefe Compare November 19, 2026 23:44
@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch 2 times, most recently from 0412021 to b4e80d1 Compare November 19, 2026 23:48
@tnkuehne
tnkuehne force-pushed the feat/self-hosted-app-builder branch from b4e80d1 to dc9785e Compare November 19, 2026 23:51
The runtime image now carries the app builder and its WebAssembly modules,
and Compose runs it as the `builder` service with `celld dev`: one stateless
node with local storage, so the builder holds no storage credentials. It
shares a network only with the control plane, publishes no port and reaches
the npm registry for dependencies. The control plane finds it through
PLATFORM_APP_BUILDER_URL, and the local demo starts it as well.
The installation guide starts the control plane and proxy by name, which left the builder stopped while template installs were enabled.
@tnkuehne
tnkuehne merged commit d8d52e5 into main Nov 20, 2026
17 checks passed
@tnkuehne
tnkuehne deleted the feat/self-hosted-app-builder branch November 20, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant