Skip to content
giejqfPublic

About

NuCI: a modern web interface for OpenWrt 25.12 (Svelte 5, ubus/rpcd, no LuCI)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NuCI

A fast, modern web interface for OpenWrt 25.12. It is a new frontend, not built on LuCI: a Svelte 5 single-page app that talks to the router through stock rpcd/ubus and a few small ucode plugins.

Status: 0.5. All v1 page groups (Status, System, Network, Firewall), a first-run setup wizard, non-root users, German and Simplified Chinese, and twelve apps are implemented and tested end to end on OpenWrt 25.12 armsr/armv8 (QEMU). See docs/releases for release notes, AGENTS.md for the architecture, the locked decisions and the plan, and docs/adr for decisions made along the way.

Apps: WireGuard, Dynamic DNS, UPnP, SQM, firmware upgrade (ASU), traffic usage (nlbwmon), Adblock, DNS over HTTPS, Wake on LAN, frp client, media server (miniDLNA) and web server (uHTTPd).

Layout

Path What
apps/web The SPA (Vite + Svelte 5 + Tailwind v4 + DaisyUI v5) → /www/nuci/
apps/nuci-app-* First-party apps, one package each (see above)
packages/* @nuci/rpc, @nuci/uci, @nuci/ui, @nuci/i18n, @nuci/app-sdk, @nuci/app-kit
rpcd/ ucode plugins (nuci.* ubus objects), shared libs, ACLs, host tests
server/*.uc uhttpd-mod-ucode handlers: events (SSE), apply probe, transfers
feed/ OpenWrt package feed: nuci, nuci-base, rpcd-mod-nuci, nuci-app-*
tools/qemu/ QEMU lab for development and e2e
e2e/ Playwright tests against the QEMU lab
docs/adr/ Architecture decision records

Development

Prerequisites: Node 22+, pnpm, qemu-system-x86, qemu-img, socat, zstd, Docker (only on non-x86_64 hosts, for the SDK and Playwright), and a host ucode at the router's revision (tools/install-ucode.sh).

pnpm install
pnpm dev                 # Vite on :5173, proxies /ubus and /nuci/events to $NUCI_ROUTER
pnpm test                # vitest + ucode host tests
pnpm lint && pnpm check  # eslint, prettier, license headers, svelte-check, ucode -c
pnpm build && pnpm size  # build + bundle budget

tools/qemu/start.sh      # boot OpenWrt 25.12 x86/64 (downloads the image once)
tools/qemu/provision.sh  # deps, root password (tools/qemu/.env), removes LuCI
tools/sync.sh            # push the working tree to the lab router
pnpm e2e                 # boot/provision if needed, sync, run Playwright
tools/sdk/build.sh       # build .apk packages into dist/feed/

Installing on a router

From a release (OpenWrt 25.12, any architecture; the packages are architecture independent):

BASE=https://github.com/giejqf/nuci/releases/download/v0.5.0
wget -O /etc/apk/keys/nuci-feed.pem "$BASE/nuci-feed.pem"
echo "$BASE/packages.adb" >> /etc/apk/repositories.d/customfeeds.list
apk update && apk add nuci
# optional apps (nuci-app-<name>): wireguard ddns upnp sqm asu nlbwmon adblock
#                                  https-dns-proxy wol frpc minidlna uhttpd

From source: pnpm build && tools/sdk/build.sh, copy dist/feed/*.apk to the router and run apk add --allow-untrusted ./*.apk. To produce a signed feed yourself: NUCI_FEED_KEY=key.pem tools/release.sh.

Then open http://<router>/nuci/.

License

Apache-2.0. See LICENSE.

About

NuCI: a modern web interface for OpenWrt 25.12 (Svelte 5, ubus/rpcd, no LuCI)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages