Skip to content
/ pastbin Public

Simple pastebin app work with cloudflare d1 and r2

License

Notifications You must be signed in to change notification settings

ocfox/pastbin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "c=@example.zip" 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

About

Simple pastebin app work with cloudflare d1 and r2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published