Skip to content

Bundle profile + home in the curated apps/ set (offline-first install)#61

Open
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
bundle-curated-apps-profile-home
Open

Bundle profile + home in the curated apps/ set (offline-first install)#61
melvincarvalho wants to merge 1 commit into
gh-pagesfrom
bundle-curated-apps-profile-home

Conversation

@melvincarvalho
Copy link
Copy Markdown
Contributor

Summary

apps/ ships inside the jspod package and seedPodFiles() copies it into the pod on first run — offline, no git, no network. It already bundled pilot; this adds profile and home.

Why

For git-less / single-process embedders — especially nodejs-mobile (the Android app, js-pod/android) via the in-process start() in #58 / #59 — the bundled apps/ is the offline-first install path. A pod boots with a useful curated set already installed, with no jsDelivr/git network round-trip. The network install (#60) stays as the path for arbitrary/extra apps and no-release updates.

What

Vendored snapshots of each app's gh-pages deployable files (README/LICENSE excluded), matching how apps/pilot is structured:

  • apps/profile/ — app.js, index.html, style.css, xlogin.js, manifest.json, favicon.svg, icons
  • apps/home/ — home.js, index.html, manifest.json, favicon.svg, icons, og.png

Tradeoffs

  • ✅ offline, instant first run, no git
  • ⚠️ updating these apps needs a jspod release (bundled copy is pinned to the jspod version)
  • ⚠️ grows the package by a few small static sites

Notes

apps/ ships inside the package and seedPodFiles() copies it into the pod
on first run — offline, no git, no network. It already carried pilot;
add profile and home so embedders (esp. nodejs-mobile/Android via the
in-process start, #58/#59) get a useful curated set installed offline at
first boot, without the jsDelivr/git network path.

Snapshots of each app's gh-pages deployable files (README/LICENSE
excluded), matching how apps/pilot is vendored.
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