Skip to content

Apps in pods: support git as a first-class app source #464

Open

Description

@melvincarvalho

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

  1. melvincarvalho commented on May 18, 2026

    @melvincarvalho
    ContributorAuthor

    Update — jspod#25 has shipped + proposing a phased port back to JSS

    Status:

    • jspod#36 shipped the core jspod install <name> (default solid-apps/<name> registry, dual-push HEAD:main + HEAD:gh-pages, skip-on-existing, token from /idp/credentials).
    • jspod#25 shipped the generalized spec — <org>/<repo>, full URL, #<ref> for tag/branch pinning, =<name> for pod-path rename.
    • Verified end-to-end against 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 own JavaScriptSolidServer/git + litecut/litecut.github.io=litecut. Re-installs cleanly, skips bundled pilot correctly.

    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 start directly currently miss the install command, even though all the hard infrastructure (git auto-init -b main, regular-repo extraction via updateInstead, 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)

    • Hardcoded source: github.com/solid-apps/<name>
    • --pod <url> flag, default http://localhost:4443 (post Follow-up to #245: align runtime port fallbacks in src/server.js with the 4443 config default #477 fix)
    • Token via POST /idp/credentials with --user / --password / JSS_SINGLE_USER_PASSWORD env
    • Full clone (no --depth, would be rejected by git-receive)
    • Dual push (HEAD:main + HEAD:gh-pages) so it works regardless of operator's init.defaultBranch
    • Skip-on-existing-path with friendly ⊘ <name>: skipped message
    • Per-app status output (✓ <name> / ⊘ <name> / ✗ <name>: <reason>)

    Phase 2 — generalized spec (~30 LoC, mostly parsing)

    • <org>/<repo> shorthand → github.com/<org>/<repo>
    • Full https://... URL → as-is
    • #<ref> suffix → git clone --branch <ref>
    • =<name> suffix → override pod path

    Phase 3 — --did resolution (~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 --pod target
    • Bearer/DPoP auth as today (Phase 4 changes that)

    Phase 4 — --nostr-privkey (NIP-98 signed install) (~30 LoC + @noble/secp256k1 dep)

    • jss install <name> --nostr-privkey <64-hex> signs each push with NIP-98 (Authorization: Nostr <b64(signed-event)>)
    • No JSS-side work needed — src/auth/token.js already verifies NIP-98 and returns did:nostr:<hex> identity; src/wac/checker.js already does string-equality on agent URIs, so acl:agent did:nostr:<hex> in the target ACL grants access
    • Pairs with --provision-keys: the user's own provisioned key at <pod>/private/privkey.jsonld is the natural source

    Phase 5 — curated default set (~5 LoC)

    • jss install with no args installs a small curated list (e.g. chrome vellum pdf). Lets a new operator jss start && jss install and have a useful pod in two commands.

    Phase 6 — --bundle <url-or-path> (apt-style meta-packages) (~40 LoC)

    After Phase 1 ships, jss install becomes 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:ItemList of 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 + optional app:label / app:description for UI display.

    Source flexibility: --bundle accepts the same shapes as install itself:

    • --bundle media → fetches solid-apps/bundles/media.jsonld (default-registry convention)
    • --bundle https://example.com/dev.jsonld → fetches any URL
    • --bundle ./my-stack.jsonld → local path

    Sharing 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 JSS
    apt install <pkg> jss install <name>
    /etc/apt/sources.list the <org> part of the Phase 2 spec
    apt install task-server (meta-package) jss install --bundle <name>
    apt list --installed ls /public/apps + .installed.jsonld
    dpkg --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

    • jspod#25, jspod#36 — wrapper-side reference implementation
    • JSS#477 — port default fallback follow-up (Phase 1's --pod default depends on this)
    • JSS#476 — X-Git-Remote header for auto-init (orthogonal but pairs naturally — when shipped, jss install adds the header automatically so git pull works on the pod side)
    • JSS#4 — did:nostr SSO + Schnorr (umbrella for Phase 4 conceptually, though no JSS code change required)
  2. added
    agentic
    on May 19, 2026
  3. added
    plugin
    on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agenticplugin

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions