How openwrt/luci works
LuCI is OpenWrt’s web configuration interface. The principal workflow is an administrator using browser-based views to inspect or change router settings, with client-side code communicating through RPC and server-side operations exposing system capabilities. The tree also shows distinct areas for network protocols, status, firewall, package management, and service-specific apps. The README confirms the client API and use of ucode and rpcd for server operations. Source excerpts are limited, so most cross-layer links are shown as unverified rather than asserted calls.
Main entry points: luci.c rpcd operations · applications LuCI app views · 10_router.js Dashboard · status System status
Components 18
Web interface
- LuCI app views
applications - Dashboard
modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js - System status
modules/luci-mod-status/htdocs/luci-static/resources/view/status - Storage view
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/25_storage.js
Network configuration
- Network views
modules/luci-mod-network/htdocs/luci-static/resources/view/network - Network protocols
protocols - Firewall management
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall
Service apps
- Service configuration
applications - Package manager
applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js - File manager
applications/luci-app-filemanager/htdocs/luci-static/resources/view/system/filemanager.js
Runtime and RPC
- Client APIs
modules/luci-base/htdocs/luci-static/resources - rpcd operations
libs/rpcd-mod-luci/src/luci.c - Reverse DNS RPC
libs/rpcd-mod-rrdns/src/rrdns.c - Lua templates
modules/luci-lua-runtime/src/template_parser.c - Template utilities
modules/luci-lua-runtime/src/template_utils.h - TLS support
libs/luci-lib-nixio/src/tls-context.c
Other components
- Administrator
- OpenWrt system
Connections 16
- Administrator → LuCI app views: configures
- Administrator → Dashboard: views
- LuCI app views → Client APIs: uses client APIs
- Dashboard → System status: summarizes
- System status → Storage view: includes
- Network views → Network protocols: configures
- Administrator → Network views: configures
- Administrator → Firewall management: configures
- Administrator → Service configuration: configures
- Administrator → Package manager: manages packages
- Administrator → File manager: manages files
- Client APIs → rpcd operations: invokes server operations
README.md - rpcd operations → OpenWrt system: operates on
README.md - Reverse DNS RPC → OpenWrt system: resolves addresses
libs/rpcd-mod-rrdns/src/rrdns.c - Lua templates → Template utilities: uses utilities
modules/luci-lua-runtime/src/template_parser.c - rpcd operations → Reverse DNS RPC: registers RPC