I made a paste service
Posted | stdout
I've been busy vibe coding a paste service. Sharing content has been painful these days and I always have some snippets or images to share with my friends.
The service is up and running in publick hosted $URL = https://p.est.im
It's running on a free tier Cloudflare Worker with everything stored in D1.
To upload a paste is easy, just curl -T /path/myfile.txt $URL. A random paste ID would be generated and returned.
Or you can pipe some logs like cmd | curl -T - $URL. If you take a close look at the headers you can even find a delete token
Hopefully no major spam nor abuse happen to this service. I did try hardwork to prevent them best to my knowledge, like
- Content-Security-Policy is very strict
- Anti hot-linking using Sec-Fetch-Site
The source code is available at https://github.com/est/p.est.im
If you have any better ideas please let me know 😎
Comments