Repository navigation
webassembly: an all-apps page, Home and every app frozen into one runtime - #707
Merged
Merged
Conversation
bdbarnett
force-pushed
the
wasm-allapps-pr
branch
from
November 26, 2026 06:36
98a6bd0 to
996890a
Compare
…time scripts/build_wasm_allapps.py --apps-ref REF --omnipython-ref REF --out DIR builds the webassembly port's new allapps variant and writes a page to serve as it is: index.html, which boots into Home, the runtime, its provenance, and allapps.json with the commits that went in. The variant is the omnipython variant's runtime plus every app of the apps checkout and everything their package.json files list, frozen, so the page fetches nothing at run time. An app that can't work in a browser is in, and says what it lacks. build_mp.py takes --library-checkout PATH and --library-source NAME=PATH, so the library and applibs come from the refs asked for instead of the pins. The wasm bridge builds for the allapps variant too. The shared build, the omnipython variant, doesn't change. A manual-dispatch workflow, All-apps browser page, runs the same command and uploads the page as an artifact; it publishes nothing. The guide, docs/guides/build-the-all-apps-page.md, says what it builds, its inputs, how to serve it, its size and time, and how it differs from the shared build. Built locally from apps and omnipython main and driven in headless Chromium: Home boots with its tabs, every app opens or says why it can't run here, REPL runs print(6*7) and prints 42, and no request leaves the page's own server except Backline's default drum kit download. The new LibraryRefs tests pass; test_build_mp's other failures are on main too.
bdbarnett
force-pushed
the
wasm-allapps-pr
branch
from
November 26, 2026 06:48
996890a to
3d3342a
Compare
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.
A second browser build: Home and every app of the apps repository frozen into one WebAssembly runtime, with everything the apps import, so the page boots into Home and fetches no packages. Apps that can't work in a browser are still in and say what they lack. The shared build (the omnipython variant, which the website, docs examples and workbench load) doesn't change.
One command builds it, with its inputs as arguments:
scripts/build_wasm_allapps.py --apps-ref main --omnipython-ref main --out site. It fetches the two repositories at those refs, builds the newallappsvariant withbuild_mp.py, and writesindex.html, the runtime, its provenance andallapps.json(the commits that went in). The variant's manifest takes what to freeze from each app'spackage.json, as omip reads it, rather than a list kept by hand.build_mp.pygains--library-checkoutand--library-source NAME=PATH, so the library and applibs come from the refs asked for instead of the pins. A manual-dispatch workflow, All-apps browser page, runs the same command and uploads the page as an artifact without publishing anything.docs/guides/build-the-all-apps-page.mdcovers inputs, output, serving, size (11.2 MB, 4.9 MB gzipped) and time (2 min 25 s from scratch on 4 cores), CI, and how it differs from the shared build.This branch carries #706's commit (os.dupterm), which the REPL app needs; it will drop out once #706 merges. I built it from apps and omnipython main, then again with PyDevices/apps#293's fixes, and drove it in headless Chromium: Home boots with its six tabs, every app opens or says why it can't run in a browser, REPL (from its Home tile and from
?app=repl) runsprint(6*7)and prints 42 through vtterm's display keyboard, Shell runsls, and no request goes anywhere but the page's own server except Backline's default drum kit, a GitHub release download that the browser refuses for CORS. The newLibraryRefstests pass, as do the rest oftest_build_mpandtest_provenancenow that the branch is on main after #705 (the commit message's note that four failures happen on main was written before that rebase). The workflow itself hasn't run yet.