# marseventh/cloudflare-imgbed

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/marseventh-cloudflare-imgbed).**

4,395 stars · 5,222 forks · JavaScript · mit

## Links

- GitHub: https://github.com/MarSeventh/CloudFlare-ImgBed
- Homepage: https://cfbed.sanyue.de
- awesome-repositories: https://awesome-repositories.com/repository/marseventh-cloudflare-imgbed.md

## Topics

`cloudflare-pages` `cloudflare-r2` `discord` `gallery` `huggingface` `imgbed` `netdisk` `s3` `telegram-bot`

## Description

CloudFlare-ImgBed is a serverless image hosting platform built on Cloudflare Workers, designed to accept, store, and serve images through a global edge network. It runs entirely on Cloudflare's serverless infrastructure, handling requests without persistent servers, and caches public responses at the edge for fast content delivery. The system authenticates programmatic access using time-limited API tokens and automatically converts uploaded images to WebP format while compressing oversized files during the upload process.

The platform distinguishes itself through multi-backend storage routing, allowing files to be distributed across configurable providers including S3, R2, Telegram, Discord, and HuggingFace with automatic failover and load balancing. It supports chunked uploads with retry logic for reliable large file transfers, integrates with external moderation APIs to scan uploaded content, and exposes files through the WebDAV protocol for management via standard desktop clients. A dedicated random image endpoint and public gallery provide dynamic content retrieval and sharing capabilities.

The system includes an admin panel for browsing, searching, and managing files and folders, along with upload history tracking and user activity monitoring. It supports drag-and-drop and paste uploads, generates direct, Markdown, HTML, or BBCode links, and offers a multi-language interface toggle between Chinese and English. Configuration can be backed up and restored, and storage channels can be set up with load balancing adjustments from a unified interface.

Deployment options include Cloudflare Pages with automatic updates, Cloudflare Workers via GitHub Actions, or as a self-hosted Docker container.

## Tags

### DevOps & Infrastructure

- [Cloudflare Workers Implementations](https://awesome-repositories.com/f/devops-infrastructure/serverless-architectures/cloudflare-workers-implementations.md) — Runs entirely on Cloudflare Workers edge functions, handling requests without persistent servers or traditional runtime environments.
- [Image Optimization Pipelines](https://awesome-repositories.com/f/devops-infrastructure/file-uploaders/binary-upload-optimizers/image-optimization-pipelines.md) — Converts uploaded images to WebP format and compresses oversized files automatically during the upload process.
- [Time-Limited API Tokens](https://awesome-repositories.com/f/devops-infrastructure/infrastructure/operational-observability-access/api-token-management/time-limited-api-tokens.md) — Issues time-limited API tokens for programmatic access to upload and management endpoints. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))
- [Storage Backend Load Balancers](https://awesome-repositories.com/f/devops-infrastructure/load-balancing/storage-backend-load-balancers.md) — Sets up multiple storage backends, adjusts load balancing between them, and clears CDN caches from a single interface. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [Cloudflare Workers Deployments](https://awesome-repositories.com/f/devops-infrastructure/worker-deployment-inspection/cloudflare-workers-deployments.md) — Runs as a Docker container or deploys to Cloudflare Workers with one click through GitHub Actions. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))
- [Multi-Platform Deployments](https://awesome-repositories.com/f/devops-infrastructure/worker-deployment-inspection/cloudflare-workers-deployments/multi-platform-deployments.md) — Runs on Cloudflare Pages with automatic updates, Cloudflare Workers via GitHub Actions, or as a self-hosted Docker container. ([source](https://cfbed.sanyue.de/en/guide/features.html))

### Part of an Awesome List

- [Chunked Uploaders](https://awesome-repositories.com/f/awesome-lists/devtools/file-upload/chunked-uploaders.md) — Automatically switches storage channels on failure and splits large files into chunks for reliable uploads. ([source](https://cfbed.sanyue.de/en/guide/features.html))

### Data & Databases

- [Image Hosting Backends](https://awesome-repositories.com/f/data-databases/multi-backend-storage-management/image-hosting-backends.md) — Sends images and files to configurable storage backends including S3-compatible, Telegram, Discord, HuggingFace, and WebDAV channels. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))
- [Edge Cache Invalidation](https://awesome-repositories.com/f/data-databases/performance-caching-systems/page-caching-controls/http-cache-headers/edge-cache-invalidation.md) — Caches public GET and HEAD responses at the Cloudflare edge using Cache-Control headers, with automatic cache invalidation on updates.
- [Response Caching](https://awesome-repositories.com/f/data-databases/response-caching.md) — Caches public GET and HEAD responses at the network edge using Cache-Control headers to reduce load on your origin server. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))

### Graphics & Multimedia

- [WebP Image Conversions](https://awesome-repositories.com/f/graphics-multimedia/webp-image-conversions.md) — Transforms uploaded images to WebP format before storage to reduce file size and improve loading speed. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))

### Networking & Communication

- [Multi-Backend Routing](https://awesome-repositories.com/f/networking-communication/backend-proxies/multi-backend-routing.md) — Sends uploaded files to configurable channels such as Telegram, Cloudflare R2, S3, Discord, HuggingFace, or WebDAV. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [Image Hosting API Integrations](https://awesome-repositories.com/f/networking-communication/cross-origin-networking/image-hosting-api-integrations.md) — Integrates with the PicGo image hosting tool and supports cross-origin API requests for third-party integration. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [WebDAV Remote File Management](https://awesome-repositories.com/f/networking-communication/webdav-remote-file-management.md) — Manages uploaded files and directories through any WebDAV-compatible client application. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))

### Security & Cryptography

- [Session-Managed Access Controls](https://awesome-repositories.com/f/security-cryptography/token-authentication/session-managed-access-controls.md) — Protects uploads and admin pages with password-based authentication, session management, and expiring API tokens. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [Content Moderation Filters](https://awesome-repositories.com/f/security-cryptography/content-moderation-filters.md) — Scans uploaded images through configurable moderation APIs to filter inappropriate content automatically. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))
- [Moderation APIs](https://awesome-repositories.com/f/security-cryptography/moderation-apis.md) — Scans uploaded images through configurable third-party moderation APIs to automatically filter inappropriate content.

### User Interface & Experience

- [Drag-and-Drop File Upload](https://awesome-repositories.com/f/user-interface-experience/file-uploaders/drag-and-drop-file-upload.md) — Accepts files through drag-and-drop, click-to-select, or paste actions, supporting batch uploads with real-time progress display. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [Public Galleries](https://awesome-repositories.com/f/user-interface-experience/media-galleries/public-galleries.md) — Exposes a browsable visitor gallery that displays publicly accessible uploaded files. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))

### Web Development

- [Content Caching Accelerators](https://awesome-repositories.com/f/web-development/content-caching-accelerators.md) — Delivers content faster by caching responses across a global network and automatically clearing stale data after updates. ([source](https://cfbed.sanyue.de/en/guide/features.html))
- [File Management Dashboards](https://awesome-repositories.com/f/web-development/admin-panel-frameworks/file-management-dashboards.md) — Browses, searches, filters, moves, renames, deletes, and copies files and folders through a web dashboard. ([source](https://cfbed.sanyue.de/en/guide/update-log.html))
- [File Search & Filtering](https://awesome-repositories.com/f/web-development/file-uploads/upload-file-filtering/file-search-filtering.md) — Locates specific files quickly by name or metadata, with paginated loading for large collections. ([source](https://cfbed.sanyue.de/en/guide/features.html))

### Development Tools & Productivity

- [Multi-Format Link Copying](https://awesome-repositories.com/f/development-tools-productivity/clipboard-management/clipboard-copying/multi-format-link-copying.md) — Generates direct, Markdown, HTML, or BBCode links for any uploaded file and copies them to the clipboard with one click. ([source](https://cfbed.sanyue.de/en/guide/features.html))

### System Administration & Monitoring

- [Upload Activity Trackers](https://awesome-repositories.com/f/system-administration-monitoring/activity-monitors/automated-activity-loggers/user-activity-monitoring/upload-activity-trackers.md) — Records upload statistics, IP addresses, and geographic locations per user, with permission controls for upload access. ([source](https://cfbed.sanyue.de/en/guide/features.html))
