Title: Embeddable in-process start (no spawn) so jspod can wrap JSS on mobile/single-process runtimes · Issue #58 · JavaScriptSolidServer/jspod · GitHub
Open Graph Title: Embeddable in-process start (no spawn) so jspod can wrap JSS on mobile/single-process runtimes · Issue #58 · JavaScriptSolidServer/jspod
X Title: Embeddable in-process start (no spawn) so jspod can wrap JSS on mobile/single-process runtimes · Issue #58 · JavaScriptSolidServer/jspod
Description: Problem jspod is the friendly wrapper on JSS — defaults, banner, seedPodFiles() (welcome/signin/account/docs pages), and bundle install. But start() boots JSS by spawning the jss binary: // lib/start.js:263 const jss = spawn('jss', jssAr...
Open Graph Description: Problem jspod is the friendly wrapper on JSS — defaults, banner, seedPodFiles() (welcome/signin/account/docs pages), and bundle install. But start() boots JSS by spawning the jss binary: // lib/sta...
X Description: Problem jspod is the friendly wrapper on JSS — defaults, banner, seedPodFiles() (welcome/signin/account/docs pages), and bundle install. But start() boots JSS by spawning the jss binary: // lib/sta...
Opengraph URL: https://github.com/JavaScriptSolidServer/jspod/issues/58
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Embeddable in-process start (no spawn) so jspod can wrap JSS on mobile/single-process runtimes","articleBody":"## Problem\n\n`jspod` is the friendly wrapper on JSS — defaults, banner, `seedPodFiles()` (welcome/signin/account/docs pages), and bundle install. But `start()` boots JSS by **spawning the `jss` binary**:\n\n```js\n// lib/start.js:263\nconst jss = spawn('jss', jssArgs, { ... });\n```\n\nand bootstrap shells out to the CLI too:\n\n```js\n// lib/start.js:300\nconst installChild = spawn(process.execPath, [CLI_SCRIPT, 'install', '--pod', podUrl, '--bundle', 'default'], ...);\n```\n\nSingle-process runtimes can't fork a CLI binary — most importantly **nodejs-mobile** (the embedded Node in the Android app, js-pod/android). So that app had to **bypass jspod entirely** and call `javascript-solid-server`'s `createServer()` directly. The cost: it loses all of jspod's onboarding/bundling and drifts off jspod's JSS version (the app is pinned to JSS 0.0.196 while jspod is on 0.0.201).\n\n## Ask\n\nAdd an **in-process mode** so jspod can run JSS without spawning, letting mobile/Electron/tests use the same wrapper:\n\n1. **In-process `start`** — when `spawn` isn't viable (opt-in flag, or auto-detect), map the existing `jssArgs` to `createServer(options).listen({ port, host })` from `javascript-solid-server` instead of `spawn('jss')`. The option set is already computed; this is \"call the library instead of the binary.\"\n2. **Callable `install`** — extract the bundle-install logic out of the CLI path (`spawn(process.execPath, [CLI_SCRIPT, 'install', …])`) into an exported function jspod can invoke in-process.\n3. `seedPodFiles()` is already a function and the package ships the html + `apps/`, so onboarding + an offline-first default bundle seed without network.\n\n## Payoff\n\n- The Android app (and any embedder) drops its raw-`createServer` path + hand-rolled bundle fetch and just calls jspod → inherits onboarding, bundling, and jspod's JSS pin (fixes the version drift).\n- jspod stays the single wrapper for every surface: desktop, Termux, mobile, Electron, tests.\n\n## Notes\n\n- The nodejs-mobile runtime still needs its compat shims (Intl / global crypto / URL.parse / Array#toReversed / crypto.hash / `\\p{}` regex) regardless — those live in the embedder, since they're about the embedded Node build, not jspod. See JavaScriptSolidServer/JavaScriptSolidServer#522 (this is the \"jspod-actionable\" item there) and js-pod/android#1.\n- Keep `spawn` as the default for the CLI; in-process is the additive path for libraries.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-24T07:52:31Z","url":"https://github.com/JavaScriptSolidServer/jspod/issues/58"}
| 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:266babd1-b0d1-6bf1-9bfd-021d37c411d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B77A:2526B:166644F:1C56B84:6B03A2F5 |
| html-safe-nonce | 385442f3d185f24f00ec010c9aa242543dd28c11cec05b9edf22db5bf781e598 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzdBOjI1MjZCOjE2NjY0NEY6MUM1NkI4NDo2QjAzQTJGNSIsInZpc2l0b3JfaWQiOiI3NjE3OTIxMDI0NDExMjgwMTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 783475d3db3b171b18e69ad93eedf6abb1bd5bedff1d81b66fea0604e7f83c77 |
| hovercard-subject-tag | issue:4510888284 |
| 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/jspod/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee3f4a2156412b73a497cfa4f13aa29d5d0b0261f6b24404a3afbe5002990092/JavaScriptSolidServer/jspod/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee3f4a2156412b73a497cfa4f13aa29d5d0b0261f6b24404a3afbe5002990092/JavaScriptSolidServer/jspod/issues/58 |
| og:image:alt | Problem jspod is the friendly wrapper on JSS — defaults, banner, seedPodFiles() (welcome/signin/account/docs pages), and bundle install. But start() boots JSS by spawning the jss binary: // lib/sta... |
| 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/jspod git https://github.com/JavaScriptSolidServer/jspod.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1135610078 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/jspod |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1135610078 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/jspod |
| 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