logoalt Hacker News

Tinybrowser: A browser running directly in the browser

31 points • by auraham • today at 1:48 AM • 28 comments • view on HN

Comments

fitzn • today at 2:49 AM

I didn't read the source, but how does this fetch across origins? Presumably the wasm browser gets its networking from the host page's fetch function. But fetch won't return any arbitrary page.

➕ show 1 reply
dfee • today at 2:34 AM

Really enjoyed this section: "Agents love tinybrowser!"

Thank you for the laughs

catapart • today at 2:48 AM

This is my favorite kind of ridiculous. An impressive project, you've got here!

xerios • today at 2:21 AM

Decided to try out an oldschool browser test (acid3) and it received a 67/100 score. Neat.

Just noticed that there's a full list of all sorts of tests automated. Pretty cool project overall

hhthrowaway1230 • today at 2:19 AM

Sometimes I dream of a reader mode only web-bowser to cut trough the noise and an age where JS and ads don't exist.

catchmeifyoucan • today at 2:34 AM

This looks really cool.

Are there any memory benefits of using this to render a page?

➕ show 1 reply
andai • today at 2:25 AM

Huh, very cool. Not quite interactive speed, but I guess it's meant for agents, so plenty fast for that?

(Also, lol at the "testimonials"!)

This reminded me, in uni I made a web scraper that ran fully in the browser.

Or it would have, if CORS didn't exist. I had to proxy it thru a 1 line PHP script so requests would be "to the same server". Sekurity achieved.

Of course, web scraping is recursive, so I thought, why not visualize that? So it would extract links from each loaded page, and then fetch those pages too. And then render those websites in nested divs under the original one, and so on. Web-ception!

Original code lost, but I recall it being like 30 LoC or something.

Edit: OK Recreated it from memory but without the recursive scraping bit. So it's just a "normal" browser-in-browser now (lol). Microscopic Python proxy included. https://pastebin.com/AMwCkZai

jbird99 • today at 2:20 AM

Yo dawg I heard you like web browsers

➕ show 1 reply
flowerlad • today at 2:10 AM

What are some use cases for this?

➕ show 9 replies
silverFork • today at 2:02 AM

Cute.. it doesnt display video though..

spicybright • today at 2:33 AM

Disappointed you block it from running itself :)

➕ show 1 reply
m00dy • today at 2:02 AM

[dead]