English Português Español Français Deutsch Italiano Русский 中文 日本語 العربية
★ Радиостанция «Маяк» · Gosplan Static HTTP Engine ★

Mayak (mk)

RFC 7233 Range リクエスト (206) に対応し、0.0.0.0 バインドおよび自動ポート検出を備えた高速静的ファイルサーバー。

Codeberg Repo CLI Options

⚡ 611 KB Binary

Instant startup (<5ms) in pure Rust without Node or Python runtime overhead.

📻 0.0.0.0 Default

Accessible out of the box on LAN, Tailscale, Wi-Fi, and mobile test devices.

🎵 Range (206) Audio/Video

Full RFC 7233 partial byte-range seeking for media streams and La Craia cockpit.

🔍 Auto Port Discovery

Starts at 8080 and smoothly increments to next free port if occupied.

Quick Start

# Serve current folder on 0.0.0.0:8080
mk

# Serve custom documentation folder and open browser
mk site/ --open

# Serve Single Page Application (fallback 404 to index.html)
mk dist/ -p 3000 --spa --cors

# Restrict bind strictly to 127.0.0.1
mk --localhost

Command Line Options

Option Flag Description
-p, --port <N>-p 8080Initial port (auto-increments if busy)
--host <IP>--host 0.0.0.0Network interface (default: 0.0.0.0)
-l, --localhost-lBind strictly to 127.0.0.1
-s, --spa-sSingle Page App mode (fallback 404 to index.html)
--cors--corsSend Access-Control-Allow-Origin: * headers
--bridge <cmd>--bridge cccpブリッジモード: POST /api/exec をローカルコマンドにバインド
--auth <token>--auth token/api/exec の認証トークンを要求
-o, --open-oOpen default browser automatically
-q, --quiet-qQuiet mode (errors only)