Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
import { useEffect } from 'react'
import { createPortal } from 'react-dom'
import { ScenePhone } from './onboarding/scenes'
import { mobileStoreLinks, mobileStoreNames } from '@renderer/lib/links'
// The seen-flag helpers live in lib/mobileLaunch: Canvas reads them on every launch, and importing
// them from here would defeat this component's (and the onboarding scenes') code splitting.
export { markMobileLaunchSeen, shouldShowMobileLaunch } from '@renderer/lib/mobileLaunch'
/**
* One-time launch announcement for nodeterm mobile (store release): a centered card over
* the canvas in the promo style — dark, purple glow, the floating phone mockup from the setup
* tour. Closes for good via the button, Esc, or the backdrop; every path persists the flag.
*/
export function MobileLaunchCard({ onClose }: { onClose: () => void }): React.JSX.Element {
useEffect(() => {
const onKey = (e: KeyboardEvent): void => {
if (e.key === 'Escape') onClose()
}
window.addEventListener('keydown', onKey)
return () => window.removeEventListener('keydown', onKey)
}, [onClose])
return createPortal(
<div className="mlaunch__backdrop" onClick={onClose}>
<div
className="mlaunch"
role="dialog"
aria-label={`nodeterm mobile is on ${mobileStoreNames()}`}
onClick={(e) => e.stopPropagation()}
>
<h2 className="mlaunch__title">
Your terminal, <span>everywhere</span>
</h2>
<p className="mlaunch__sub">nodeterm mobile is now on {mobileStoreNames()} 🎉</p>
<div className="mlaunch__scene">
<ScenePhone />
</div>
<p className="mlaunch__body">
Attach to these same live sessions from your phone — watch an agent work, answer a
“needs you”, type into any terminal from anywhere. nodeterm stays free and
open source, developed in the open with the community; the app and its Pro features are
what fund that work. Your support means everything. ❤️
</p>
<div className="mlaunch__actions">
{mobileStoreLinks().map((store, i) => (
<button
key={store.id}
className="onb-btn onb-btn--primary"
autoFocus={i === 0}
onClick={() => window.nodeTerminal.shell.openExternal(store.url)}
>
{store.label}
</button>
))}
<button className="onb-btn" onClick={onClose}>
Close
</button>
</div>
</div>
</div>,
document.body
)
}