It can be understood as a combination of Pastebin and Firefox Send. The usage scenario is generally that text/files need to be temporarily transmitted to others occasionally, but the receiving device may not be able to use tools such as AirDrop, General Clipboard, WeChat (especially public devices). Based on Cloudflare Worker + Pages + R2 + D1, only a domain name hosted in Cloudflare is needed to use it.
project information
- What is PocketChest?
This is a modern file and text sharing service built with Cloudflare Workers and Pages that requires no server or user registration - sharing methods
Users can upload files or paste text and generate a unique 6-digit extraction code (for exampleABC123)。The recipient can download the entire content with this code ([GitHub][1]).
Core Function Highlights
- Support uploading large files
Store files in Cloudflare R2 via multipart upload, supporting files up to hundreds of gigabytes - Automatic expiration mechanism
Uploaded content can be set to automatically expire after 1, 3, 7, or 15 days (or set to be permanent). The system cooperates with regular cleaning tasks to automatically delete expired files - No need to register an account/optional TOTP dual-factor certification
Most operations do not require logging in to an account and are easy to share; but if you want higher security, you can enable TOTP (Time Synchronization One-Time Password) authentication to limit access - High performance, responsive
The global edge network built on Cloudflare ensures excellent page loading and file transfer performance and supports mobile device access
technical architecture
- rear end
use Cloudflare Workers As an API layer, the database uses the D1, file storage use R2 - front end
use Next.js 14 + Tailwind CSS, deployed in Cloudflare Pages on - language
mainly used TypeScript development
actual application scenarios
- Want to share sensitive content on public devices, but don’t want to sign in to your account?
- Want to temporarily transfer large files but find FTP or traditional cloud disks troublesome?
PocketChest is very practical in these situations-light, safe and fast - Someone summed up the analogy: “Combining Pastebin with Firefox Send”
It is similar to Pastebin in terms of temporality and code access methods, and has the ability to transfer large files of Firefox Send, but the implementation method is more modern and Serverless.
Summary Overview
| characteristics | described |
|---|---|
| share content | File + Text |
| access method | Unique 6-digit code |
| Expired support | Various duration settings (1 – 15 days or permanent) |
| authentication method | No login is required by default, and TOTP dual factors are optional |
| file storage | Cloudflare R2 supports large files |
| Front/Back-end Technology Stack | Next.js + Tailwind / Cloudflare Workers + D1 |
| deployment methods | Cloudflare Pages + Workers Edge |
| development language | TypeScript |
Github:https://github.com/Hzao/PocketChest/
Oil tubing: