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 26 of 72

frizlab1 reply#
> Respects light/dark mode

Not really… using js to change the CSS on the go is not a good practice. Why does it matter? Because of the “dark mode” browser extensions. They often use the presence of @media query (or other standard CSS means of setting dark mode colors), and if it’s the JS that changes the colors we often get partial Dark Mode, which does not work at all.

medv1 reply#
No js is used for colors.
frizlab#
Oh. I retract my comment, I just read the code. My Dark Mode extension just sucks.