Live data from Hacker News

Ask HN: Best way to bundle as HTML? Maybe even vids included

news.ycombinator.com

1–3 of 3 posts

Ask HN: Best way to bundle as HTML? Maybe even vids included

#1
Is there a way to make a rich HTML page self-containing?

I love html, pdf not so much. I also love epub, but it has narrow uses.

Existing HTML embedding in to HTML is possible, but Data URI has a 2MB limit on Chrome I think. Maybe a blob helps?

Is there any way I could bundle/pack all scripts, images and maybe videos in to an html in a sane way? Is this feasible at all?

I guess browsers might load the html in to RAM, that could be a problem.

Re: Ask HN: Best way to bundle as HTML? Maybe even vids included

#3
post #2

Something like an Electron app but lighter? How would you be distributing this? https://electronjs.org/

I'd attach it to an email or send it over slack and hope html opens with a sane browser on the other end :)

more like https://github.com/remy/inliner

or https://addons.mozilla.org/de/firefox/addon/single-file/

But I guess these have the 2MB limit and I don't know if maybe more limits.