A lightweight, self-hostable temporary file hosting service with prepaid permanent traffic quotas.
Inspired by e-daixia.com (易代下).
| Feature | Status | Notes |
|---|---|---|
| User register / login (JWT) | ✅ | Free 100MB on signup |
| Permanent traffic balance | ✅ | Never expires |
| Upload files | ✅ | Max 2GB, auto-delete after 48h |
Share links /d/{code} |
✅ | Public info + download |
| Download deducts traffic | ✅ | size × 1.0 (configurable) |
| Card activation | ✅ | Mock codes: DAI-1G, DAI-5G, DAI-20G... |
| Auto cleanup expired files | ✅ | Background every 10 min |
| Beautiful dark UI | ✅ | Mobile friendly |
| Demo account | ✅ | demo / demo123 with 5GB |
cd easy-daixia
pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload- Username:
demo - Password:
demo123 - Traffic: 5 GB permanent
In the dashboard enter:
DAI-1G→ +1 GBDAI-5G→ +5 GBDAI-20G→ +20 GBDEMO-100M→ +100 MB
- Backend: FastAPI + SQLAlchemy (async SQLite)
- Storage: Local filesystem (
uploads/or/tmp) - Auth: JWT (python-jose + passlib/bcrypt)
- Frontend: Single-page vanilla JS + modern CSS (no build step)
- Storage: Swap local folder → Cloudflare R2 / S3 / MinIO (very cheap)
- Payments: Real card system (generate codes after Stripe / Alipay / Taobao webhook)
- Database: Postgres instead of SQLite
- Multipliers: Different for free vs premium, or hotlink protection
- Rate limits + captcha on download
- Docker + Fly.io / Railway / VPS one-click deploy
- Chinese UI fully (currently bilingual-ready)
- Guest traffic pool or anonymous prepaid cards
- Users buy cheap traffic packs once → permanent balance
- Files only live 48h → low storage cost
- You only pay for actual downloads
- Perfect for temporary resource sharing, netdisk "代下", or private content drops
Built as a Grok prototype for Man Ho.
Feel free to fork, improve, deploy.