Files
anomalyco__opentui/packages/ssh/examples/solid.tsx
T
Matt Simpson 9ef4691410 feat(ssh): add @opentui/ssh package (#1151)
## Summary

Adds `@opentui/ssh`, renderer-agnostic ssh server package for serving
apps to remote terminals.

Highlights:
- `createServer(config).use(...).serve(handler)` builder api with typed
middleware context
- open, public key, password, and keyboard-interactive auth, including
verified public-key possession and `authorized_keys` allowlists
- host key loading/generation, startup banner, logging middleware,
session resize/close hooks, raw writes, idle/max timeouts, and graceful
shutdown

---------

Co-authored-by: opencode-agent <opencode-agent@opencode.ai>
Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
2026-06-11 00:41:50 +02:00

15 lines
441 B
TypeScript

/**
* Example: serve a SolidJS (@opentui/solid) app over SSH.
*
* bun run packages/ssh/examples/solid.tsx
*
* ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
* guest@localhost
*
* Solid JSX needs a Bun transform plugin. Register it before dynamically
* loading the JSX implementation so this example works without CLI preloads.
*/
import "@opentui/solid/preload"
await import("./solid-app.js")