Idea · Sep 24, 2026
Build Your Own Node-Based Terminal Workspace
A multi-week systems-plus-web assignment where students build a PTY daemon and a canvas UI that arranges live shell sessions as connected nodes, with persistence and reattach like tmux.
What it would do
Students build a small cousin of the open-source node-based terminal managers trending on Product Hunt and HN. Milestone 1 is a Node daemon that spawns pseudo-terminals with node-pty, multiplexes them over one WebSocket, and keeps scrollback in a ring buffer so a browser can disconnect and reattach. Milestone 2 is a React Flow canvas where each node is an xterm.js session, edges pipe one session's output into another's input, and layouts persist across restarts. Milestone 3 adds a session protocol spec, authentication for the local socket, and resource limits. An optional stretch milestone adds an 'agent node' that can read a session's scrollback and propose (but never auto-run) commands, forcing students to design a permission boundary.
Key features
- PTY daemon with multiplexed WebSocket protocol, scrollback ring buffer, and detach/reattach
- Canvas UI with sessions as draggable nodes and output-to-input pipe edges
- Written protocol spec plus conformance tests the instructor can run against every submission
- Local-socket authentication and per-session CPU and memory limits
- Stretch: agent node with a propose-then-confirm command boundary and audit log