Lurker News
I wanted to see how far I could go building a notes app using only what modern browsers already provide – no frameworks, no storage APIs, no build step.

What it does:
Single HTML file, no deps, 111 loc
Notes live in the URL hash (shareable links!)
Auto-compressed with CompressionStream
Plain-text editor (contenteditable)
History support
Page title from first # heading
Respects light/dark mode
No storage, cookies, or tracking
The entire app is the page source.
https://textarea.my/

Comments (168) 72 threads

Show all comments

Showing thread 2 of 72

maxloh4 replies#
Per the spec [0], a URL can hold at least 8,000 characters.

> It is RECOMMENDED that all senders and recipients support, at a minimum, URIs with lengths of 8000 octets in protocol elements. Note that this implies some structures and on-wire representations (for example, the request line in HTTP/1.1) will necessarily be larger in some cases.
Mainstream browsers support at least 64,000 characters [1], and Chrome supports up to 2MB [2].
[0]: https://www.rfc-editor.org/rfc/rfc9110#section-4.1-5
[1]: https://stackoverflow.com/a/417184/
[2]: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/s...

hallole1 reply#
LOL Tapping the address bar crashed my Chrome on mobile.
lurking_swe1 reply#
loaded OK for me on mobile safari.
kylecazar1 reply#
Loaded fine for me too -- but like parent, tapping the address bar to share afterwards crashed it on Android here :)
nosrepa#
My Firefox on mobile seemingly handled it fine.
scotty79#
Works fine on Win11 Edge
gchamonlive#
Interesting, in Firefox mobile (actually fennec) if I tap the address bar, I get an empty text box.

EDIT: actually I can edit the URL, but it takes a while to load.

oneseven#
hmmm makes me wonder if you could train llms on gzipped text. would save a lot of tokens that way.
spicyusername1 reply#
Incredible.

My absolute favorite thing about modernity is how enabled we are to riff on a riff of a riff.
In 1346, if a blacksmith came up with something cool, its quite possible that it died with them.

Kye#
One thing I've learned from checking up on assumptions I've had about history is that it's easy to underestimate people in past times. They were probably better at communicating this stuff than you think.
caminanteblanco1 reply#
This unfortunately immediately crashed my android firefox nightly browser. Amusingly it loaded the page, but one click on the address bar sent me straight to the home screen
Departed7405#
For me on IronFox it showed an empty URL bar but loaded after what felt like 5 seconds.
buddhistdude#
I find it interesting that when you read this comment, the whole book is already on your computer. And it gets rendered when your press the link.

Edit: actually not true since you use a url shortener

idle_zealot#
I can open the page with the book text on mobile Safari, but iOS seems to cut off content when trying to copy/share the page URL. I can't get it to survive a round-trip to Notes. Might be a good thing to note for mobile users that if they write too much attempting to save their link will corrupt it.
ron-ulitsky#
First time I tried to open that link on my Pixel, it crashed Chrome, lol. Worked the second time though
dspillett1 reply#
> Per the spec [0], a URL can hold at least 8,000 characters.

> It is RECOMMENDED that all senders and recipients support, at a minimum, URIs with lengths of 8000 octets in protocol elements.
It is always worth remembering that, unless you have already ensured that the content has been rendered into a URI-safe subset of ASCII, a character and an octet are not the same thing.

ghurtado#
Very good point indeed. In the worst case scenario, you would only have 1/5th of that capacity
berkes#
I guess the surveillance industry has enough incentives to make this ever larger, so they can fit more utm-trackers, campaign-ids, referal trackers and whatnot in URLs.

It's truly insane how large typical share-URLS for content on instagram, youtube or any other large platforms are. URLs that could've been example.com/t/some-large-enough-id?time=13337 are stuffed with hundreds of characters, just to gather more data on people using these links.

mrweasel#
What could the reasoning behind allowing anything beyond 64.000 characters possibly been? Even 64k seems unnecessarily large.