Show HN: Minimalist editor that lives in browser, stores everything in the URL
362 points - yesterday at 7:42 PM
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/
Sourcegnyman
yesterday at 9:58 PM
Funny how I made almost exactly the same but for maps.
I needed a way to share a link to a map, with drawings and the ability for the receiver to see their own location on the map.
Annotated screenshots solves the first but not the second.
Vibe engineered this, with many of the same ideas as OP.
Took an evening. Just in time apps for one specific use case is a thing.
And because it's so cheap to make and can be hosted cheaply with no backend, it can be given away for free.
https://nyman.re/mapdraw/#l=60.172108%2C24.941458&z=16&d=LU8...
mathgeek
yesterday at 10:47 PM
> Vibe engineered
While I'm all for vibe coding as appropriate, there's a lot of humor to be found it calling it engineering. :D
this is not something I came up with, Simon wrote it and I liked the differentiation between "vibe coding" where there is less effort
for this case project I think I would actually go back and say it's vibe coded, but I didn't want to just call it vibe coding because I did spend time going back and forth and directing the agent
https://simonwillison.net/2025/Oct/7/vibe-engineering/
InsideOutSanta
today at 10:32 AM
I just hope actual engineers don't start vibe engineering bridges and buildings.
block_dagger
yesterday at 10:50 PM
Fair. Though it seems that half of engineering is just giving a respectable name to whatever actually works.
mathgeek
yesterday at 10:57 PM
For software, but that's a well trodden path at this point. I've seen a few projects that are actually "vibe engineering" outside of software on the 3d modeling side so the terms are confusing.
That is absolutely great!
Using it now to plan a trip.
Could we also add text annotations? Also the delete button could delete just the last shape or a selected shape so as not to start over?
Great tool! There is a little issue with the +/- zoom buttons not working something cause it is over layed by other div blocks. On mac firefox.
Is the code open source online somewhere?
thanks for the info, I'll see if I can get a agent to fix it
it's a static webpage, the source is available with right-click view source, I added a BSD2 licence header to it to make clear it's fine to take and do mostly whatever with
blntechie
today at 5:44 AM
This is so cool!! The responsiveness of the page is so much better than any maps app I have used.
yeah, isn't it impressive how fast modern computers can be if you make a bit of effort, in this case I think I told it to just use plain javascript and make sure it's fast :-)
nextaccountic
today at 4:06 AM
This is pretty cool!
And if you are open to bug reports.. if I move around the drawings move smoothly with the map, but if I zoom in/out the drawings move only after the map zooming animation ends, rather than smoothly
RandomDistort
yesterday at 10:48 PM
Is this open source?
it's a static webpage, the source is available with right-click view source, I added a BSD2 licence header to it to make clear it's fine to take and do mostly whatever with
Gehinnn
yesterday at 11:28 PM
This is very cool!
maxloh
yesterday at 8:19 PM
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...
Chrome limit is 2MB, Firefox is 1MB, WebKit is no limit.
Here is the Crime and Punishment by Fyodor Dostoevsky:
- https://medv.io/goto/crime-and-punishment-by-fyodor-dostoevs...
caminanteblanco
today at 7:53 AM
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
spicyusername
today at 2:33 AM
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.
gchamonlive
yesterday at 10:57 PM
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.
hmmm makes me wonder if you could train llms on gzipped text. would save a lot of tokens that way.
hallole
yesterday at 8:44 PM
LOL Tapping the address bar crashed my Chrome on mobile.
lurking_swe
yesterday at 9:56 PM
loaded OK for me on mobile safari.
kylecazar
yesterday at 10:26 PM
Loaded fine for me too -- but like parent, tapping the address bar to share afterwards crashed it on Android here :)
nosrepa
yesterday at 11:25 PM
My Firefox on mobile seemingly handled it fine.
scotty79
yesterday at 9:19 PM
Works fine on Win11 Edge
berkes
yesterday at 9:36 PM
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.
dspillett
yesterday at 8:56 PM
> 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
yesterday at 9:09 PM
Very good point indeed. In the worst case scenario, you would only have 1/5th of that capacity
Crashes my mobile chromium browsers when I try to open crime and punishment.
Firefox seems to work.
okaleniuk
today at 12:43 PM
I exploit the similar idea for teaching: https://lnkd.in/gsySKda4
Students are lazy, in a good way, so they are more likely to run things on their own and play with interactive bits if the whole lecture is just one link.
AltruisticGapHN
today at 10:59 AM
I love this. Great little html page to refresh on Javascript.
For fun I put it in chatgpt and asked if there are bugs.
It warned about fromBase64() and toBase64() not existing in main browsers. It is supported but is indeed a new "baseline 2025"feature. It suggested more compatible code using two small functions to convert characters manually.
"deflate-raw is not consistently supported." It suggested using 'deflate' instead.
growt
yesterday at 8:44 PM
I recently build a small framework to create JavaScript apps that use this kind of URL sharing and therefore donât require a backend: https://github.com/grothkopp/lost.js
You claim no tracking, and yet there's a Cloudflare Web Analytics beacon placed at the bottom of the page (thankfully filtered out by uBlock Origin)
levmiseri
yesterday at 9:51 PM
I really like this from a privacy point of view. So much so that I'm thinking about adding a purely URL-storage solution as an option in my https://kraa.io editor.
omoikane
yesterday at 10:56 PM
From a privacy point of view, you might not want to use textarea.my since it includes some tracking bits at the end:
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"version":"2024.11.0","token":"6a22b097a2b44fa4af0a95817ce96ab5","r":1,"server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}' crossorigin="anonymous"></script>
WD-42
yesterday at 10:20 PM
From a privacy point of view how is it any better than just using a local, native text editor?
levmiseri
yesterday at 11:08 PM
From purely privacy point of view itâs not. But if you also want markdown features, custom typography and easy sharing, this starts to make more sense.
nickweb
yesterday at 9:08 PM
Think you've inadvertently found a way to provide extra tests for mobile devices.
The Crime and Punishment one consistently crashes Brave mobile for me. I assume it's the length of the URL - and seen another commentator say the same for chrome mobile (sure they both use the same codebase so likely an upstream issue).
ctenb
yesterday at 8:21 PM
I made something similar once, specifically targetted for guitar tablature https://tabviewer.app/
To make links shorter for sharing with others, I use a shortlink service. Pasting URLs of thousands of characters long can be problematic
surrTurr
yesterday at 9:58 PM
shameless plug: i built something very similar but nobody cared: https://github.com/AlexW00/Buffertab
Voice typing is a cool feature, have you considered whisper wasm instead of OpenAI api?
meander_water
today at 5:26 AM
Cool project, but loading "Crime and Punishment" crashed my mobile browser.
I don't think urls were built for that kind of punishment.
Sayyidalijufri
today at 10:10 AM
First I think it's still loading because it's only white
but when I hit the keyboard I can see my it's is already loaded
Good job!
greggman65
yesterday at 11:16 PM
I have something tangentially similar here: https://jsgist.org
If you click save you get the option to use a URL.
The problem with a URL every edit is a new URL. So you send the URL to a friend, then fix a typo, they need a new URL.
The other problem is of course the space limit.
codazoda
yesterday at 9:13 PM
Nice! I love this.
I built Ponder in the same vein. It, however, has 10 files. I did not use the URL, did not have double the fun, and now Iâm sad.
https://github.com/codazoda/ponder
wwarren
yesterday at 8:06 PM
Amazing. The crime and punishment example crashed my iPhoneâs Google Chrome when I tap the URL haha
> 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.
No js is used for colors.
zX41ZdbW
today at 12:38 AM
I've implemented the same idea a few years ago: https://pastila.nl/
It uses DB at the backend.
urbandw311er
today at 12:39 AM
Neat. But why would you auto-set the title from markdown heading syntax when it doesnât support markdown? (Or any rich text in fact)
You can still write markdown. Nobody prevents you.
planb
yesterday at 9:18 PM
A few weeks ago I vibe coded a guitar tab editor just because I wanted to share a quick tab in a chat group with my band. When the first prototype already worked great, I just couldnât stop to add features so that it now even has mouseover chord diagrams and copy and paste.
The sharing works just like here, by encoding the tab itself in the url.
https://github.com/planbnet/guitartabs
spacedoutman
today at 12:42 AM
Seems like we have all built something similar.
hopefully mine can stand out with all the extra features i have managed to cram in
bdcravens
today at 5:17 AM
I keep this in the bookmark bar for the times I need a place to paste a quick bit of text (but it doesn't persist):
data:text/html, <html contenteditable>
lifthrasiir
today at 8:40 AM
Use xem's version [1] if you need persistence:
<body id=b contentEditable onload=b[i="innerHTML"]=[(l=localStorage).c] oninput=l.c=b[i]>
[1]
https://xem.github.io/postit/
I like this because most of the time I need random stuffânumbers, quick searches, or ideasâand this helps instantly.
Why store in the URL and make it bloated? Isn't storing in local storage enough?
thelastgallon
today at 3:43 AM
I wonder if this can be paired with a local URL shortener? Chaining this with a local URL shortener can mean access to any doc with a single letter (or very letters).
ljlolel
yesterday at 9:08 PM
I love this.
Now if you bootstrap the app code into the url too then you can have a minimal kernel to run any machine in url.
Then you can also make a Quine somehow.
billforsternz
yesterday at 8:56 PM
This is very interesting, very refreshing, very simple and clever, very well done, very everything good. Bravo and thank you.
mixedmath
yesterday at 10:14 PM
I wrote a similar app when mathbin was shutting down. It allows about 1500 characters of mathjax-displayed notes. [1]
[1]: https://davidlowryduda.com/mathshare/
cantalopes
today at 2:23 AM
I feel this is more of a fun toy project because if i used it every day my browser history cache and browser performance would get annihilated
pglevy
yesterday at 9:16 PM
Thanks for sharing! I tried a similar content-in-url approach for a family grocery list app but I couldn't get the url that short. (It worked but it was a bit cumbersome sharing over Whatsapp.) Will see what I can learn from this!
gisho
yesterday at 10:10 PM
I created a similar app just 2 days ago targeting Whatsapp (https://linqshare.com) . Context: In my locality, EA, we normally have Whatsapp groups raising funds for whatever reason; for every content edit, the admin has to copy-edit-paste updated content(which contains name and amount) to the group. This small app intends to provide a table that's easy to convey this info. App stores content in the url but a preview image (needed for Whatsapp share) is stored at R2. Let me know if you want the source code running at Cloudflare.
--edit--
test link: https://linqshare.com/#eJxtkM9KxDAQxl-lzLmHrv8Ova3IHlz04BY8F...
huhtenberg
yesterday at 9:50 PM
In Firefox, https://textarea.my shows up as as a completely static non-actionable white page. Just white, with default cursor. No errors on the console.
WhyIsItAlwaysHN
yesterday at 9:59 PM
My own plug, translate between SQL dialects, state stored in URL so you can share it:
https://sqlscope.netlify.app/
qbane
yesterday at 8:03 PM
Just started making my own recently with CodeMirror 6 during holidays. No saving function for now: https://qbane.github.io/cgm
nemtsv
yesterday at 11:02 PM
I think a couple of days ago I stumbled upon your editor in corp Google intranets when I was looking for internal tool to pretty print some json, small world :)
The http://go/fmt-err? =) Yes, it is mine.
reconnecting
yesterday at 10:00 PM
Are <head>, <body>, and </html> missing intentionally?
Safari 15.6.1: Unhandled Promise Rejection: ReferenceError: Can't find variable: CompressionStream
wdporter
yesterday at 10:12 PM
I probably shouldnât presume to speak for the OP, but given that theyâre optional, I would think so, yes.
nvahalik
yesterday at 7:51 PM
Love your other tools, btw!
jaysonelliot
yesterday at 9:07 PM
546,229 character-length URL for the Crime and Punishment example.
Half a megabyte for a URL. That certainly is a thing.
theoa
yesterday at 11:59 PM
This hack has completely disrupted my afternoon! Perhaps even forever after.
xeonmc
yesterday at 8:27 PM
Can you make it monospace by default, so that this can be used as a code snippet bin?
edgars_xx
yesterday at 8:28 PM
love it, funny enough, I had similar idea pop into my head some weeks ago, just to be able to store quick notes and favorite them in my browser for later
this is indeed minimalistic :)
LordDragonfang
yesterday at 9:25 PM
It would be neat if ctrl+s offered to download the textarea to a .txt file.
desireco42
yesterday at 8:59 PM
The only thing missing is markdown and few themes. I think this is awesome idea for sharing. Love what you did with it.
mzelling
yesterday at 8:18 PM
Love it!
deafpolygon
yesterday at 7:51 PM
Can you save anything?
thomascgalvin
yesterday at 8:00 PM
Not OP: sure, just bookmark it
tony_cannistra
yesterday at 8:01 PM
kinda -- but then you have to re-bookmark it every time you update it...
It also saves to localStorage
rane
yesterday at 10:09 PM
Now what if it didn't pollute browser history
sublinear
yesterday at 8:51 PM
I like these kinds of projects, but adding a file export/import is inevitable. It's less about the limits of a URL and more about practicality.
I also have no way to confirm that URLs aren't logged server side, so I'd never trust the claim about "no tracking". That's why these projects also end up self-hosted.
denisinvader
yesterday at 8:58 PM
hash part of url only available in the browser, as far as I know, server doesnât have access to # value
jamesdwilson
yesterday at 9:52 PM
very easy for the server to intentionally (or by compromise) add a one liner to send the hash text up.
sublinear
yesterday at 9:08 PM
Typos and URL mangles are common though, and I'd still have no way to confirm if it got logged in that case. It's out of scope for anything in the github source, and instead depends on the server hosting the page. I know this isn't meant to be super secure, but it's still worth a mention.
throwaway150
yesterday at 9:40 PM
Typos aren't making the hash part turn into something else. Like your parent comment explained to you, the hash part is not sent to the server. If you go out of your way to mangle the URL then of course a mangled URL without hash will likely get logged to the server. But I'm not sure how one would manage to go so much out of the way that they mangle the URL in a way that removes the hash.
sublinear
yesterday at 11:11 PM
You don't have a choice pasting links into some apps. They may strip out query and hash components, percent encode, force URL shortener services, etc.
Percent encoding is particularly bad since it may also bloat the length causing truncation and the decompress to fail. There's endless footguns with URLs.
thomas_tank_321
today at 8:59 AM
[dead]