New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

webssh

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webssh

Web-based SSH terminal server and client with xterm.js integration

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
7
40%
Maintainers
1
Weekly downloads
 
Created
Source

webssh

Web-based SSH terminal server and client with xterm.js integration. Access remote shells through your browser or CLI.

Features

  • 🌐 Browser-based terminal – Full xterm.js integration with syntax highlighting and themes
  • 🔌 WebSocket transport – Real-time bidirectional communication
  • 🖥️ CLI client – Connect from command line with interactive prompt
  • 📏 Auto-resize – Terminal dimensions sync between client and server
  • 🔒 Session management – Unique session IDs with automatic cleanup
  • Lightweight – Minimal dependencies, fast startup
  • 🚀 Modern ES modules – Native ESM with async/await support

Installation

npm install webssh


#server mode

import webssh from 'webssh';

// Using async IIFE for top-level await
const { serve } = webssh;

const server = serve({
  port: 3000,
  host: 'localhost'
});

server.start(() => {
  console.log('🚀 WebSSH server running at http://localhost:3000');
});


#client mode

import webssh from 'webssh';

const { connect } = webssh;

// Connect with defaults (localhost:3000)
await connect();

// Or specify custom host/port
await connect('remote.server.com', 8080);

Keywords

ssh

FAQs

Package last updated on 28 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts