Repository navigation
Add an app builder Worker for server-side builds - #232
Merged
Merged
Conversation
tnkuehne
force-pushed
the
feat/app-builder
branch
from
November 19, 2026 17:56
833c262 to
62086a6
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 28c17b5 | Nov 19 2026, 10:56 PM |
This was referenced Nov 19, 2026
@platform/app-builder bundles an app project with @cloudflare/worker-bundler and documents its service entrypoints with the service documentation module. POST /bundle returns the Worker module, its source map and metadata as `widefleet deploy` uploads them; POST /document returns the documentation. Separate requests let hosted installations run each phase in its own Worker. The bundler patch resolves packages with the bundle's export conditions and browser fields, matches externals exactly, streams package archives, keeps only the files each phase reads, embeds no sources in source maps and restarts esbuild between builds.
The packaged server's dependency graph does not include the builder, so pnpm rejects the patch as unused.
Name the source map module by its digest, as the CLI does, so the build ID changes with the map. Report esbuild diagnostics and imports the bundler could not resolve as build errors instead of leaving them external. Remove trailing commas only outside strings. Documentation installs the development dependencies the sources or tsconfig.json reference, such as type-only packages, and returns declaration install warnings. The bundler patch keeps empty modules and code named like documentation, such as license.js.
TypeScript accepts comments and trailing commas there, as Wrangler does.
Service bindings and a private network that only the control plane joins restrict access, so the builder needs no token of its own.
Dependencies install without their source maps to keep the build's memory low, so esbuild reported every map a package module references. Installs of the official templates returned a dozen of these warnings.
tnkuehne
force-pushed
the
feat/app-builder
branch
from
November 19, 2026 23:37
28c17b5 to
08d28e0
Compare
require() calls now select a package's require export and prefer `main` over `module`, so dual packages give CommonJS callers their CommonJS entry. Packages whose type entry is a TypeScript source keep their .ts files for documentation, which otherwise lost those types.
Unresolved require() calls stayed behind esbuild's require shim and failed only when the app ran; the CLI's bundler stops the build instead.
The output scan also matched strings, and the CLI's esbuild keeps require() calls in try blocks for optional dependencies, which neither the scan nor a resolver error can tell apart without a file system. Unresolved require() calls stay for run time, as before.
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
Installations with an app builder can install a template in one step
from its catalog page, the API or the CLI. Widefleet builds the
template's sources at the current commit and deploys them as an app in
the organization; the template page then continues with its remaining
setup steps.
- **UI:** the template page shows **Install** next to the template's
name, across the full width on narrow screens. It installs into an app
named like the template, shows the build in progress and opens the app's
deployment history, where the deployment continues as with any upload.
An install never replaces a deployed app: when an app of that name has a
deployment, the page asks for another name before any build work. An app
that was never deployed, such as one left by an install that failed to
publish, takes the install. Without a builder the page is unchanged.
- **API:** `POST /api/v1/catalog/templates/{templateId}/install` with an
optional `name` returns the app, the deployment and build warnings; a
taken name is a 409. Templates report `installable`.
- **CLI:** `widefleet catalog templates install <template> [--name
<app>]` prints the same result as JSON and allows ten minutes for the
build.
The control plane loads the template directory at one commit (using
`GITHUB_TOKEN` when set) without its tests, checks the creator
permission and the name before building, calls the builder's `/bundle`
and `/document` phases from #232, creates the app only after a
successful build so a failed build leaves the name free (a retry after a
failed publish continues into the empty app), and publishes through the
same upload path as `widefleet deploy`. Builder project errors become
400 responses with the builder's message; an unreachable builder is a
503.
Hosted installations bind the two phases as `APP_BUILDER` and
`APP_DOCUMENTER`; self-hosted installations set
`PLATFORM_APP_BUILDER_URL` to a builder on a private network that only
the control plane joins. Deploying the builder for each installation
type follows in separate changes, so this change leaves existing
installations as they are.
Stacked on #232.
## Screenshots
Template page, 1280 px light, before and after:
<img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/before-light-1280.png"
width="640"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-light-1280-v3.png"
width="640">
390 px light before and after, 1280 px dark before and after:
<img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/before-light-390.png"
width="260"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-light-390-v4.png"
width="260"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/before-dark-1280.png"
width="400"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-dark-1280-v3.png"
width="400">
Installing (1280 and 390 px), the deployment history after the redirect,
and 390 px dark:
<img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-installing-1280-v3.png"
width="520"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-installing-390-v4.png"
width="260"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-deployments-1280.png"
width="520"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/88679dda80c96382d07c5d389aabfb9635d54ecb/after-dark-390-v4.png"
width="260">
A taken name: the page asks for another (1280 px light and dark, 390 px
light and dark, 390 px with a new name):
<img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/db3ea73c1538a678132aed23aa39f9a32f8428a8/after-conflict-light-1280.png"
width="520"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/db3ea73c1538a678132aed23aa39f9a32f8428a8/after-conflict-dark-1280.png"
width="520">
<img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/db3ea73c1538a678132aed23aa39f9a32f8428a8/after-conflict-light-390.png"
width="260"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/db3ea73c1538a678132aed23aa39f9a32f8428a8/after-conflict-dark-390.png"
width="260"> <img
src="https://gist.githubusercontent.com/tnkuehne/b2a9e74c3f3d65dba45b958f51fd7d57/raw/db3ea73c1538a678132aed23aa39f9a32f8428a8/after-renamed-390.png"
width="260">
Checked with the built Node server, synthetic template repository and a
synthetic builder at 390 and 1280 px in light and dark: the default and
installing states, a taken name followed by an install under a new name,
the redirect to the deployment history, and the page without a builder,
which matches main. Not checked visually: the form without JavaScript,
and builder failures in the browser (covered by API tests).
## Validation
`pnpm check`, the full `pnpm exec vitest run` (1121 tests) and `cargo
fmt --check` pass. `template-installs.integration.test.ts` covers the
install through the API against PostgreSQL with a synthetic builder:
sources without tests, the published artifact's modules, bindings,
source map name and documentation, a taken name ending the install
before the build, an install under another name, an install into an app
that was never deployed, failed builds leaving no app, reserved names,
builder errors, unavailable builders, missing templates, and
installations without a builder. `RUN_CLI_TESTS=1` covers the CLI
command, its request and invalid template IDs.
<!-- greptile_comment -->
<!-- greptile_summary -->
<h2><a
href="https://app.greptile.com/api/retrigger?id=113124938&sig=2cf9f3c5dce824994a007c430af96fe29e3bed7ea4cfc55c6b9d6ca2573f77e6"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img
alt="Retrigger"
src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"
align="right"></picture></a><a
href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F234&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img
alt="View in Greptile"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"
align="right"></picture></a>Confidence Score: 5/5</h2>
<!-- greptile-impact-verdict --> This PR appears safe to merge.
<details open><summary><h3>Summary</h3></summary>
Adds one-click template installs through the catalog page, API and CLI,
using the app builder and the existing deployment path.
- The control plane builds templates into apps and publishes them.
- The template page can install a template and open its deployment
history.
- The CLI can build and install a catalog template as an app.
No new actionable issues found. The previous deployment-overwrite
finding is fixed.
</details>
<!-- greptile_confidence_score:5 -->
<sub>Reviews (11) · Last reviewed commit: ["Recheck under the app lock
that a
templa..."](8fe937b)
· [Reviewed by
Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub>
<!-- /greptile_comment -->
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
Hosted installations now deploy the app builder from #232 and bind it to the control plane, which turns on one-click template installs from #234. `deploy-hosted.ts` deploys the same builder Worker twice, as `<name>-app-builder` for `/bundle` and `<name>-app-documenter` for `/document`, so each build phase runs in its own isolate. Both deploy before the control plane, which binds them as `APP_BUILDER` and `APP_DOCUMENTER`. They have no workers.dev or preview URLs and no routes, so only the control plane reaches them. The builder's base configuration is `packages/app-builder/wrangler.jsonc`: the prebuilt `dist/builder.js` with its two WebAssembly modules attached as compiled Wasm, and a CPU limit of 120 seconds for large dependency graphs. The deployment stops with build instructions when the builder or its modules are missing. Hosted deployments therefore build the service documentation module (`cargo build --profile wasm -p platform-service-docs-wasm --target wasm32-wasip1`) and the builder (`pnpm --filter @platform/app-builder build`) before deploying. Stacked on #234. Self-hosted installations follow in a separate change. Validation: `pnpm check`; `hosted-installation.test.ts` (16 tests, including `RUN_CLOUDFLARE_TESTS=1` after `build:cloudflare`) covers both builder configurations and the control plane's bindings. A Wrangler dry run uploads `builder.js` with both modules (25.6 MB, 6.6 MB gzip); CI repeats it in the Rust suite after building the builder. <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=113290441&sig=22c4f58bc9a1a179c1e9eee835d1c1f751c3ced826570c1f985601357e275cdb"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F235&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge; no blocking issues were found. <details open><summary><h3>Summary</h3></summary> Hosted installations now deploy separate Workers for app bundling and service documentation, enabling one-click template installs. - Hosted installs now run app bundling and documentation in separate Workers. No actionable issues found. Tests were not run during this review. </details> <details open><summary><h3>Diagram</h3></summary> ```mermaid %%{init: {'theme': 'neutral'}}%% flowchart LR D[Hosted deployment] --> B[Deploy bundler Worker] B --> S[Deploy documentation Worker] S --> C[Deploy control plane] C -->|APP_BUILDER: /bundle| B C -->|APP_DOCUMENTER: /document| S ``` </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (8) · Last reviewed commit: ["Deploy the app builder with hosted insta..."](aa9a6e8) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
tnkuehne
added a commit
that referenced
this pull request
Nov 20, 2026
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. <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=113431912&sig=9586ddbfc2a47758bc5d806944ebc5c4494de6abec908fc1a818e90f0202796d"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a><a href="https://app.greptile.com/-/switch-tenant?tenant=mendra&next=%2Fwidefleet%2Fwidefleet%2Fpull%2F236&utm_source=greptile_review&utm_medium=github&utm_campaign=view_in_greptile"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img alt="View in Greptile" src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> The PR appears safe to merge. <details open><summary><h3>Summary</h3></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. </details> <details open><summary><h3>Diagram</h3></summary> ```mermaid %%{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] ``` </details> <!-- greptile_confidence_score:5 --> <sub>Reviews (8) · Last reviewed commit: ["Start the app builder with the control p..."](dc9785e) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub> <!-- /greptile_comment -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@platform/app-builderturns an app project's source files into whatwidefleet deployuploads: the bundledworker.js, its source map, the Worker metadata and the service documentation. It is the build service for one-click template installs and runs in workerd and celld.POST /bundleinstalls the project's npm dependencies with@cloudflare/worker-bundler, bundles the Wrangler entry like the CLI and returns the module, source map and metadata (bindings, compatibility flags, crons, queue consumers, entrypoints, build ID).POST /documentinstalls the declarations of the dependencies and of the development dependencies the sources or tsconfig reference, runs the service documentation module from Build service documentation as a reusable crate and WebAssembly module #230 in entry mode and returns any declaration install warnings.The two phases are separate requests, so a hosted installation can deploy the Worker twice and keep their memory in separate isolates. Only the control plane reaches the builder, through service bindings or a private network that no other workload joins.
NPM_REGISTRYselects a registry such as a company mirror. Syntax errors and imports that do not resolve are reported as build errors, as the CLI's bundler reports them; the source map module is named by its digest, as the CLI names it, so the build ID covers the map. Projects with static assets keep deploying through the CLI.For the Gmail, GitHub and OneDrive templates the builder's module and source map positions are byte-identical across workerd and celld, and the documentation is identical to the CLI's. Remaining bundle differences come from dependency versions installed from npm. Source maps contain positions only: the control plane maps stack traces by position, and documentation reads the original files.
The pinned
@cloudflare/[email protected]patch:workerdbuilds of@better-auth/coreand@better-auth/utilsas esbuild does for the CLI;fsdoes not externalizefs-extra;sourcesContentand stops esbuild between builds, whose heap otherwise keeps its largest size.On Cloudflare a full Gmail build kept 56 MiB below the isolate memory limit, and six consecutive builds succeeded; with the unpatched bundler a single build exceeded it. Builds take 3–7 seconds in celld.
Stacked on #230. Later changes deploy the builder for hosted and self-hosted installations and add template installs to the control plane, API and CLI.
Validation:
pnpm check;RUN_BUILDER_TESTS=1runs the built Worker in Miniflare against a synthetic npm registry. It covers CLI-equivalent metadata, theworkerdexport condition, empty modules and code named like documentation, therequirebridge and source map offset, the build ID, documentation including type-only development dependencies, and project and source errors. The main test fails with the unpatched bundler. CI builds the documentation module and the Worker before these tests.

Confidence Score: 5/5
The follow-up appears safe to merge; no new blocking issues were found.Summary
Adds a server-side Worker that builds app source files and generates service documentation in separate requests.
tnkuehne accepts leaving unresolved
require()calls for runtime so optional dependencies insidetryblocks can build.Reviews (8) · Last reviewed commit: "Leave unresolved require() calls for run..." · Reviewed by Greptile