Temporary file sharing rooms. Create a room, share the link and PIN, send files and images -- everything auto-expires after inactivity.
Demo: 10086.review
No registration required. No data persistence beyond the TTL.
English | 中文
- Ephemeral rooms -- 6-character room ID + 4-digit PIN. Configurable TTL: 1h / 6h / 12h / 24h. Rooms auto-destroy after inactivity.
- Chat-style messaging -- Text, images (inline preview), and file attachments (up to 100 MB). Ctrl+V to paste images. Files auto-upload on selection.
- Room sharing -- QR code generation, one-click copy link + PIN to clipboard.
- Room browser -- Landing page lists active rooms with member count, message count, and time until expiry.
- Rate limiting -- Progressive cooldowns on wrong PINs (3 fails -> delays, 6 fails -> 30 min block). Creation rate limit (3 per 10 min, 10+ triggers 60 min block).
- Cloudflare Turnstile -- Optional CAPTCHA kicks in after rate limit thresholds for both room creation and joining.
- Multi-language -- Auto-detects browser language. Supports: Chinese, English, German, French, Japanese, Spanish.
- Auto-naming -- Users get assigned names (Alice, Bob, Charlie...) based on IP, no login needed.
npm install
node server.jsServer starts on http://localhost:3456. Also binds to 0.0.0.0 and prints LAN IPs for access from other devices on the same network.
Set port via environment variable:
PORT=8080 node server.jsThe Cloudflare Worker version uses KV for room storage and R2 for file storage.
- A Cloudflare account
- Wrangler CLI installed and authenticated
cd cloudflare-worker
# Create KV namespace
wrangler kv namespace create ROOMS
# Create R2 bucket
wrangler r2 bucket create share-chat-filesUpdate wrangler.toml with your KV namespace ID and R2 bucket name:
name = "share-chat"
main = "src/worker.ts"
compatibility_date = "2024-01-01"
[[kv_namespaces]]
binding = "ROOMS"
id = "YOUR_KV_NAMESPACE_ID"
[[r2_buckets]]
binding = "FILES"
bucket_name = "share-chat-files"wrangler deploySet environment variables in Cloudflare dashboard or via wrangler:
wrangler secret put TURNSTILE_SITE_KEY
wrangler secret put TURNSTILE_SECRET_KEY| Variable | Required | Default | Description |
|---|---|---|---|
PORT |
No | 3456 |
Server port (local mode only) |
TURNSTILE_SITE_KEY |
No | -- | Cloudflare Turnstile site key |
TURNSTILE_SECRET_KEY |
No | -- | Cloudflare Turnstile secret key |
All room operations require the room ID in the URL path. Message and file operations require the PIN.
| Method | Path | Auth | Description |
|---|---|---|---|
POST |
/api/room/create |
-- | Create a room. Body: { "ttl": 1 } |
POST |
/api/room/:id/join |
-- | Join room. Body: { "pin": "1234" } |
GET |
/api/room/:id/info |
-- | Room metadata (no PIN needed) |
POST |
/api/room/:id/send |
PIN | Send message. FormData: pin, sender, text, file |
GET |
/api/room/:id/messages |
PIN | Fetch messages. Query: pin, since |
GET |
/api/room/:id/file/:msgId |
PIN | Download attached file |
DELETE |
/api/room/:id/message/:msgId |
PIN | Delete a message |
GET |
/api/rooms |
-- | List active rooms |
GET |
/api/turnstile/config |
-- | Get Turnstile site key (if configured) |
.
├── server.js # Node.js Express server (local mode)
├── public/
│ └── index.html # SPA frontend (local mode)
├── package.json
└── cloudflare-worker/
├── wrangler.toml # Wrangler config
├── package.json
└── src/
└── worker.ts # Cloudflare Worker (includes embedded HTML)
MIT