Skip to content

About

易代下 Clone - Temporary file host with permanent prepaid traffic quotas (inspired by e-daixia.com). FastAPI + SQLite + dark UI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

易代下 Clone · EasyDaiXia

A lightweight, self-hostable temporary file hosting service with prepaid permanent traffic quotas.

Inspired by e-daixia.com (易代下).

Features (MVP)

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

Quick Start

cd easy-daixia
pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

Open http://localhost:8000

Demo login

  • Username: demo
  • Password: demo123
  • Traffic: 5 GB permanent

Activate more traffic

In the dashboard enter:

  • DAI-1G → +1 GB
  • DAI-5G → +5 GB
  • DAI-20G → +20 GB
  • DEMO-100M → +100 MB

Architecture

  • 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)

Production Roadmap (easy upgrades)

  1. Storage: Swap local folder → Cloudflare R2 / S3 / MinIO (very cheap)
  2. Payments: Real card system (generate codes after Stripe / Alipay / Taobao webhook)
  3. Database: Postgres instead of SQLite
  4. Multipliers: Different for free vs premium, or hotlink protection
  5. Rate limits + captcha on download
  6. Docker + Fly.io / Railway / VPS one-click deploy
  7. Chinese UI fully (currently bilingual-ready)
  8. Guest traffic pool or anonymous prepaid cards

Why this model works (like e-daixia)

  • 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.

About

易代下 Clone - Temporary file host with permanent prepaid traffic quotas (inspired by e-daixia.com). FastAPI + SQLite + dark UI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages