Package Mirror Repository

High-speed software package mirrors

Documentation

Important information and usage instructions

DocumentationLast updated: 2025/12/12

Mirror Page

A modern, static mirror station frontend built with Next.js 14, Tailwind CSS, and Shadcn UI.

Demo

Demo Demo Site on Vercel

Features

  • Pure Static Generation (SSG): Fast, secure, and easy to deploy.
  • 🎨 Modern UI: Built with Shadcn UI, Framer Motion, and Tailwind CSS.
  • ⚙️ Configurable: Fully controlled via mirrors.toml.
  • 🔄 Auto-Build: Generates static site at container startup based on config.

Deployment

The container is designed to build the static site at startup based on your configuration files.

  1. Configure: Edit mirrors.toml and README.md.
  2. Run:
    docker-compose up -d

The container will:

  1. Read your mirrors.toml.
  2. Run npm run build to generate static HTML.
  3. Start Caddy to serve the site and your /data/mirrors.

Configuration (mirrors.toml)

[site]
title = "My Mirror Station"
# ...
toml

Output static files only

docker run --rm \
  -v ./mirrors.toml:/app/mirrors.toml \
  -v ./README.md:/app/README.md \
  -v ./output:/app/dist_static \
  channinghe/mirror-page:static-build

Development

npm install
npm run dev

License

MIT