Title: Onboarding overhaul: phased plan to make JSS first-run great out of the box · Issue #462 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Onboarding overhaul: phased plan to make JSS first-run great out of the box · Issue #462 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Onboarding overhaul: phased plan to make JSS first-run great out of the box · Issue #462 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Context Over the past few weeks of building jspod (a thin opinionated wrapper around JSS for first-time users), the same gaps in JSS's first-run experience kept coming up. jspod ended up re-implementing a lot of onboarding surface that w...
Open Graph Description: Context Over the past few weeks of building jspod (a thin opinionated wrapper around JSS for first-time users), the same gaps in JSS's first-run experience kept coming up. jspod ended up re-impleme...
X Description: Context Over the past few weeks of building jspod (a thin opinionated wrapper around JSS for first-time users), the same gaps in JSS's first-run experience kept coming up. jspod ended up re-imp...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/462
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Onboarding overhaul: phased plan to make JSS first-run great out of the box","articleBody":"## Context\n\nOver the past few weeks of building [jspod](https://github.com/JavaScriptSolidServer/jspod) (a thin opinionated wrapper around JSS for first-time users), the same gaps in JSS's first-run experience kept coming up. jspod ended up *re-implementing* a lot of onboarding surface that would benefit every JSS deployment if it lived upstream. This issue collects those gaps into a phased plan.\n\nGoal: a fresh \\`jss start\\` on a clean machine should produce the same \"60 seconds to working pod with visible identity, manageable session, and clear next steps\" experience that jspod ships today — without needing a wrapper.\n\n## Phases\n\nEach phase is independently shippable. Numbered roughly by leverage / dependency order.\n\n### Phase 1 — Stop returning blank pages\n\n**Problem.** Two surfaces return empty / unhelpful HTML today:\n- 401 on auth-required resources → empty body → blank browser page (issue #461)\n- The IDP root \\`/idp\\` (without OAuth params) tells the user to \"go find a Solid app like Pilot\" rather than offering a sign-in surface\n\n**Proposed.** Both surfaces return real HTML with actionable CTAs. The 401 page links to a sign-in flow; the bare \\`/idp\\` page renders the login form (matching what CSS, NSS, ESS all do).\n\n**Why first.** Everything else assumes the user can sign in without being bounced through an external app. Without this, the rest of the onboarding loop has dead ends.\n\n### Phase 2 — Customizable root landing page\n\n**Problem.** JSS seeds \\`pod-data/index.html\\` with a useful HEAD-adaptive template, but there's no clean way for a downstream wrapper to ship its own version. jspod currently *overwrites* the file every start as a stopgap (issue #459).\n\n**Proposed.** Either skip-if-exists (cheapest) or a CLI/config hook like \\`--landing-page \u003cfile>\\` or \\`--no-default-landing\\`. Lets wrappers (jspod and future siblings) own the front door without fighting JSS's init.\n\n### Phase 3 — Built-in sign-in app\n\n**Problem.** Today \\`/idp\\` requires OAuth params (i.e. a Solid app initiating the flow). Without those it renders an unhelpful page. A user wanting to authenticate \"into their own pod\" without picking an external app first has no path.\n\n**Proposed.** A small server-rendered or bundled sign-in page at e.g. \\`/signin\\` that:\n1. Initiates OIDC against this pod's own IdP via dynamic client registration + PKCE + DPoP\n2. After auth, hands the user to a configurable post-sign-in URL (default \\`/account\\` if exists, otherwise \\`/\\`)\n3. Looks like a sign-in page, not a \"find another app\" splash\n\n**Reference.** [solid-oidc](https://github.com/JavaScriptSolidServer/solid-oidc) is already the right primitive — jspod ships a ~150-line static page that uses it. Could be bundled, or rendered server-side using the same templates JSS already has for the OAuth-initiated login form.\n\n### Phase 4 — Built-in account dashboard\n\n**Problem.** JSS exposes account-management endpoints (\\`PUT /idp/credentials\\` for password rotation, \\`GET /idp/account/export\\` for backup, \\`POST /idp/account/delete\\` for multi-user removal, passkey register options/verify) but has no UI to call them. CSS has [Pivot](https://podpro.dev). JSS has nothing equivalent.\n\n**Proposed.** A dashboard at e.g. \\`/account\\`:\n- WebID, pod URL, sign-out button\n- Change password (calls \\`PUT /idp/credentials\\`)\n- Add a passkey (calls \\`/idp/passkey/register/*\\`) — climbs the auth ladder ([jspod#6](https://github.com/JavaScriptSolidServer/jspod/issues/6))\n- Export pod (links to \\`/idp/account/export\\`)\n- (Optionally) badges showing the user's current auth rung\n- (Optionally) credential tokens list, registered WebIDs, etc. — matching CSS Pivot's scope\n\n**Reference.** [jspod's account.html](https://github.com/JavaScriptSolidServer/jspod/blob/gh-pages/account.html) is a working starting point (~4KB, plain JS, no framework).\n\n### Phase 5 — Safer defaults\n\n**Problem.** A few stock-JSS defaults work against new users:\n- Binds to \\`0.0.0.0\\` by default — a default password (when seeded) is reachable from the LAN with no warning\n- \\`TOKEN_SECRET\\` has a documented \"set this in production\" requirement, but no auto-generation when unset → either operators set it (and forget to rotate) or JSS runs without secure JWT signing\n- Hard-errors on \\`EADDRINUSE\\` instead of trying \\`port+1\\` like Vite / Next.js dev servers\n\n**Proposed.**\n- Default \\`--host 127.0.0.1\\`. Loud warning if user passes \\`--host 0.0.0.0\\` *and* a default password is seeded.\n- Auto-generate \\`TOKEN_SECRET\\` on first start, persist at \\`\u003croot>/.token-secret\\` (mode 0600), reuse on subsequent starts. Env var still wins for operator-managed deployments.\n- Port-hop up to N times if requested port is busy. Honor a \\`--strict-port\\` flag for production.\n\n**Reference.** jspod implements all three; the code patterns are small and portable.\n\n### Phase 6 — Banner + discoverability\n\n**Problem.** \\`jss start\\`'s console output is minimal — URL + a few feature lines. New users have to dig for \"how do I sign in\" or \"what's my password.\" Compare to Vite / Next.js dev banners which surface the essentials with one glance.\n\n**Proposed.**\n- Highlight the sign-in URL prominently\n- If seeded default credentials exist, print them once (and a hint to change)\n- Clear \"open this URL in your browser\" line\n- \"Powered by JSS vX.Y.Z\" / docs link\n- README quickstart that matches the banner\n\n### Phase 7 — Tiny default data browser\n\n**Problem.** The full mashlib bundle is hundreds of KB. For \"show me what's in my pod\" first-touch, this is overkill. JSS could ship a tiny default browser as the baseline (with \\`--mashlib-cdn\\` still available as opt-in for power users).\n\n**Proposed.** Bundle a ~200-byte ES module (or render inline) that renders the JSON-LD data island JSS already embeds, with clickable URIs. Mashlib stays available for the full editing experience.\n\n**Reference.** jspod's [data-browser.js](https://github.com/JavaScriptSolidServer/jspod/blob/gh-pages/data-browser.js) — single file, no deps, AGPL. Could move upstream verbatim or inline into JSS's HTML wrapper.\n\n## Cross-references\n\n- [jspod#1](https://github.com/JavaScriptSolidServer/jspod/issues/1) — original friction-removal umbrella; this issue is the upstream half\n- [jspod#3](https://github.com/JavaScriptSolidServer/jspod/issues/3) — single-user positioning (informs which surfaces JSS needs)\n- [jspod#6](https://github.com/JavaScriptSolidServer/jspod/issues/6) — auth ladder framing (informs Phase 4's climb features)\n- [JSS#459](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/459) — Phase 2 prerequisite\n- [JSS#461](https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/461) — Phase 1 prerequisite\n\n## Definition of done (overall)\n\nA user running \\`jss start\\` on a clean machine — without installing jspod or any wrapper — gets the same end-to-end experience jspod currently provides:\n\n1. Auto-discoverable URL with prominent credentials hint\n2. Working sign-in form on the IdP root\n3. Account dashboard reachable after sign-in\n4. Visible auth-rung progression (default password → custom password → passkey)\n5. Browseable pod resources (private resources don't blank-page)\n6. Safe defaults (loopback-only, auto-generated JWT secret, port-hopping)\n\nWhen that's true, downstream wrappers like jspod become *positioning layers* (branding, opinionated copy, packaging for \\`npx\\`) rather than *re-implementations of missing surfaces*. That's the right division of labor.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-16T07:39:20Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/462"}
| 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:33225a7e-d980-e142-3388-889cd834aee0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A014:30D472:11A6121:167C216:6B0393A4 |
| html-safe-nonce | ea19a3884d79d4ba81ad82a9e1b0a5c3f3eaa1a1a3c494bde9eeb322d3277a6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDE0OjMwRDQ3MjoxMUE2MTIxOjE2N0MyMTY6NkIwMzkzQTQiLCJ2aXNpdG9yX2lkIjoiNDg1MDAyMDQ5NzU1NTE3ODYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 20e3bc396943de79b6773c9037d2b72a4517f1acc0705a5951782b5e9bcc9229 |
| hovercard-subject-tag | issue:4459141295 |
| 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/462/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ed1b85b4d0e406cc58a66825adbb2b38ed03d4bad7dbbc4b9e3470247b380b6/JavaScriptSolidServer/JavaScriptSolidServer/issues/462 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ed1b85b4d0e406cc58a66825adbb2b38ed03d4bad7dbbc4b9e3470247b380b6/JavaScriptSolidServer/JavaScriptSolidServer/issues/462 |
| og:image:alt | Context Over the past few weeks of building jspod (a thin opinionated wrapper around JSS for first-time users), the same gaps in JSS's first-run experience kept coming up. jspod ended up re-impleme... |
| 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