paste/README.md

54 lines
3.1 KiB
Markdown
Raw Normal View History

2023-11-22 21:58:27 +01:00
# Paste
2023-10-25 19:58:53 +02:00
2023-11-22 21:58:27 +01:00
> A no-database, no-backend pastebin-like service. All the data is stored in the url.
2023-10-25 19:58:53 +02:00
2023-11-24 19:37:08 +01:00
This is a rewrite of https://nopaste.boris.sh/, which is a rewrite of https://topaz.github.io/paste/
2023-10-25 19:58:53 +02:00
2023-11-25 12:46:12 +01:00
[More information on this self-hosted "about" page](https://paste.scambier.xyz/?l=md#G1kEQCwPuDPLA5HZei/6YuLXI4CNnhokMPJdPX6CMk6AV6sRXN4KLSpfl7bVV9K+gXfaZ7V2MvAN0QZxE4en1XIehfAI5ZLNUVqTdXzdO/VgUeYHhcd0qVJe7X4xDduM5NzWwDg+EJj3ekXABlhqhM5CK+tLOS3PdcEsjGiTldkr3nCbBOg4yVND30EgE7TqErXwMg+BHW6IFplIC5n+anoPN0ChZlYsmC6kBy3EcBcS2586pAasFog++QYxh3UJ2TIKX7jGA+wD0BVx5amWAyX631A90A6synh4xP8J4euj0JF2uZewQuWgCXjQyWe/7QzxEEba6qG3g2cu9pFaJSXZ3JE+M0qmFl4Vo+sZ+pCB9PNSrY1YLoQZcTVDjpXepdLTN+PUeXgB1jSkV8ONR0GQTdOaozBrzPBaOJNz9rS7kIW9agQr7vEI2Q+WfRQyGjUhgr+V+TtQGILv8Nor7GkbT1yBBmcJkKqGmMBEDfSNzCU56GIHxuKj4vUgJG70sVZnFwVnpfN62HhUa2Gw9hL5CH3ybuCivf6sgNV/tD2NY0G9R7NI+OB85upexroYIJX5l4zDWRyO/9PeJaUB0vZ1Pw5fTiwyrpPHTIoiHVZAqx44zIhpjCS3rWYO+5NuASdaqsc+ZmkLMg==)
2023-10-25 19:58:53 +02:00
2023-11-25 12:46:12 +01:00
## Maximum lengths for links
2023-11-25 09:02:08 +01:00
NoPaste is great for sharing code snippets on various platforms.
These are the maximum link lengths on some apps and browsers.
| App | Max length | Notes |
| -------- | ---------- | --------------------------------------------------------------------------------- |
| Mastodon | None? | Not specified in the docs |
| Reddit | 10,000 | |
| Twitter | 4,088 | |
| Slack | 4,000 | |
| Discord | 4,000 | 4,000 is the whole message limit. Longer messages are converted into attachements |
| QR Code | 2,610 | |
| Bitly | 2,048 | |
| Browser | Max length | Notes |
| --------------- | ------------------------- | --------------------------------------- |
| Google Chrome | (win) 32,779 (mac) 10,000 | Will not display, but larger links work |
| Firefox | >64,000 | |
| Microsoft IE 11 | 4,043 | Will not show more than 2,083 |
| Microsoft Edge | 2,083 | Anything over 2083 will fail |
| Android | 8,192 | |
| Safari | Lots | |
The safest limit to make sure your Paste link works everywhere seems to be 2,083.
2023-11-22 21:58:27 +01:00
## TODO
2023-10-25 19:58:53 +02:00
2023-11-22 21:58:27 +01:00
- [x] Use brotli
2023-11-25 09:02:08 +01:00
- [x] ~~Stay compatible with original lzma-compressed urls~~
2023-11-23 22:06:35 +01:00
- [x] Have a read-only view with nice colors for code blocks
- [ ] Use CodeMirror 6
2023-11-22 21:58:27 +01:00
- [ ] 100% self-contained, no dependance on jsdeliver
2023-10-25 19:58:53 +02:00
2023-11-22 21:58:27 +01:00
## Build
2023-10-25 19:58:53 +02:00
2023-11-22 21:58:27 +01:00
```sh
$ pnpm install
$ pnpm build
2023-10-25 19:58:53 +02:00
```
2023-11-22 21:58:27 +01:00
## License
2023-10-25 19:58:53 +02:00
2023-11-25 09:02:08 +01:00
GNU GPLv3