termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

PWA SSH terminal client for ChromeOS

Open tradewithmeai opened this issue 9 months ago • 3 comments

Summary

I've built a standalone PWA SSH terminal client for ChromeOS as a potential complement to the Termux Android app. The PWA provides a native-feeling SSH terminal experience on Chromebooks without requiring Crostini or the Android VM.

Fork with implementation: https://github.com/tradewithmeai/termux-app/tree/pwa-chromebook-client/pwa

Motivation

Chromebooks are increasingly popular, and while the Termux Android app works via ARCVM, a PWA offers several advantages on ChromeOS:

  • Zero VM overhead — runs directly in Chrome, no ARCVM needed
  • First-class PWA support — ChromeOS treats PWAs as native apps (launcher, shelf, windowed mode)
  • Instant launch — no container startup time
  • Lower resource usage — ideal for the many low-end Chromebooks in education/enterprise
  • Google Play distribution — TWA wrapper included for Play Store (same APK works on Android + ChromeOS)

What's Built

A complete SSH terminal client with:

  • Terminal emulator via xterm.js 5 (same engine as VS Code's terminal)
  • Connection manager — save, edit, delete SSH hosts with password or key auth
  • SSH key management — generate RSA-4096 keys via Web Crypto API, import existing PEM keys, stored in IndexedDB
  • Touch-optimized controls — special key bar with Esc, Tab, Ctrl+C/D/Z/L, arrow keys
  • WebSocket proxy support — connects to SSH servers through a configurable WebSocket proxy (wstunnel, webssh2, etc.)
  • Configurable terminal — font size, color schemes (dark/green/amber)
  • PWA installable — offline app shell, installable from Chrome
  • TWA wrapper — ready for Google Play distribution

Tech Stack

Component Choice
UI React 18 + TypeScript
Terminal xterm.js 5
Build Vite
State Zustand
Styling Tailwind CSS
PWA vite-plugin-pwa (Workbox)
Crypto Web Crypto API
Storage IndexedDB

Production build: 488KB JS (135KB gzipped)

Architecture

Browser PWA (xterm.js terminal)
    ↓ WebSocket
Proxy Server (wstunnel / webssh2)
    ↓ TCP
SSH Server (any standard sshd)

The PWA connects to SSH servers through a WebSocket proxy. This is a standard pattern — the proxy is a single static binary (e.g., wstunnel) that the user runs on a machine with network access to their SSH targets.

Try It

git clone https://github.com/tradewithmeai/termux-app.git
cd termux-app
git checkout pwa-chromebook-client
cd pwa
npm install
npm run dev

Questions for Maintainers

  1. Is there interest in a PWA companion to the Android app?
  2. Would this fit under the Termux project umbrella, or is it better as a separate project?
  3. Are there naming/branding considerations?

Happy to discuss the approach and adjust based on feedback. The goal is to bring Termux's terminal experience to ChromeOS users in the most native way possible.

tradewithmeai avatar Feb 16 '26 01:02 tradewithmeai

While I have no objections for the idea, there are some issues that need to be resolved:

  1. PWA definitely should go as a separate project. It can't be part of termux-app.
  2. PWA needs maintainers that are interested in supporting & developing it.
  3. We don't do publishing on Google Play.

I would like to note that vibe coded content is not acceptable - if we want to vibe-code, we could do it ourselves, right?

Your PWA app icon doesn't seem to be in good condition...

Image

sylirre avatar Feb 16 '26 02:02 sylirre

Hi,

You’re absolutely right, and I apologise for submitting code that wasn’t ready.

For context, this was an early prototype that sits on the path toward a separate project (Solvx), which combines remote desktop and terminal functionality over the RustDesk relay protocol with a working backend. The Termux PWA was submitted prematurely before I identified and resolved the gaps.

I appreciate the direct and honest feedback. Lesson learned — I won’t submit anything again unless it’s fully tested and working end-to-end.

Best regards, Richard

On Mon, Feb 16, 2026 at 2:15 AM sylirre @.***> wrote:

sylirre left a comment (termux/termux-app#4971) https://github.com/termux/termux-app/issues/4971#issuecomment-3906100177

While I have no objections for the idea, there are some issues that need to be resolved:

  1. PWA definitely should go as a separate project. It can't be part of termux-app.
  2. PWA needs maintainers interested in supporting it.
  3. We don't do publishing on Google Play.

I would like to note that vibe coded content is not acceptable - if we want to vibe-code, we could do it ourselves, right?

Your PWA app icon doesn't seem to be in good condition... icon-512.png (view on web) https://github.com/user-attachments/assets/603bc695-e006-4275-9972-3b8a2409f1a6

— Reply to this email directly, view it on GitHub https://github.com/termux/termux-app/issues/4971#issuecomment-3906100177, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQWEAFHLZAXZOQP547PPBND4MER3HAVCNFSM6AAAAACVHKMRJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMBWGEYDAMJXG4 . You are receiving this because you authored the thread.Message ID: @.***>

tradewithmeai avatar Feb 16 '26 03:02 tradewithmeai

Also it is not directly or indirectly related to termux-app so it is going to be closed.

twaik avatar Feb 16 '26 03:02 twaik