Title: Generalize `jss install` spec:
Open Graph Title: Generalize `jss install` spec:
X Title: Generalize `jss install` spec:
Description: Phase 2 of the phased install plan (#464 comment). Phase 1 (#478 / #479) shipped a working jss install
Open Graph Description: Phase 2 of the phased install plan (#464 comment). Phase 1 (#478 / #479) shipped a working jss install
X Description: Phase 2 of the phased install plan (#464 comment). Phase 1 (#478 / #479) shipped a working jss install <name> against the default registry; this generalizes the input. What Extend parseAppSpe...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/480
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generalize `jss install` spec: \u003corg>/\u003crepo>, URLs, refs, rename (Phase 2 of #464)","articleBody":"Phase 2 of the phased install plan ([#464 comment](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/464#issuecomment-4474167100)). Phase 1 ([#478 / #479](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/478)) shipped a working `jss install \u003cname>` against the default registry; this generalizes the input.\n\n## What\n\nExtend `parseAppSpec` in `src/cli/install.js` to accept three input shapes plus two suffixes:\n\n| Input | Resolves to | Pod path |\n|---|---|---|\n| `chrome` | `github.com/solid-apps/chrome` (default registry) | `/public/apps/chrome/` |\n| `JavaScriptSolidServer/git` | `github.com/JavaScriptSolidServer/git` | `/public/apps/git/` |\n| `https://github.com/foo/bar` | as-is | `/public/apps/bar/` |\n| `chrome#v1` | `github.com/solid-apps/chrome` @ ref `v1` | `/public/apps/chrome/` |\n| `litecut/litecut.github.io=litecut` | `github.com/litecut/litecut.github.io` → renamed | `/public/apps/litecut/` |\n\nOptional suffixes apply to any form:\n- `#\u003cbranch-or-tag>` — pin a ref (uses `git clone --branch \u003cref>`)\n- `=\u003cname>` — rename the pod path\n\n## Reference\n\njspod's `parseAppSpec` ([source](https://github.com/JavaScriptSolidServer/jspod/blob/gh-pages/index.js)) — already shipped, verified across many repos. Port it directly.\n\n## Acceptance criteria\n\n```bash\n$ jss install chrome # Phase 1: backward compatible\n✓ chrome → http://localhost:4443/public/apps/chrome/\n\n$ jss install JavaScriptSolidServer/git # Phase 2: any GitHub org/repo\n✓ JavaScriptSolidServer/git → http://localhost:4443/public/apps/git/\n\n$ jss install litecut/litecut.github.io=litecut # rename pod path\n✓ litecut/litecut.github.io=litecut → http://localhost:4443/public/apps/litecut/\n\n$ jss install solid-apps/chrome#v1 # pin a tag or branch\n✓ solid-apps/chrome#v1 → http://localhost:4443/public/apps/chrome/\n\n$ jss install https://github.com/foo/bar # full URL\n✓ https://github.com/foo/bar → http://localhost:4443/public/apps/bar/\n```\n\n## Scope\n\n~30 LoC delta in `src/cli/install.js`:\n- Expand `parseAppSpec` to handle ref + rename suffixes and three input shapes\n- Adjust `installOne` to add `--branch \u003cref>` to `git clone` when ref is set\n- Validate ref against `/^[a-z0-9][a-z0-9_./-]*$/i` (allows tag/branch shapes, rejects shell metacharacters)\n- Validate derived name against the existing `/^[a-z0-9][a-z0-9_.-]*$/i`\n\nNo new dependencies. Per-app output keeps printing the user's input verbatim so they recognize which line failed.\n\n## Test plan\n\n- [ ] All five shapes above produce 200 on `/public/apps/\u003cderived-name>/`\n- [ ] Invalid shapes (`foo/bar/baz`, `=name-only`, `#ref-only`) → validation error, exit 1\n- [ ] Ref pinning actually checks out the named ref (smoke test: install `solid-apps/chrome#v1` after we tag a v1)\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:13:48Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/480"}
| 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:08fdd72b-3d74-db1b-754e-b90625e2bd33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A006:137FF:12D08F4:17CD10B:6B0393A4 |
| html-safe-nonce | d84864095d564d7e6fbcf6376d725b5e9a32bbf7f7bab8e2b3a41b34da51f993 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDA2OjEzN0ZGOjEyRDA4RjQ6MTdDRDEwQjo2QjAzOTNBNCIsInZpc2l0b3JfaWQiOiIyMDExMjEwNTYwOTAwOTI4NDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 18229b230071ab616051e0d880ba075768f2e9220650e019b86e0fba7e8f1393 |
| hovercard-subject-tag | issue:4466206683 |
| 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/480/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68c0e88619edf49f1c882878c58a7f79ca950c14df1060acd5a382867b42065f/JavaScriptSolidServer/JavaScriptSolidServer/issues/480 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68c0e88619edf49f1c882878c58a7f79ca950c14df1060acd5a382867b42065f/JavaScriptSolidServer/JavaScriptSolidServer/issues/480 |
| og:image:alt | Phase 2 of the phased install plan (#464 comment). Phase 1 (#478 / #479) shipped a working jss install |
| 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