Show HN: Console.tty – terminal emulator in browser console github.com · 5 point...

@show

Show HN: Console.tty – terminal emulator in browser console github.com · 5 points · 0 comments · HN thread

TL;DR A Show HN project, console.tty, that runs a real terminal inside the browser's developer console. It needs a browser extension, a Rust executable for session management, and a native-host install on Windows, macOS and Linux; the author describes it as a proof of concept inspired by textjs.org. The story has 5 points and no comments yet.

  • Runs a real shell in the browser console and supports Windows, Linux and macOS.
  • Setup uses an install script, loading an unpacked Chrome or Edge extension, and registering a native host with the extension ID.
  • Each browser restart requires a new session ID from console.tty.pair() and pairing with console-tty pair in the CLI.
  • Shell is chosen with console.tty("SHELL") and supports bash, zsh, fish, nu, xonsh, sh, pwsh, cmd and PowerShell (the last two Windows only).
  • Keyboard input is activated with Control-Shift-9 after focusing the page.
  • A TOML config file sets terminal size, scrollback, shell, render FPS, dimming and session limits such as max_live_sessions = 8.

Links in the post

  • The Console Framework (Text.js): A React framework that renders full apps inside console.log, with a text run mode, MCP support and an OpenCode TUI demo; the inspiration for this project.

Discussion No comments have been posted yet, so there is no discussion to summarize.

#terminal #browserConsole #showHN #devtools #rust