This is image uploader of @MeilCli private usage. And @MeilCli still continue to implement this.
- Low price image uploader & image hosting
- May free if the site access is few (excepting domain price)
- Can upload image only admin
- Can access image everyone
- Can host the own domain
- Can upload image with variants
- Have a Cloudflare account
- Have domain on Cloudflare
- Register payment method on Cloudflare
- Authenticated wrangler
- Cloudflare Workers: https://developers.cloudflare.com/workers/platform/pricing/
- Cloudflare R2: https://developers.cloudflare.com/r2/pricing/
- Cloudflare D1: https://developers.cloudflare.com/d1/platform/pricing/
Clone this repository & execute below commands
npm install
npx wrangler d1 migrations apply d1-example-com --local
npm run generate
npm run dev- Clone or fork this repository
- Execute
npm install - Configure Worker
- Configure R2
- Configure D1
- Configure access restriction
- Configure cache rule
- Do debug, execute
npm run dev - Deploy your worker, execute
npm run deploy
If you want to manage deployment code on private repository, see Private management
MIT License
| Library | License |
|---|---|
| hono | MIT License |
| @hono/zod-validator | MIT License |
| zod | MIT License |
| prisma | Apache License v2 |
| Library | License |
|---|---|
| Bootstrap | MIT License |
| bs-custom-file-input | MIT License |
| Compressor.js | MIT License |
| clipboard.js | MIT License |