MCPcopy Index your code
hub / github.com/ctaoist/clashweblite

github.com/ctaoist/clashweblite @v1.0.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.8 ↗ · + Follow
3,430 symbols 10,632 edges 32 files 27 documented · 1% updated 3y agov1.0.8 · 2023-05-29★ 525 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ClashWebLite

ClashWebLite is a cross-platform lightweighted wrapper for Clash Premium on Desktop environment.

build GitHub license

http://127.0.0.1:9090/ui:

Features

  • Supported on Windows, MacOS, and Linux
  • Startup after operating-system reboot
  • Set system proxy
  • Update Clash Premium(using system proxy)
  • Change the WebUI: yacd/razord

Note: The TUN mode of the Clash Premium need root or administrator privilege.

Usage

  1. Download ClashWebLite from Releases
  2. Edit clash config.yaml
  3. Run ClashWebLite

With First running, the Clash Premium need to download Country.mmdb, ~6Mb.

Dependencies

Linux

  • libayatana-appindicator

Update WebUI

You can manually download the webui zip file or by git:

  1. Stop the clash
  2. cd path/clashweb_folder/App/ui
  3. delete what you want to update
  4. git clone -b gh-pages --depth=1 https://github.com/Dreamacro/clash-dashboard.git razord: update the razord
  5. or git clone -b gh-pages --depth=1 https://github.com/haishanh/yacd.git yacd: update the yacd
  6. Start the clash

Install

Pre-compiled

Releases

From source code

After building the app, you need to download the latest clash premium into ./App/ folder.

For Linux, building apps requires gcc as well as the gtk3 and libayatana-appindicator3 development headers to be installed. For Debian or Ubuntu, you may install these using:

sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev

On Linux Mint, libxapp-dev is also required.

For Windows, to avoid opening a console at application startup, use these compile flags:

go build -ldflags "-H=windowsgui"

For MacOS, you will need to create an application bundle to wrap the binary; simply folders with the following minimal structure and assets:

SystrayApp.app/
  Contents/
    Info.plist
    MacOS/
      go-executable
    Resources/
      SystrayApp.icns

When running as an app bundle, you may want to add one or both of the following to your Info.plist:


    <key>NSHighResolutionCapable</key>
    <string>True</string>


    <key>LSUIElement</key>
    <string>1</string>

Credits

  • https://github.com/Dreamacro/clash
  • https://github.com/Dreamacro/clash-dashboard
  • https://github.com/haishanh/yacd
  • https://github.com/getlantern/systray
  • https://github.com/gen2brain/beeep

License

This software is released under the GPL3.0 license.

Core symbols most depended-on inside this repo

get
called by 249
App/ui/yacd/assets/vendor.38e754a4.js
set
called by 201
App/ui/yacd/assets/vendor.38e754a4.js
map
called by 188
App/ui/yacd/assets/vendor.38e754a4.js
keys
called by 140
App/ui/yacd/assets/vendor.38e754a4.js
has
called by 137
App/ui/yacd/assets/vendor.38e754a4.js
g
called by 104
App/ui/yacd/assets/index.fe1062b5.js
u
called by 95
App/ui/yacd/assets/Connections.52bc9670.js
t
called by 93
App/ui/razord/assets/vendor.91f359a7.js

Shape

Function 3,040
Method 275
Class 113
Struct 2

Languages

TypeScript99%
Go1%

Modules by API surface

App/ui/yacd/assets/vendor.38e754a4.js1,063 symbols
App/ui/razord/assets/vendor.91f359a7.js817 symbols
App/ui/yacd/assets/index.fe1062b5.js434 symbols
App/ui/yacd/assets/Connections.52bc9670.js192 symbols
App/ui/yacd/assets/index.ee5bc09a.js169 symbols
App/ui/yacd/sw.js157 symbols
App/ui/razord/assets/index.44e2a61b.js145 symbols
App/ui/yacd/assets/Chart.min.44f6c6c6.js114 symbols
App/ui/razord/workbox-4ee7f24a.js94 symbols
App/ui/yacd/assets/Proxies.71af777a.js55 symbols
App/ui/yacd/assets/index.9233837d.js24 symbols
App/ui/yacd/assets/index.esm.edbe839b.js22 symbols

For agents

$ claude mcp add clashweblite \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page