btoa.link is a simple way to share text snippets without having to save/share it to a server. Everything is encoded in the URL you share.
Currently supports encoding the text to:
- base64
- zlib (CompressionStream)
- brotli (currently via wasm/js; eventually CompressionStream)
- Other compression algorithms?
- Code highlighting / markdown rendering?
- Other file types e.g. images / audio?
- Node.js 20 or later
- Clone this repository
- Run
npm install - Run
npm run dev
Far from the first of its kind; haven't seen many that use good compression.
From brief testing of short notes in English / code (<16kb), Brotli seems to do the best out of the box due to included dictionary. Tested zstd, brotli, zlib, bbb, bsc-m03, and some other bwt-based JS implementation I forgot :(