Repository navigation
Description
Context
Follow-up to JSS#463 (Solid-native apps-in-pods surface). jspod#25 proposes `jspod install ` — clone a Solid app's repo into the pod's `public/apps//` directory.
The wrapper-side install command works without any JSS support. But there's an open question about whether JSS itself should know about git as an app source — and if so, what the surface looks like.
Why bring git into the protocol conversation
Most Solid apps live in git. The Type Index pattern names data containers; an analogous "apps live here, here's where their source is" pattern would let:
- A pod owner reproducibly re-install apps after a wipe ("install everything I had before")
- Cross-server migration ("export pod, on the other server reinstall all apps from their git URLs")
- App authors publish a single canonical URL that any JSS deployment can install from
- Discovery: a Solid client could ask "what apps does this pod have, and where are their sources?"
Proposed shapes
Option A: git source recorded only in app manifests (no JSS-side change)
`pod-data/public/apps//manifest.json` includes a `source: { type: "git", url, ref }` block. The wrapper that did the install writes it; JSS is unaware. Reads / migrations are wrapper concerns.
Pro: simplest, no JSS change.
Con: no protocol-level discovery; clients have to enumerate the directory and parse manifests.
Option B: `/.well-known/apps` aggregates manifests including source URLs
JSS reads each `apps/*/manifest.json` and serves an aggregated JSON-LD listing. App entries include the git source if present. Same primitive as Option C in JSS#463, but with git URLs visible in the API.
Pro: discoverable. Pro: one read for a client to find "all apps + their sources."
Con: more endpoint surface.
Option C: An "App Index" Solid resource
Analogous to the Type Index. `/settings/appIndex.jsonld` lists installed apps with their pod-local install path + their original source URL (git, tarball, npm). Apps register themselves on install via PUT.
Pro: Solid-native, composable with the Type Index spirit.
Con: needs a spec or community sign-off if it's to be portable across CSS / NSS / JSS.
Recommendation
Option A short-term (wrapper-side, no JSS change). If jspod#25 ships and the manifest convention catches on, graduate to Option B as a low-cost validation that the data is useful to clients. Option C is the long-arc design once enough apps are doing this.
Cross-references
- jspod#24, jspod#25 — wrapper-side install command (the generalized version + the git-focused subset)
- JSS#462 — onboarding overhaul (apps-in-pods is implicit Phase 8)
- JSS#463 — broader protocol-level apps surface (this is the git-focused subset)
- Solid Type Index spec — analogue
Activity
fix(git): auto-init regular (non-bare) repos so pushed files are serv…
melvincarvalho commentedon May 18, 2026
Update — jspod#25 has shipped + proposing a phased port back to JSS
Status:
jspod install <name>(defaultsolid-apps/<name>registry, dual-pushHEAD:main+HEAD:gh-pages, skip-on-existing, token from/idp/credentials).<org>/<repo>, full URL,#<ref>for tag/branch pinning,=<name>for pod-path rename.solid-apps/chrome,solid-apps/vellum,solid-apps/win98,solid-apps/pdf,solid-apps/hub,solid-apps/playlist,solid-apps/alarm, and the user's ownJavaScriptSolidServer/git+litecut/litecut.github.io=litecut. Re-installs cleanly, skips bundledpilotcorrectly.The wrapper-side feature is now real and the manifest convention from Option A is implicitly happening (each installed app's git history is its manifest — the repo origin, the ref, the contents).
Proposal: phased port to JSS itself
The CLI is genuinely useful regardless of opinion-stack — server operators using
jss startdirectly currently miss the install command, even though all the hard infrastructure (git auto-init-b main, regular-repo extraction viaupdateInstead, ACL-gated push) lives in JSS already. Worth porting; the wrappers keep their opinion presets (default ports, branding, seeded HTML, batteries-included flag sets) but lose the duplicated install code.Phase 1 —
jss install <name>(~120 LoC, the meaningful core)github.com/solid-apps/<name>--pod <url>flag, defaulthttp://localhost:4443(post Follow-up to #245: align runtime port fallbacks in src/server.js with the 4443 config default #477 fix)POST /idp/credentialswith--user/--password/JSS_SINGLE_USER_PASSWORDenv--depth, would be rejected by git-receive)HEAD:main+HEAD:gh-pages) so it works regardless of operator'sinit.defaultBranch⊘ <name>: skippedmessage✓ <name>/⊘ <name>/✗ <name>: <reason>)Phase 2 — generalized spec (~30 LoC, mostly parsing)
<org>/<repo>shorthand →github.com/<org>/<repo>https://...URL → as-is#<ref>suffix →git clone --branch <ref>=<name>suffix → override pod pathPhase 3 —
--didresolution (~40 LoC + lookup)jss install <name> --did did:nostr:<hex>resolves the DID to a pod URL via/.well-known/did/nostr/<hex>(nosdav-server already serves this; jspod could too) → uses the resolved URL as the--podtargetPhase 4 —
--nostr-privkey(NIP-98 signed install) (~30 LoC +@noble/secp256k1dep)jss install <name> --nostr-privkey <64-hex>signs each push with NIP-98 (Authorization: Nostr <b64(signed-event)>)src/auth/token.jsalready verifies NIP-98 and returnsdid:nostr:<hex>identity;src/wac/checker.jsalready does string-equality on agent URIs, soacl:agent did:nostr:<hex>in the target ACL grants access--provision-keys: the user's own provisioned key at<pod>/private/privkey.jsonldis the natural sourcePhase 5 — curated default set (~5 LoC)
jss installwith no args installs a small curated list (e.g.chrome vellum pdf). Lets a new operatorjss start && jss installand have a useful pod in two commands.Phase 6 —
--bundle <url-or-path>(apt-style meta-packages) (~40 LoC)After Phase 1 ships,
jss installbecomes the atom for composability. Bundles are just lists of atoms.jss install --bundle <url>fetches a JSON-LD bundle doc, expands it to a list of app specs (each of which is a valid Phase 1–4 input), and fans out to the per-app install path. Same atom, same error reporting.Recommended JSON-LD shape — a
schema:ItemListof app specs, each an item:{ "@context": { "schema": "https://schema.org/", "app": "urn:jss:app:", "name": "schema:name", "description": "schema:description", "items": { "@id": "schema:itemListElement", "@container": "@list" } }, "@id": "#bundle", "@type": "schema:ItemList", "name": "Media stack", "description": "Audio, video, PDF apps for personal media", "items": [ "playlist", "pdf", "mp3url", { "app:spec": "JavaScriptSolidServer/git", "app:label": "Git viewer" } ] }Each item is either a bare string (a Phase 1–2 spec) or an object with
app:spec+ optionalapp:label/app:descriptionfor UI display.Source flexibility:
--bundleaccepts the same shapes as install itself:--bundle media→ fetchessolid-apps/bundles/media.jsonld(default-registry convention)--bundle https://example.com/dev.jsonld→ fetches any URL--bundle ./my-stack.jsonld→ local pathSharing as a Solid resource: bundles live as JSON-LD docs in any pod, on any server, in any repo. A friend's "want my setup?" link is
--bundle https://melvin.me/bundles/dev.jsonld. ACL-gated, version-controlled like any other Solid resource. No central registry needed.Pod-self-recording (optional Phase 6.5): after each
jss install X, the pod writes/updates<pod>/.installed.jsonld(a bundle of what's installed).jss install --restore <pod-url>re-installs from another pod's.installed.jsonld— cross-server migration, post-wipe recovery. The pod knows what it has, in the same shape any external bundle uses.Why this works as architecture:
The Linux-distribution analogy is precise:
apt install <pkg>jss install <name>/etc/apt/sources.list<org>part of the Phase 2 specapt install task-server(meta-package)jss install --bundle <name>apt list --installedls /public/apps+.installed.jsonlddpkg --get-selections | ssh other apt install -jss install --restore <pod-url>But apt-manifests-as-Solid-resources go beyond apt: bundles are themselves shareable, ACL-gated data — not a fixed config file at a fixed path.
Why this order
Each phase is a single PR. Phase 1 exercises the entire engine (token, clone, push, error handling, skip detection) — once it lands cleanly, phases 2–6 are mechanical extensions with near-zero risk. Each phase delivers user-visible value independently.
Cross-references
--poddefault depends on this)X-Git-Remoteheader for auto-init (orthogonal but pairs naturally — when shipped,jss installadds the header automatically sogit pullworks on the pod side)feat(cli): add `jss install <name>` subcommand (#478, Phase 1 of #464) (
feat(cli): generalize \`jss install\` spec (#480, Phase 2 of #464) (#481
feat(cli): \`jss install --nostr-privkey <hex>\` (#482, Phase 4 of #464…
Bump version to 0.0.198 (#484)
feat(cli): \`jss install --bundle <source>\` (#485, Phase 6 of #464) (#…
feat(plugins): api.plugins — the loaded-plugin roster (#610)
feat(plugins): api.plugins — the loaded-plugin roster (#610) (#612)