Title: Add built-in WebSocket terminal endpoint (--terminal) · Issue #234 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Add built-in WebSocket terminal endpoint (--terminal) · Issue #234 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Add built-in WebSocket terminal endpoint (--terminal) · Issue #234 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Add a --terminal flag that exposes a WebSocket endpoint at /.terminal for interactive shell access. Combined with an xterm.js pane, this gives pod owners a full terminal in the browser. Implementation ~30 lines in the WebSocket h...
Open Graph Description: Summary Add a --terminal flag that exposes a WebSocket endpoint at /.terminal for interactive shell access. Combined with an xterm.js pane, this gives pod owners a full terminal in the browser. Imp...
X Description: Summary Add a --terminal flag that exposes a WebSocket endpoint at /.terminal for interactive shell access. Combined with an xterm.js pane, this gives pod owners a full terminal in the browser. Imp...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/234
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add built-in WebSocket terminal endpoint (--terminal)","articleBody":"## Summary\n\nAdd a `--terminal` flag that exposes a WebSocket endpoint at `/.terminal` for interactive shell access. Combined with an xterm.js pane, this gives pod owners a full terminal in the browser.\n\n## Implementation\n\n~30 lines in the WebSocket handler:\n\n```javascript\nimport { spawn } from 'child_process'\n\n// On WebSocket connect to /.terminal\nconst shell = spawn('/bin/sh', { env: process.env })\nws.on('message', data => shell.stdin.write(data))\nshell.stdout.on('data', data => ws.send(data))\nshell.stderr.on('data', data => ws.send(data))\nshell.on('exit', () => ws.close())\n```\n\n## Security\n\n- Owner-only: requires authentication (DPoP/Solid OIDC)\n- Disabled by default, opt-in via `--terminal`\n- Only accessible to the pod owner (ACL check)\n\n## Use case\n\nDevelopers using losos as a phone OS / pod browser need shell access. Rather than installing ttyd as a separate process, JSS provides it natively. The terminal pane in nosdav/browser connects xterm.js to this endpoint.\n\n## No extra dependencies\n\n- xterm.js loads from CDN in the browser pane\n- Shell spawning uses Node.js built-in `child_process`\n- WebSocket infrastructure already exists (`--notifications`)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-03-24T04:36:08Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/234"}
| 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:80690627-b9db-2a71-8fdd-f3c70b234ec0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B742:1316A2:36DBBB:48D150:6B037D49 |
| html-safe-nonce | 3aacda401cb4abef50dc3c0a0b32635edff1b24eb3c8780a7d97d476d7cb5744 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzQyOjEzMTZBMjozNkRCQkI6NDhEMTUwOjZCMDM3RDQ5IiwidmlzaXRvcl9pZCI6IjM1NzQ5MjY4NTgyMzM1NDQwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4da8ffe9e16306ed25b9dac308a25641bc00618465ced0576d7a7ddecc6bf218 |
| hovercard-subject-tag | issue:4125198616 |
| 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/234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0845eacc00d59b1168b512a880e7261f7d58a001c1acae6fc256ad3886e523b5/JavaScriptSolidServer/JavaScriptSolidServer/issues/234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0845eacc00d59b1168b512a880e7261f7d58a001c1acae6fc256ad3886e523b5/JavaScriptSolidServer/JavaScriptSolidServer/issues/234 |
| og:image:alt | Summary Add a --terminal flag that exposes a WebSocket endpoint at /.terminal for interactive shell access. Combined with an xterm.js pane, this gives pod owners a full terminal in the browser. Imp... |
| 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