Go to file
Boris K a162b8001a
Update README.md
2020-03-11 10:37:39 +01:00
LICENSE Initial commit 2020-02-13 15:52:01 +01:00
Makefile Add favicon; create worker from jsDelivr 2020-03-09 11:39:55 +01:00
README.md Update README.md 2020-03-11 10:37:39 +01:00
favicon.ico Add favicon; create worker from jsDelivr 2020-03-09 11:39:55 +01:00
index.html Use external font 2020-03-09 15:54:31 +01:00
index.js Use external font 2020-03-09 15:54:31 +01:00
style.css Use external font 2020-03-09 15:54:31 +01:00

README.md

Intro

Paste is available at bokub.github.io/paste

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

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

Note: This project is a clone of Topaz's paste service, 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, encoded in 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

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

Feel free to edit the generated height and width attributes so they suit your needs