huladabang/luci-theme-maofan
System ToolsDesktop and themesA minimal OpenWrt LuCI theme with a home network dashboard for routers running ucode-based LuCI.
What it is
MaoFan is a LuCI theme plus companion dashboard app for OpenWrt-family routers (OpenWrt, ImmortalWrt, iStoreOS) that use the modern ucode LuCI templates. It replaces the stock admin look with a restrained light/dark theme and adds a landing dashboard showing live WAN throughput, connection counts, a topology of online/offline clients, Wi-Fi link details and physical port status. A small background collector service stores real-time curves and wallpaper caches in /tmp, writing daily statistics to flash only at low frequency.
It targets people already comfortable installing packages on a router over SSH. Network, firewall, wireless and offload settings are not touched by the theme itself.
Install and first run
Installation is a one-line script run on the router over SSH. It checks the latest release, verifies SHA256, fills in missing dependencies, installs three packages and enables the theme, preserving configuration on upgrades.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/huladabang/luci-theme-maofan/main/install.sh || wget -qO- https://raw.githubusercontent.com/huladabang/luci-theme-maofan/main/install.sh)"
The README also offers a mirror-accelerated variant for users in mainland China, flags such as --no-enable, --version <ver> and --uninstall, and a MIRROR= override (install options). After it finishes, log in to LuCI with the chosen theme enabled.
For manual installs, download the three architecture-independent packages from Releases, copy them to /tmp/, then run opkg install on the three .ipk files followed by uci set luci.main.mediaurlbase='/luci-static/maofan' and uci commit luci. For firmware builds, copy the three directories under packages/ into package/maofan/ and select CONFIG_PACKAGE_maofan-data, luci-app-maofan and luci-theme-maofan in make menuconfig.
Compatibility
Supports OpenWrt 24.10 and ImmortalWrt 24.10/SNAPSHOT on opkg, OpenWrt 23.05 with ucode LuCI, and 25.12+/main where the installer enables apk handling. iStoreOS on 23.05/24.10 works and keeps its sidebar. OpenWrt 21.02/22.03 and old Lua LEDE are not supported (compatibility table).
Configuration and behavior
Settings live in /etc/config/maofan: brand title, STUN server and port, the monitored WAN interface, collector on/off, auto NAT probing, sampling interval, history length, wallpaper mode (bing, local, gradient, custom) and update-check toggle (UCI sample). Local wallpapers can be dropped into /www/luci-static/maofan/background/.
Traffic accounting prefers nlbwmon when installed and otherwise falls back to kernel nf_conntrack_acct, so per-device stats still work on a minimal firmware, but monthly totals require nlbwmon. NAT detection depends on reaching a public STUN host. The update checker contacts mao.fan by default unless changed or disabled.
Do not upgrade luci-theme-maofan with opkg --force-reinstall; the uninstall script resets the default theme. Source is Apache-2.0, reusing Bootstrap theme assets under its notice (license, NOTICE).
HotRepo's take
The project had only a short tracking window: on the new JavaScript board for 2026-12-03 it recorded 105 stars and 5 net new stars across roughly 1.5 hours, reaching 101 to 105 stars in the sampled hour. That is enough to confirm early attention from router-theme users, not to claim a trend. What stands out technically is the low-flash design: memory-resident curves, low-frequency atomic writes and a dependency-free static STUN helper address common complaints about dashboard plugins wearing out router storage.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.