Simple pastebin app built with Hono work on cloudflare worker!
Use D1 and R2, things size over 1MB storage in R2 bucket.
D1 and R2 has more and more and more request limit than KV.
Storage | Request Limit | Size Limit |
---|---|---|
D1 | 5 million / day | 1MB |
R2 | 10 million / month | -- |
KV | 100,000 / day | 25MB |
- Code highlight (https://pastb.in/t1no.hs)
- Image/Video/Audio in browser (https://pastb.in/heisenberg.png)
- Custom URL (
echo "why" | curl -F "c=@-" pastb.in/how
) - Random base36 key (e.g. https://pastb.in/t1no)
- Delete paste based IP (same ip dont need other password)
- Only one dependency (hono)
- File upload front-end
- Create a new paste from pipe
echo "Ciallo~(∠・ω< )" | curl -F "c=@-" pastb.in
- Create a new paste from file
curl -F "c=@example.zip" pastb.in
- Delete a paste
curl pastb.in/xxxx/del
git clone https://github.com/ocfox/pastbin
Edit wrangler.toml
to your own settings.
yarn exec wrangler login
yarn install && yarn run deploy