Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.21 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.21 KB

Pastbin

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.

Free Plan Limit

Storage Request Limit Size Limit
D1 5 million / day 1MB
R2 10 million / month --
KV 100,000 / day 25MB

Features

Usage

  • Create a new paste from pipe
echo "Ciallo~(∠・ω< )" | curl -F "c=@-" pastb.in
  • Create a new paste from file
curl -F "[email protected]" pastb.in
  • Delete a paste
curl pastb.in/xxxx/del

Deploy

git clone https://github.com/ocfox/pastbin

Edit wrangler.toml to your own settings.

yarn exec wrangler login

yarn install && yarn run deploy