Live data from Hacker News

Itty Bitty: Sites contained within their own links

itty.bitty.site

1–10 of 111 posts

Re: Itty Bitty: Sites contained within their own links

#4

I wonder how large a website using this scheme can practically be to work on most browsers. I know of at least one browser that limited URLs to 100 characters, but it's almost 30 years old…

While most sites/apps support about 2000 bytes (2KB), some can handle more... Twitter and Slack, for example, allow 4000 bytes in a link.

4000 bytes is enough to apparently encode the full text of Poe's The Raven.

https://twitter.com/edgar_the_poe/status/1003524516440563712

Re: Itty Bitty: Sites contained within their own links

#6

This is neat! I did something similar with https://tinysite.adamdrake.com where I have a website that fits into a single ipv4 datagram (at least it did when I was using my own HTTP server). More details here: https://adamdrake.com/the-biggest-smallest-website.html

Someone has to combat our wasteful packet usage!

Re: Itty Bitty: Sites contained within their own links

#9
post #8

The link says > nothing is sent to–or stored on–this server but isn't it the case that the entire page is sent to bitty.site as part of the HTTP request?

The location.hash (#About...) is not sent to the server, which is where the content is rendered from.

Re: Itty Bitty: Sites contained within their own links

#10
post #8

The link says > nothing is sent to–or stored on–this server but isn't it the case that the entire page is sent to bitty.site as part of the HTTP request?

No, the page content is never sent to the server. all the server does is serve a static HTML page with some javascript. The javascript reads the compressed encoded data in the URL (the fragment which browsers never send to the server during a request) and then it decodes the data and writes the data to the current DOM.

All content data is stored in the link itself and never seen by the itty.bitty server.

Post reply on HN