A local-network manager for Shelly smart devices, built as a cross-platform desktop and mobile app.
ShellMan lets you discover, monitor, and control Shelly Gen 2/3/4 devices on your local network — no cloud required. All communication happens directly over your LAN using the Shelly JSON-RPC 2.0 API.
Supported platforms: iOS · Android · macOS · Windows · Linux
Supported devices: Shelly Gen 2, Gen 3, Gen 4 (JSON-RPC 2.0)
- Device Discovery — Automatic discovery via mDNS (
_shelly._tcp.local.) and subnet scan (TCP/CIDR), plus manual addition by IP address - Real-Time Control — Switch relays, dim lights, set RGB/RGBW colors and color temperature, open/close covers
- Live Status — WebSocket-based real-time status updates with delta merging via
NotifyStatus/NotifyFullStatus - Energy Monitoring — Power, voltage, current, and cumulative energy readouts for supported devices
- Sensor Display — Temperature, humidity, motion, flood, smoke, illuminance, and voltmeter sensors
- Firmware Management — Check for updates and trigger OTA firmware upgrades across all devices from a single view
- Schedules — List, create, and delete device schedules
- Authentication — SHA-256 Digest auth (RFC 7616) for password-protected devices
- Multi-Language UI — English, German, French, Spanish, Chinese (Simplified), Japanese
| Layer | Technology |
|---|---|
| App framework | Tauri v2 |
| Package manager | Bun |
| Frontend | React 19 + TypeScript 5 |
| UI | Mantine v9 + Tabler Icons v3 |
| Routing | TanStack Router v1 (file-based, hash history) |
| State | Zustand v5 + TanStack Query v5 |
| Persistence | tauri-plugin-store v2 |
| HTTP to devices | tauri-plugin-http v2 |
| WebSocket | tauri-plugin-websocket v2 |
| mDNS discovery | Custom Rust command (mdns-sd crate) |
| Subnet scan | Custom Rust command (Tokio async TCP) |
| i18n | react-i18next + i18next v26 |
| Linting / Formatting | Biome |
| Tests | Vitest + React Testing Library |
- Bun (package manager and runtime)
- Rust (for the Tauri backend)
- Tauri prerequisites for your target platform
bun installbun run tauri devThis starts Vite on localhost:1420 and opens the Tauri desktop window. Hot-module replacement is enabled.
bun run tauri buildProduces a native installer or app bundle in src-tauri/target/release/bundle/.
src/
├── routes/ TanStack Router file-based routes
├── components/ React components
│ ├── layout/ AppShell, BottomNav, SidebarNav
│ ├── devices/ DeviceCard, controls/*, sensors/*, energy/*, info/*
│ ├── discovery/ DiscoveryProgress, ManualAddForm, FoundDevicesList
│ ├── firmware/ FirmwareTable, FirmwareDeviceCard
│ └── common/ ErrorAlert, ConfirmModal, AppLoader
├── services/ shellyClient, wsManager, discovery, i18n
├── store/ deviceStore, wsStatusStore, appStore (Zustand)
├── hooks/ Custom React hooks (useDeviceStatus, useDeviceControl, …)
├── types/ TypeScript interfaces
├── utils/ auth, rpc, formatters, deviceTypeMap, firmware
└── locales/ Translation JSON files (en, de, fr, es, zh, ja)
src-tauri/
├── src/lib.rs All Rust: discover_mdns, scan_subnet commands + plugin registration
├── capabilities/ Tauri v2 permissions
└── tauri.conf.json
| Command | Description |
|---|---|
bun run dev |
Start Vite dev server only |
bun run build |
Build frontend |
bun run tauri dev |
Start full app in dev mode |
bun run tauri build |
Build production app |
bun run test |
Run all tests once |
bun run test:watch |
Run tests in watch mode |
bun run test:coverage |
Run tests with coverage report |
bun run lint |
Lint with Biome |
bun run format |
Format with Biome |
bun run check |
Type-check with tsc |
- Never use
window.fetchfor device requests — use@tauri-apps/plugin-http. Browser fetch cannot reach LAN addresses on iOS/Android. - Never edit
src/routeTree.gen.ts— it is auto-generated by the TanStack Router Vite plugin. - All user-visible text must go through
useTranslationand live insrc/locales/en/*.json. - Components should stay under ~120 lines. Split larger components into sub-components.
- Tests are required for every new service or utility.
All Shelly Gen 2/3/4 devices are accessed via JSON-RPC 2.0:
- HTTP — one-shot requests via
POST /rpcusing@tauri-apps/plugin-http - WebSocket — persistent connection to
ws://<device-ip>/rpcfor real-time push notifications
Authentication uses SHA-256 Digest (RFC 7616), implemented in src/utils/auth.ts. Shelly.GetDeviceInfo is always exempt from auth.
- Zustand stores (
deviceStore,wsStatusStore,appStore) hold client-side state and persist to disk viatauri-plugin-store. - TanStack Query manages server state (device status, config, info) with query key hierarchy
['device', deviceId, 'status'].
| Method | Implementation |
|---|---|
| mDNS | Rust discover_mdns command — browses _shelly._tcp.local. and _http._tcp.local. |
| Subnet scan | Rust scan_subnet command — async TCP connect across a CIDR range (max /19) |
| Manual | Frontend validates IP with GET /shelly before adding |
Translation files live in src/locales/<lang>/ across four namespaces: common, devices, discovery, settings.
To add a new language:
- Copy
src/locales/en/tosrc/locales/<code>/and translate all values - Add the code to
supportedLngsinsrc/services/i18n.ts - Add an entry to
SUPPORTED_LOCALESinsrc/components/settings/LanguageSelect.tsx - Add the native language name under
languageinsettings.json
This project does not currently have a license. All rights reserved.