# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 28
# self = https://watcher.sour.is/conv/qgqxkpq
Here we go... Try this out for shits and giggles ๐Ÿ˜…

prologic/toy-webbrowser: toy-webbrowser is a simple toy web browser written in in Go using a cross-platform C/C webview library for rendering. - toy-webbrowser - Mills

e
$ git clone https://git.mills.io/prologic/toy-webbrowser.git
$ cd toy-webbrowser
$ go build .
$ ./toy-webbrowser https://twtxt.net


Here we go... Try this out for shits and giggles ๐Ÿ˜…

prologic/toy-webbrowser: toy-webbrowser is a simple toy web browser written in in Go using a cross-platform C/C webview library for rendering. - toy-webbrowser - Mills

e
$ git clone https://git.mills.io/prologic/toy-webbrowser.git
$ cd toy-webbrowser
$ go build .
$ ./toy-webbrowser https://twtxt.net


Only comes in at a nice ~3MB binary too ๐Ÿ˜…

e
$ ls -lah toy-webbrowser
-rwxr-xr-x 1 prologic staff 2.9M Oct 18 00:12 toy-webbrowser
~
Only comes in at a nice ~3MB binary too ๐Ÿ˜…

e
$ ls -lah toy-webbrowser
-rwxr-xr-x 1 prologic staff 2.9M Oct 18 00:12 toy-webbrowser
~
@prologic
h
โ•ญโ”€ /tmp/toy-webbrowser ๎‚ฐ master ๎‚ฐยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท๎‚ฒ โœ˜ 2 ๎‚ฒ ๎˜ง 1.18.1 โ”€โ•ฎ
โ•ฐโ”€ make                                                                                                                                                                                                  โ”€โ•ฏ
Checking Go version ...                 [ OK ]
Checking $PATH ...                      [ OK ]
Checking deps ...                       [ ERR ]
minify not found, Try running: make deps
FATAL: ๐Ÿ™ preflight failed
make: *** [Makefile:14: preflight] Error 1
โ•ญโ”€ /tmp/toy-webbrowser ๎‚ฐ master ๎‚ฐยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท๎‚ฒ โœ˜ 2 ๎‚ฒ ๎˜ง 1.18.1 โ”€โ•ฎ
โ•ฐโ”€ make deps                                                                                                                 

h
make: Nothing to be done for 'deps'.
โ•ญโ”€ /tmp/toy-webbrowser ๎‚ฐ master ๎‚ฐยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท๎‚ฒ โœ” ๎‚ฒ ๎˜ง 1.18.1 โ”€โ•ฎ
โ•ฐโ”€   
@abucci Wait wait wait ... Lemme fix that crap one sec ๐Ÿ˜…
@abucci Wait wait wait ... Lemme fix that crap one sec ๐Ÿ˜…
There see if that gets it going for you?
There see if that gets it going for you?
Success!

On Ubuntu 22.04, I had to install minify and libwebkit2gtk-4.0-dev with apt, and download and install goi18n-2.2.0-linux-amd64 from github.

My own web site looks great in this.
@prologic I got it compiling before your commit so it's hard for me to test whether this helps, but thanks!
@abucci Nice! ๐Ÿฅณ Now this is as basic as it gets. Should I continue/progress this a bit further? ๐Ÿค”
@abucci Nice! ๐Ÿฅณ Now this is as basic as it gets. Should I continue/progress this a bit further? ๐Ÿค”
@prologic idk, I always like to have a goal before committing to a big project! What would be the purpose?
@abucci Well... What I'm thinking right now is this... It really wouldn't take much effort to do what I did with my gopherclient and incorporate similar features into this toy-webbrowser -- I _would_ have to embed the content of the web address we're hitting inside an <ifarme>, but aside from that I don't see why we couldn't make a simple proof-of-concept that just lets you browse web pages using a webview (standard on pretty much every OS) with a few buttons and a way to visit any URL.
@abucci Well... What I'm thinking right now is this... It really wouldn't take much effort to do what I did with my gopherclient and incorporate similar features into this toy-webbrowser -- I _would_ have to embed the content of the web address we're hitting inside an <ifarme>, but aside from that I don't see why we couldn't make a simple proof-of-concept that just lets you browse web pages using a webview (standard on pretty much every OS) with a few buttons and a way to visit any URL.
@prologic don't see why not @abucci

(Written from said browser)
@prologic will it let me have 200 tabs open at the same time though??????
@abucci And there we go ! I did it ๐Ÿฅณ
@abucci And there we go ! I did it ๐Ÿฅณ

* 7926d92 2022-10-18 | Add buttons, an address bar and make this an actual useful(ish) web browser :D (HEAD -> master) [James Mills]

* 7926d92 2022-10-18 | Add buttons, an address bar and make this an actual useful(ish) web browser :D (HEAD -> master) [James Mills]
@prologic I donโ€™t have the best experience with WebKit, at least not with WebKit2GTK on Linux. MacOS might be different, I donโ€™t know. But on Linux, WebKit2GTK is always *lightyears* behind Firefox/Chromium in terms of โ€ฆ everything. Thatโ€™s my experience with running WebKit2GTK browsers for well over a decade (luakit, uzbl, dwb, whatever). I even made my own browser at some point, but I recently basically decided to give up on it and go back to Firefox.

WebKit is an admirable project, but they simply cannot compete with the sheer man power of Firefox/Chromium. There are so many standards and new features all the time, the WebKit team canโ€™t keep up with that. A funny/good/sad example is imgur.com: For a while, itโ€™s completely unusable; then WebKit catches up and it works more or less (probably pretty slow, though); then imgur changes stuff, uses new browser features and, boom, your WebKit browser doesnโ€™t work again; and this cycle repeats over and over.

All this makes me pretty sad (once more ๐Ÿ˜…). Hereโ€™s the thing: WebKit is *super easy* to use in a GTK program. Itโ€™s just another GTK widget. Itโ€™s totally possible for a single person to write a browser that he/she likes using WebKit2GTK as a rendering engine. If you could actually *use* the web with WebKit, we could see *a ton* of different browsers out there, all serving different needs and purposes.

(I tried building a browser around the Firefox engine or the Chromium engine, but this is muuuuuuuuuuuuuuuuuch more involved than WebKit2GTK. I quickly gave up on that. Sure thing, Firefox/Chromium donโ€™t *want* you to just use their rendering engine โ€ฆ)
@prologic I donโ€™t have the best experience with WebKit, at least not with WebKit2GTK on Linux. MacOS might be different, I donโ€™t know. But on Linux, WebKit2GTK is always *lightyears* behind Firefox/Chromium in terms of โ€ฆ everything. Thatโ€™s my experience with running WebKit2GTK browsers for well over a decade (luakit, uzbl, dwb, whatever). I even made my own browser at some point, but I recently basically decided to give up on it and go back to Firefox.

WebKit is an admirable project, but they simply cannot compete with the sheer man power of Firefox/Chromium. There are so many standards and new features all the time, the WebKit team canโ€™t keep up with that. A funny/good/sad example is imgur.com: For a while, itโ€™s completely unusable; then WebKit catches up and it works more or less (probably pretty slow, though); then imgur changes stuff, uses new browser features and, boom, your WebKit browser doesnโ€™t work again; and this cycle repeats over and over.

All this makes me pretty sad (once more ๐Ÿ˜…). Hereโ€™s the thing: WebKit is *super easy* to use in a GTK program. Itโ€™s just another GTK widget. Itโ€™s totally possible for a single person to write a browser that he/she likes using WebKit2GTK as a rendering engine. If you could actually *use* the web with WebKit, we could see *a ton* of different browsers out there, all serving different needs and purposes.

(I tried building a browser around the Firefox engine or the Chromium engine, but this is muuuuuuuuuuuuuuuuuch more involved than WebKit2GTK. I quickly gave up on that. Sure thing, Firefox/Chromium donโ€™t *want* you to just use their rendering engine โ€ฆ)
@prologic I donโ€™t have the best experience with WebKit, at least not with WebKit2GTK on Linux. MacOS might be different, I donโ€™t know. But on Linux, WebKit2GTK is always *lightyears* behind Firefox/Chromium in terms of โ€ฆ everything. Thatโ€™s my experience with running WebKit2GTK browsers for well over a decade (luakit, uzbl, dwb, whatever). I even made my own browser at some point, but I recently basically decided to give up on it and go back to Firefox.

WebKit is an admirable project, but they simply cannot compete with the sheer man power of Firefox/Chromium. There are so many standards and new features all the time, the WebKit team canโ€™t keep up with that. A funny/good/sad example is imgur.com: For a while, itโ€™s completely unusable; then WebKit catches up and it works more or less (probably pretty slow, though); then imgur changes stuff, uses new browser features and, boom, your WebKit browser doesnโ€™t work again; and this cycle repeats over and over.

All this makes me pretty sad (once more ๐Ÿ˜…). Hereโ€™s the thing: WebKit is *super easy* to use in a GTK program. Itโ€™s just another GTK widget. Itโ€™s totally possible for a single person to write a browser that he/she likes using WebKit2GTK as a rendering engine. If you could actually *use* the web with WebKit, we could see *a ton* of different browsers out there, all serving different needs and purposes.

(I tried building a browser around the Firefox engine or the Chromium engine, but this is muuuuuuuuuuuuuuuuuch more involved than WebKit2GTK. I quickly gave up on that. Sure thing, Firefox/Chromium donโ€™t *want* you to just use their rendering engine โ€ฆ)
@prologic I donโ€™t have the best experience with WebKit, at least not with WebKit2GTK on Linux. MacOS might be different, I donโ€™t know. But on Linux, WebKit2GTK is always *lightyears* behind Firefox/Chromium in terms of โ€ฆ everything. Thatโ€™s my experience with running WebKit2GTK browsers for well over a decade (luakit, uzbl, dwb, whatever). I even made my own browser at some point, but I recently basically decided to give up on it and go back to Firefox.

WebKit is an admirable project, but they simply cannot compete with the sheer man power of Firefox/Chromium. There are so many standards and new features all the time, the WebKit team canโ€™t keep up with that. A funny/good/sad example is imgur.com: For a while, itโ€™s completely unusable; then WebKit catches up and it works more or less (probably pretty slow, though); then imgur changes stuff, uses new browser features and, boom, your WebKit browser doesnโ€™t work again; and this cycle repeats over and over.

All this makes me pretty sad (once more ๐Ÿ˜…). Hereโ€™s the thing: WebKit is *super easy* to use in a GTK program. Itโ€™s just another GTK widget. Itโ€™s totally possible for a single person to write a browser that he/she likes using WebKit2GTK as a rendering engine. If you could actually *use* the web with WebKit, we could see *a ton* of different browsers out there, all serving different needs and purposes.

(I tried building a browser around the Firefox engine or the Chromium engine, but this is muuuuuuuuuuuuuuuuuch more involved than WebKit2GTK. I quickly gave up on that. Sure thing, Firefox/Chromium donโ€™t *want* you to just use their rendering engine โ€ฆ)