A no-backend pastebin putting the paste contents in the URL.
Find a file
2022-11-10 20:05:08 +02:00
vendor Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00
.gitlab-ci.yml Attempt to fix CI 2022-10-28 23:43:22 +03:00
.gitmodules Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00
dataoptions.js Implement title for pastes 2022-11-10 20:05:08 +02:00
index.html Implement title for pastes 2022-11-10 20:05:08 +02:00
languages.js Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00
LICENSE Add proper license 2022-10-26 01:25:43 +03:00
licenses.txt Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00
README.md Add README 2022-10-26 10:05:16 +03:00
tahnaroskakori.css Implement title for pastes 2022-11-10 20:05:08 +02:00
tahnaroskakori.js Implement title for pastes 2022-11-10 20:05:08 +02:00
utils.js Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00
viewmode.js Implement line numbers, code highlighting, protocol header 2022-10-28 23:20:07 +03:00

Tahnaroskakori

Paste = tahna. Bin = roskakori. Pastebin = tahnaroskakori!

This is a pastebin that compresses the text contents and adds them to the end of the URL in the hash part. This way no contents need to be sent to the server and the pastebin can just be a static HTML/JS website.

The compression is using brotli-wasm in the browser. The compressed data is then encoded with Base66 to be URL safe (percent encoding would just grow the length).

The size that can be pasted is dependent on the URL before the hash. URLs have a 2048 character length limit, so the paste is limited to only generate URLs that fit in that limit.

Demo: https://nicd.gitlab.io/t/

Thanks to daarb from the Elixir Discord for the idea and finding brotli-wasm!