gowser

command module
v0.0.0-...-332843c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 22 Imported by: 0

README

gowser

A terminal-based web browser written in Go. Renders web pages as readable markdown with optional interactive navigation, JavaScript rendering, and vim-style keybindings.

Features

  • Renders HTML as clean, readable markdown
  • Interactive TUI mode with navigable links
  • JavaScript rendering via headless Chrome (for JS-heavy sites)
  • Lite mode for text-friendly site alternatives
  • Vim-style navigation
  • In-page search with highlighting
  • Save pages as markdown files
  • DuckDuckGo search integration
  • Readability mode (extracts main content) with raw mode toggle

Requirements

  • Go 1.21+
  • gox - Go extension for JSX-like syntax
  • Chrome/Chromium (optional, for -j JavaScript mode)

Installation

# Install gox transpiler
go install github.com/germtb/gox@latest

# Clone the repository
git clone https://github.com/germtb/gowser.git
cd gowser

# Build
gox build .

Usage

gowser [options] <url or search query>
Options
Flag Description
-i Interactive mode with navigable links (TUI)
-s Search with DuckDuckGo
-l, -lite Lite mode: use text-friendly site versions
-j, -js JS mode: render JavaScript via headless browser

Flags can be combined: -il, -sil, -ij, -sij

Examples
# Simple fetch and display as markdown
gowser example.com

# Interactive browsing with TUI
gowser -i example.com

# Use lite/text-friendly versions
gowser -l reddit.com          # Uses old.reddit.com

# Render JavaScript-heavy sites
gowser -j instagram.com

# Interactive + JS rendering
gowser -ij react-app.com

# DuckDuckGo search
gowser -s cli web browser

# Search in interactive mode
gowser -si golang tutorial
Lite Mode Mappings
Original Lite Version
reddit.com old.reddit.com
twitter.com / x.com nitter.net
cnn.com lite.cnn.com
npr.org text.npr.org
wikipedia.org mobile version

Keybindings (Interactive Mode)

Key Action
q Quit
r Reload page
y Copy current URL to clipboard
t Toggle readability/raw mode
/ Open search overlay
n / N Next/previous search result
Enter Follow selected link / submit
s Save page as markdown
b / f Back / forward in history
g / G Go to top / bottom
j / k Scroll down / up
Tab / Shift+Tab Next / previous link
Esc Close overlay / clear search

Architecture

gowser/
├── main.gox     # Main TUI application (gox/JSX syntax)
├── fetch.go     # HTTP fetching + headless browser (rod)
├── convert.go   # HTML to markdown conversion
└── parser.go    # Markdown parsing for TUI rendering
Dependencies

License

MIT License - see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL