News for hackers. Stuff that matters.
Re:Browsh – A fully-modern text-based browser, rendering to ... by gregsadetsky on Tuesday May 24, 2022 @08:22AM (#31491053)
I’m currently trying to port a browser (any browser) to an extremely light device - 16 Mb of RAM, ~200 Mhz. No standard/system library.

I’m curious to see how Browsh fares!

My first try at compiling NetSurf was met with failure (I was stumped by the build process)

Do people here have recommendations for super minimal browsers whose source source is specifically very portable / easy to adapt / easy to configure? Something where ripping out even the network internals (i.e. libcurl) and replacing it is easy-ish?

Thanks!

Re:Browsh – A fully-modern text-based browser, rendering to ... by rsecora on Tuesday May 24, 2022 @09:02AM (#31491462)
It will not run in 16Mb. It's a headless Firefox with an extension to render the DOM to text.

From the docs:

"When the CLI starts, it looks for a compatible browser (currently only Firefox) and starts it in headless mode...."

[1] https://www.brow.sh/docs/introduction/

Re:Browsh – A fully-modern text-based browser, rendering to ... by gregsadetsky on Tuesday May 24, 2022 @09:35AM (#31491882)
For sure, I'm imagining running the headless Firefox on a different machine and porting the light CLI/tty browser to the small device.

That's actually the point of browsh -- you can ssh from anywhere to a (different) machine running the headless Firefox. The machine ssh'ing in doesn't need much except a terminal.

Re:Browsh – A fully-modern text-based browser, rendering to ... by colanderman on Tuesday May 24, 2022 @09:33AM (#31491860)
https://en.wikipedia.org/wiki/Arachne_(web_browser) is a possibility. Old graphical DOS browser (so, minimal library dependencies) which can run even on an 8086. Runs on Linux too, so there's an aspect of portability. Probably well behind modern web standards though, despite its recent update.
Re:Browsh – A fully-modern text-based browser, rendering to ... by tombh on Tuesday May 24, 2022 @08:58AM (#31491414)
Well the whole point of Browsh is that you run it on a remote server and use other clients to access it. You can even access Browsh with plain curl using Browsh's HTTP server mode: https://www.brow.sh/docs/in-browser-usage
Re:Browsh – A fully-modern text-based browser, rendering to ... by gregsadetsky on Tuesday May 24, 2022 @09:36AM (#31491902)
Thanks a lot -- running browsh locally just now was a real eye-opener. I had tried it before but forgot how amazing it is.

The monochrome mode is exactly what I'm looking for, and the documentation is extremely clear. I will definitely spend some time taking a stab at a port. Really really excited about it.

Will probably contact you with updates if I'm able to make some progress :-)

Thank you for this great work!

Re:Browsh – A fully-modern text-based browser, rendering to ... by tombh on Tuesday May 24, 2022 @10:02AM (#31492236)
Wow, that's really motivating to hear, thank so much :)
Re:Browsh – A fully-modern text-based browser, rendering to ... by userbinator on Tuesday May 24, 2022 @09:23AM (#31491747)
Are you fine with text-only, or want graphics? Try Dillo.

16MB of RAM and 200MHz (x86) would be more than sufficient to run Windows 95 and Internet Explorer 3, which is a full GUI browser, so that's probably the level of functionality you'll end up achieving.

Re:Browsh – A fully-modern text-based browser, rendering to ... by gregsadetsky on Tuesday May 24, 2022 @10:22AM (#31492500)
Thanks, it was pretty motivating to see Dillo compile pretty much out of the box! Kudos to Dillo for portability (the source code is from 2015 and I'm testing it on a relatively recent macOS...!)

The legwork to port it (its underlying FLTK toolkit, the socket-communicating daemons, openssl, etc.) looks a bit daunting however. I might consider it if nothing else works.

Thank you

Re:Browsh – A fully-modern text-based browser, rendering to ... by anthk on Tuesday May 24, 2022 @12:31PM (#31494220)
Better if you get the mercurial version:

hg clone https://hg.dillo.org

Also there's fork on github with mpv+youtube-dl support.

Re:Browsh – A fully-modern text-based browser, rendering to ... by chakkepolja on Tuesday May 24, 2022 @11:43AM (#31493565)
Dillo is one thing I remember using.

There was a DOS one (arachne?) I couldn't try, And Links2 also has GUI but it's quite archaic.

I think you'd have better luck trying to compile NetSurf.