[Feature Request] Clash widget (mihomo / Clash Meta, OpenClash, etc.) #6968
Unanswered
mdj2812
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Homepage currently has no widget for Clash-compatible proxy cores. mihomo (formerly Clash Meta) is the core used by OpenClash on OpenWrt and many other router and self-hosted setups. It exposes a RESTful API via its external controller (port
9090by default), documented at https://wiki.metacubex.one/api/.I'd like a read-only service widget that shows:
GET /configs(mode)GET /proxies(nowof a Selector / URLTest / Fallback group; defaults toGLOBAL, configurable with agroupoption)GET /connections(uploadTotal/downloadTotal)Example configuration:
Other
clashbecause it works with any Clash-compatible core — per the MetaCubeX naming policy, downstream projects unrelated to MetaCubeX must not use "mihomo" in their name.GET /configs→{"port": 7890, "mode": "rule", ...}GET /proxies→{"proxies": {"GLOBAL": {"type": "Selector", "now": "DIRECT", "history": [{"delay": 123}]}, ...}}GET /connections→{"connections": [...], "uploadTotal": 123456789, "downloadTotal": 987654321}GET /version→{"meta": true, "version": "v1.18.0"}All reactions