2018-11-03 23:32:04 +08:00
< h1 align = "center" >
< img src = "https://user-images.githubusercontent.com/1166872/47954055-97e6cb80-dfc0-11e8-991f-230fd40481e5.png" alt = "yacd" >
< / h1 >
2018-10-20 20:34:35 +08:00
2019-01-02 23:07:12 +08:00
> Yet Another [Clash](https://github.com/Dreamacro/clash) [Dashboard](https://github.com/Dreamacro/clash-dashboard)
2018-10-21 16:01:50 +08:00
2022-03-08 10:47:18 +08:00
## Usage
2022-03-06 18:34:02 +08:00
The site [http://yacd.haishan.me ](http://yacd.haishan.me ) is served with HTTP not HTTPS is because many browsers block requests to HTTP resources from a HTTPS website. If you think it's not safe, you could just download the [zip of the gh-pages ](https://github.com/haishanh/yacd/archive/gh-pages.zip ), unzip and serve those static files with a web server(like Nginx).
2018-10-21 21:27:08 +08:00
2022-03-08 10:47:18 +08:00
**Docker image**
2022-03-06 17:32:23 +08:00
- Docker Hub [`haishanh/yacd` ](https://hub.docker.com/r/haishanh/yacd )
- GitHub Container Registry [`ghcr.io/haishanh/yacd` ](https://github.com/haishanh/yacd/pkgs/container/yacd )
2019-11-09 15:06:08 +08:00
2022-03-08 10:47:18 +08:00
**Supported URL query params**
| Param | Description |
| -------- | ---------------------------------------------------------------------------------- |
| hostname | Hostname of the clash backend API (usually the host part of `external-controller` ) |
| port | Port of the clash backend API (usually the port part of `external-controller` ) |
| secret | Clash API secret (`secret` in your config.yaml) |
| theme | UI color scheme (dark, light, auto) |
2018-10-21 18:25:50 +08:00
## Development
```sh
# install dependencies
2022-05-08 14:37:00 +08:00
# you may install pnpm with `npm i -g pnpm`
pnpm i
2018-10-21 18:25:50 +08:00
# start the dev server
2020-07-01 21:34:08 +08:00
# then go to http://127.0.0.1:3000
2022-05-08 14:37:00 +08:00
pnpm start
2018-10-21 18:25:50 +08:00
2020-07-01 21:34:08 +08:00
# build optimized assets
# ready to deploy assets will be in the directory `public`
2022-05-08 14:37:00 +08:00
pnpm build
2018-10-21 18:25:50 +08:00
```