2020-03-09 16:04:58 +00:00
[][intro-img]
2020-02-18 10:39:40 +00:00
2020-03-09 13:38:28 +00:00
> Paste is available at [`bokub.github.io/paste`](https://bokub.github.io/paste) ⚡
2020-02-18 10:39:40 +00:00
Paste is a client-side paste service which works **without any database** or back-end code
Instead, the data is **compressed** then **stored** into a unique URL that can be decoded later. For example, [this is the HTML code of the service][example]
2020-03-09 13:38:28 +00:00
As a result, there is no risk of data being lost or deleted. Nobody will ever be able to read your data unless you give them the link
2020-02-18 10:39:40 +00:00
> **Note:** This project is a clone of [Topaz's paste service][topaz-example], with a reworked design and additional features such as syntax highlighting, line numbers, and more
## How it works
When you click on "Generate Link", the whole text is compressed using the [LZMA algorithm ](https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm ), encoded in [Base64 ](https://en.wikipedia.org/wiki/Base64 ), and put in the optional fragment at the end of the URL: `bokub.github.io/paste/#<data is here>`
When you open a link which contains data, the fragment is decoded, decompressed, and displayed in the editor
2020-03-09 16:04:58 +00:00
Delta compression using up to 4 threads.
2020-03-09 13:38:28 +00:00
## Embedded Paste snippets
You can include code snippets into your own website by clicking the _Embed_ button and using the generated HTML code
[This is what an embedded Paste snippet looks like ](https://jsfiddle.net/bokub/nwtcdrph/show )
2020-03-09 16:04:58 +00:00
Feel free to edit the generated `height` and `width` attributes so they suit your needs
2020-03-09 13:38:28 +00:00
2020-03-09 16:04:58 +00:00
[intro-img]: https://bokub.github.io/paste/?lang=python#XQAAAQBAAwAAAAAAAAAFYH9Ev4Ly6z/HjSL9A25RBz0bkd1tSahYhX4hPnzQ0/4mR2bSHR+DYlQzBmjK5Pf8qtSY95RpMhLlPaFIgxWdmDCvjn78eJJBPIAptv2ZfAqHq/9h2ppe7XXLit9Ia5ip17plAs0BpQFZuqXAdMVascQlCUQvZ8Kh+yfSI0NxZ6LH0iGlTmdC//9/93OA
2020-03-09 13:38:28 +00:00
[example]: https://bokub.github.io/paste/?lang=html#XQAAAQA4CAAA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