Back to rankings

browsh-org/browsh

JavaScriptbrow.sh

A fully-modern text-based browser, rendering to TTY and browsers

ttysshmoshbandwidth-saverhttp-performancevnc
Star Growth
Stars
18.9k
Forks
478
Weekly Growth
Issues
228
5k10k15k
May 2016Sep 2019Feb 2023Jul 2026
Artifactsnpmnpm install browsh
README

Follow @brow_sh

Browsh Logo

A fully interactive, real-time, and modern text-based browser rendered to TTYs and browsers

Browsh GIF

Why use Browsh?

Not all the world has good Internet.

If you only have a 3kbps internet connection tethered from a phone, then it's good to SSH into a server and browse the web through, say, elinks. That way the server downloads the web pages and uses the limited bandwidth of an SSH connection to display the result. However, traditional text-based browsers lack JS and all other modern HTML5 support. Browsh is different in that it's backed by a real browser, namely headless Firefox, to create a purely text-based version of web pages and web apps. These can be easily rendered in a terminal or indeed, ironically, in another browser. Do note that currently the browser client doesn't have feature parity with the terminal client.

Why not VNC? Well VNC is certainly one solution but it doesn't quite have the same ability to deal with extremely bad Internet. Terminal Browsh can also use MoSH to further reduce bandwidth and increase stability of the connection. Mosh offers features like automatic reconnection of dropped or roamed connections and diff-only screen updates. Furthermore, other than SSH or MoSH, terminal Browsh doesn't require a client like VNC.

One final reason to use terminal Browsh could be to offload the battery-drain of a modern browser from your laptop or low-powered device like a Raspberry Pi. If you're a CLI-native, then you could potentially get a few more hours of life if your CPU-hungry browser is running somewhere else on mains electricity.

Installation

Download a binary from the releases (~11MB). You will need to have Firefox already installed.

Or download and run the Docker image (~230MB) with: docker run --rm -it browsh/browsh

Usage

Most keys and mouse gestures should work as you'd expect on a desktop browser.

For full documentation click here.

Development

The Firefox Web Extension

This is needed to run essential JS inside web pages so that they render in a way that Browsh can consume.

You will need to install nodejs, usually available from your OS package manager. Though for development purposes the recommended method is with https://mise.jdx.dev.

Then in the webext directory

  • npm install
  • npx webpack --watch

The browsh Golang code

You will need to install go, usually available from your OS package manager. Though for development purposes the recommended method is with https://mise.jdx.dev.

Then in the interfacer directory

  • go run ./cmd/browsh --debug

Logs will be available in interfacer/debug.log

Tests

For the webextension: in webext/ folder, npm test
For CLI unit tests: in /interfacer run go test src/browsh/*.go
For CLI E2E tests: in /interfacer run go test test/tty/*.go
For HTTP Service tests: in /interfacer run go test test/http-server/*.go

Special Thanks

Donating

Please consider donating: https://www.brow.sh/donate

License

GNU Lesser General Public License v2.1

Related repositories
gpakosz/.tmux

Oh my tmux! My self-contained, pretty & versatile tmux configuration made with 💛🩷💙🖤❤️🤍

ShellMIT Licensetmuxtmux-conf
25.2k3.6k
xtermjs/xterm.js

A terminal for the web

TypeScriptnpmMIT Licensextermterminal
xtermjs.org
20.9k1.9k
yudai/gotty

Share your terminal as a web application

GoGo ModulesMIT Licensettyterminal
19.5k1.4k
railsware/upterm

A terminal emulator for the 21st century.

TypeScriptnpmMIT Licensettyterminal
19.1k607
faressoft/terminalizer

🦄 Record your terminal and generate animated gif images or share a web player

JavaScriptnpmMIT Licenseterminalrecord
terminalizer.com
16.1k523
cyrus-and/gdb-dashboard

Modular visual interface for GDB in Python

PythonPyPIMIT Licensesubcommandsgdb-command
12.2k822
tsl0922/ttyd

Share your terminal over the web

CMIT Licensettyterminal
tsl0922.github.io/ttyd
12.1k1.2k
enquirer/enquirer

Stylish, intuitive and user-friendly prompts. Used by eslint, webpack, yarn, pm2, pnpm, RedwoodJS, FactorJS, salesforce, Cypress, Google Lighthouse, Generate, tencent cloudbase, lint-staged, gluegun, hygen, hardhat, AWS Amplify, GitHub Actions Toolkit, @airbnb/nimbus, and more! Please follow Enquirer's author: https://github.com/jonschlinkert

JavaScriptnpmMIT Licensepromptinquirer
github.com/jonschlinkert
7.9k298
ekzhang/sshx

Fast, collaborative live terminal sharing over the web

Rustcrates.ioMIT Licenseterminalcollaborative
sshx.io
7.5k295
zhaojh329/rtty

🐛 Access your device from anywhere via the web.

CMIT Licensewebshellwebssh
zhaojh329.github.io/rtty/
4k548
tio/tio

A serial device I/O tool

COtherttyterminal
tio.github.io
3.1k205
cdleon/awesome-terminals

Terminal Emulators

terminal-emulatorsterminal
2.8k148