textarea.my on GitHub

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

A ~160-line browser editor demonstrates practical techniques like contenteditable plaintext-only and CompressionStream that frontend developers can adopt directly.

Read this as

Anton Medvedev built textarea.my, a minimalist text editor that runs entirely in your browser with no server and no account. Instead of saving files, it stores your document by compressing it into the web address itself, so the URL becomes the file. The whole thing is about 160 lines of code. It is a small but genuinely useful editor anyone can open and use immediately.

This is a hobby project, not a business: a free browser-based editor from Anton Medvedev with no pricing, no product and no company behind it. Its value is as a teaching example, it proves a complete editor can fit in ~160 lines of code by keeping all state in the compressed URL fragment. Developers wanting simple tools gain a reference; enterprises gain nothing to buy.

textarea.my is ~160 lines of HTML, CSS and JavaScript storing editor state in the URL hash via new CompressionStream('deflate-raw') for shorter fragments. It uses <article contenteditable="plaintext-only">, supported across all modern browsers. Saving uses window.showSaveFilePicker() on Chrome variants and a Blob/ObjectURL download elsewhere, with Ctrl/Cmd+S handling and an elegant closure-based debounce(ms, fn) implementation.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

textarea.my Anton Medvedev CompressionStream showSaveFilePicker contenteditable

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading