Title: `jss install --bundle
Open Graph Title: `jss install --bundle
X Title: `jss install --bundle
Description: Phase 6 of the phased install plan (#464 comment). The atom (`jss install `, shipped in #479) makes single-app installs cheap; `--bundle` is the composition primitive that turns that atom into "install my entire stack from one URL." CLI ...
Open Graph Description: Phase 6 of the phased install plan (#464 comment). The atom (`jss install `, shipped in #479) makes single-app installs cheap; `--bundle` is the composition primitive that turns that atom into "ins...
X Description: Phase 6 of the phased install plan (#464 comment). The atom (`jss install `, shipped in #479) makes single-app installs cheap; `--bundle` is the composition primitive that turns that atom into &quo...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/485
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`jss install --bundle \u003csource>` — apt-style meta-packages (Phase 6 of #464)","articleBody":"Phase 6 of the phased install plan ([#464 comment](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/464#issuecomment-4474167100)). The atom (\\`jss install \u003cname>\\`, shipped in [#479](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/479)) makes single-app installs cheap; \\`--bundle\\` is the composition primitive that turns that atom into \"install my entire stack from one URL.\"\n\n## CLI\n\n\\`\\`\\`\njss install --bundle \u003csource> # install everything in the bundle\njss install --bundle \u003csource> chrome vellum # bundle + ad-hoc additions\njss install --bundle media --pod http://other:4443 # same auth + target flags as bare install\njss install --bundle media --nostr-privkey \u003chex> # NIP-98 auth works too\n\\`\\`\\`\n\n## \\`\u003csource>\\` resolution\n\nMirrors the install spec parser, plus local paths:\n\n| Input | Resolves to |\n|---|---|\n| \\`--bundle media\\` | \\`https://raw.githubusercontent.com/solid-apps/bundles/main/media.jsonld\\` (default registry convention) |\n| \\`--bundle \u003corg>/\u003crepo>\\` | \\`https://raw.githubusercontent.com/\u003corg>/\u003crepo>/main/bundle.jsonld\\` |\n| \\`--bundle https://...\\` | fetch as-is |\n| \\`--bundle ./my-stack.jsonld\\` | read from filesystem |\n| \\`--bundle /abs/path.jsonld\\` | read from filesystem |\n\n## Bundle JSON-LD shape\n\n\\`\\`\\`json\n{\n \"@context\": {\n \"schema\": \"https://schema.org/\",\n \"app\": \"urn:jss:app:\"\n },\n \"@id\": \"#bundle\",\n \"@type\": \"schema:ItemList\",\n \"schema:name\": \"Media stack\",\n \"schema:description\": \"Audio, video, PDF apps\",\n \"schema:itemListElement\": [\n \"playlist\",\n \"pdf\",\n \"mp3url\",\n { \"app:spec\": \"JavaScriptSolidServer/git\", \"app:label\": \"Git viewer\" }\n ]\n}\n\\`\\`\\`\n\nEach item is either:\n- A **bare string** — any valid Phase 1+2 spec (\\`chrome\\`, \\`org/repo\\`, \\`org/repo#ref\\`, \\`org/repo=rename\\`, full URL)\n- An **object** with required \\`app:spec\\` + optional \\`app:label\\` / \\`app:description\\` for human-readable display\n\n## Behavior\n\n- **Bundle header printed once** (name + description) before the per-app status lines\n- **Per-app output** identical to bare \\`jss install\\` (\\`✓\\` / \\`⊘\\` / \\`✗\\` lines)\n- **Continue-on-error** per app (same as multi-arg install)\n- **Final summary** \\`N/M installed\\`, exit non-zero if any failed\n- **Auth flags inherited** — \\`--pod\\`, \\`--user\\`, \\`--password\\`, \\`--nostr-privkey\\` work identically; same auth used for every install in the bundle\n\n## Scope (~50 LoC)\n\n- Add \\`--bundle \u003csource>\\` flag to the install subcommand\n- New helper \\`parseBundle(input)\\` that resolves the source to a URL/path\n- New helper \\`fetchBundle(resolvedSource)\\` that GETs (or reads from disk) and parses the JSON-LD\n- Iterate items, normalize each (string → \\`{app:spec: str}\\` object), pass through the existing \\`parseAppSpec\\` + \\`installOne\\` machinery\n- Validate item shape; reject items missing \\`app:spec\\` (or non-string strings)\n\n## Acceptance criteria\n\n\\`\\`\\`bash\n# Suppose solid-apps/bundles/main has a media.jsonld file\n$ jss install --bundle media\n\nInstalling 3 apps from bundle \"Media stack\" → http://localhost:4443\n\n✓ playlist → http://localhost:4443/public/apps/playlist/\n✓ pdf → http://localhost:4443/public/apps/pdf/\n✓ mp3url → http://localhost:4443/public/apps/mp3url/\n\n3/3 installed.\n\\`\\`\\`\n\n## Tests\n\n- [ ] Bundle from a local JSON-LD file\n- [ ] Bundle from a remote URL\n- [ ] Bundle from \\`--bundle \u003cname>\\` shorthand against the default registry\n- [ ] Bundle items as strings (\\`\"chrome\"\\`)\n- [ ] Bundle items as objects (\\`{ \"app:spec\": \"chrome\" }\\`)\n- [ ] Bundle items with rename / ref suffix (\\`\"foo/bar=mybar\"\\`, \\`\"chrome#v1\"\\`)\n- [ ] Mixed: \\`--bundle media chrome\\` installs the bundle + chrome\n- [ ] Invalid bundle (missing items, non-array, malformed JSON) → clear error, exit 1\n- [ ] Partial failure (3/4 apps install) → still prints all results, exit 1\n\n## Followups (not this PR)\n\n- **Phase 6.5: pod-self-recording.** After each \\`jss install X\\`, write/update \\`\u003cpod>/.installed.jsonld\\` (a bundle of what's installed). \\`jss install --restore \u003cpod-url>\\` re-installs from another pod's \\`.installed.jsonld\\` for cross-server migration or post-wipe recovery. ~50 more LoC, separate issue once Phase 6 lands.\n\n## Parent\n\n#464 — phased plan in the [comment thread](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/464#issuecomment-4474167100)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-18T04:42:12Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/485"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b001ab04-eff9-690e-b939-7f5db7d17506 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A046:D405E:124EA26:173BB67:6B0393A9 |
| html-safe-nonce | cdbc4f6f84a112ed590bcbbdf841f6564244fd3e9f54b0a2fa370f96ebce4831 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDQ2OkQ0MDVFOjEyNEVBMjY6MTczQkI2Nzo2QjAzOTNBOSIsInZpc2l0b3JfaWQiOiI0MzMzODI5MDIwODgzMDYzNzIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 97f5f0085b37995eacbf729938ba3462f420a5c2ee28f841cd3b6c34ed198aca |
| hovercard-subject-tag | issue:4466314981 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/edd85369b016e6d69ae4675a2bfeb31f9df8660e81ec2f380eab188327abd94a/JavaScriptSolidServer/JavaScriptSolidServer/issues/485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/edd85369b016e6d69ae4675a2bfeb31f9df8660e81ec2f380eab188327abd94a/JavaScriptSolidServer/JavaScriptSolidServer/issues/485 |
| og:image:alt | Phase 6 of the phased install plan (#464 comment). The atom (`jss install `, shipped in #479) makes single-app installs cheap; `--bundle` is the composition primitive that turns that atom into "ins... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width