MCPcopy
hub / github.com/jonssonyan/h-ui

github.com/jonssonyan/h-ui @v0.0.23 sqlite

repository ↗ · DeepWiki ↗ · release v0.0.23 ↗
422 symbols 1,108 edges 121 files 10 documented · 2%
README

H UI

H UI

English / 简体中文

Just the panel for Hysteria2

License: GPL-3.0 GitHub stars GitHub forks GitHub release Docker pulls

cover

Features

  • Lightweight, low resource usage, easy to deploy
  • Monitor system status and Hysteria2 status
  • Limit user traffic, user online status, force users to log off, number of online users, reset user traffic
  • Limit the number of users' online devices at the same time, the number of online devices
  • User subscription link, node URL, import and export users
  • Managing Hysteria2 configurations and Hysteria2 versions, port hopping
  • Change the Web port, modify the Hysteria2 traffic multiplier
  • Telegram notification
  • View, import, and export system logs and Hysteria2 logs
  • I18n: English, 简体中文
  • Page adaptation, support night mode, custom page themes
  • More features waiting for you to discover

Recommended OS

OS: CentOS 8+/Ubuntu 20+/Debian 11+

CPU: x86_64/amd64 arm64/aarch64

Memory: ≥ 256MB

Deployment

Quick Install (Recommended)

Install Latest Version

bash <(curl -fsSL https://raw.githubusercontent.com/jonssonyan/h-ui/main/install.sh)

Install Custom Version

bash <(curl -fsSL https://raw.githubusercontent.com/jonssonyan/h-ui/main/install.sh) v0.0.1

systemd

Executable files: https://github.com/jonssonyan/h-ui/releases

mkdir -p /usr/local/h-ui/
curl -fsSL https://github.com/jonssonyan/h-ui/releases/latest/download/h-ui-linux-amd64 -o /usr/local/h-ui/h-ui && chmod +x /usr/local/h-ui/h-ui
curl -fsSL https://raw.githubusercontent.com/jonssonyan/h-ui/main/h-ui.service -o /etc/systemd/system/h-ui.service
# Custom web port, default is 8081
# sed -i "s|^ExecStart=.*|ExecStart=/usr/local/h-ui/h-ui -p 8081|" "/etc/systemd/system/h-ui.service"
systemctl daemon-reload
systemctl enable h-ui
systemctl restart h-ui

Uninstall

systemctl stop h-ui
rm -rf /etc/systemd/system/h-ui.service /usr/local/h-ui/

Docker

  1. Install Docker

https://docs.docker.com/engine/install/

bash bash <(curl -fsSL https://get.docker.com)

  1. Start a container

```bash docker pull jonssonyan/h-ui

docker run -d --cap-add=NET_ADMIN \ --name h-ui --restart always \ --network=host \ -v /h-ui/bin:/h-ui/bin \ -v /h-ui/data:/h-ui/data \ -v /h-ui/export:/h-ui/export \ -v /h-ui/logs:/h-ui/logs \ jonssonyan/h-ui ```

Custom web port, default is 8081

bash docker run -d --cap-add=NET_ADMIN \ --name h-ui --restart always \ --network=host \ -v /h-ui/bin:/h-ui/bin \ -v /h-ui/data:/h-ui/data \ -v /h-ui/export:/h-ui/export \ -v /h-ui/logs:/h-ui/logs \ jonssonyan/h-ui \ ./h-ui -p 8081

Set the time zone, default is Asia/Shanghai

bash docker run -d --cap-add=NET_ADMIN \ --name h-ui --restart always \ --network=host \ -e TZ=Asia/Shanghai \ -v /h-ui/bin:/h-ui/bin \ -v /h-ui/data:/h-ui/data \ -v /h-ui/export:/h-ui/export \ -v /h-ui/logs:/h-ui/logs \ jonssonyan/h-ui

Uninstall

docker rm -f h-ui
docker rmi jonssonyan/h-ui
rm -rf /h-ui

Default Installation Information

  • Panel Port: 8081
  • SSH local forwarded port: 8082

Automatic Installation (install.sh):

  • Login Username/Password: Random 6 characters
  • Connection Password: {Login Username}.{Login Password}

Manual Installation:

  • Login Username/Password: sysadmin/sysadmin
  • Connection Password: sysadmin.sysadmin

Note: Only the system administrator can log in.

System Upgrade

Export the user, system configuration, and Hysteria2 configuration in the management background, redeploy the latest version of h-ui, and import the data into the management background after the deployment is complete.

FAQ

English > FAQ

Performance Optimization

Client

https://v2.hysteria.network/docs/getting-started/3rd-party-apps/

Development

Go >= 1.20, Node.js >= 18.12.0

  • frontend

bash cd frontend pnpm install npm run dev

  • backend

bash go run main.go

Build

  • frontend

bash npm run build:prod

  • backend

Windows: build.bat

Mac/Linux: build.sh

Other

Telegram Channel: https://t.me/jonssonyan_channel

You can subscribe to my channel on YouTube: https://www.youtube.com/@jonssonyan

Contributors

Thanks to everyone who contributed to this project.

Star History

Star History Chart

License

GPL-3.0

Extension points exported contracts — how you extend this code

DefaultSettings (Interface)
(no doc)
frontend/src/settings.ts
IdDto (Interface)
(no doc)
frontend/src/types/global.d.ts
BaseDto (Interface)
(no doc)
frontend/src/types/global.d.ts
PageVo (Interface)
(no doc)
frontend/src/types/global.d.ts
GlobalComponents (Interface)
(no doc)
frontend/src/types/components.d.ts

Core symbols most depended-on inside this repo

Fail
called by 111
model/vo/result.go
Success
called by 32
model/vo/result.go
GetConfig
called by 22
dao/config.go
validateField
called by 20
controller/validator.go
Exists
called by 17
util/file.go
Exec
called by 13
util/linux.go
GetHysteria2Config
called by 10
service/config.go
Hysteria2IsRunning
called by 8
service/hysteria2.go

Shape

Function 294
Struct 76
Interface 40
Method 12

Languages

Go68%
TypeScript32%

Modules by API surface

model/bo/hysteria2.go29 symbols
frontend/src/store/modules/tagsView.ts16 symbols
service/telegram.go14 symbols
service/forward.go12 symbols
service/account.go12 symbols
frontend/src/api/config/index.ts12 symbols
frontend/src/api/account/index.ts12 symbols
controller/config.go12 symbols
controller/account.go12 symbols
service/config.go11 symbols
proxy/process.go9 symbols
frontend/src/api/config/types.ts9 symbols

Dependencies from manifests, versioned

github.com/bytedance/sonicv1.9.1 · 1×
github.com/chenzhuoyu/base64xv0.0.0-2022111506244 · 1×
github.com/davecgh/go-spewv1.1.2-0.20180830191 · 1×
github.com/didip/tollboothv4.0.2+incompatible · 1×
github.com/gin-contrib/ssev0.1.0 · 1×
github.com/glebarez/go-sqlitev1.21.2 · 1×
github.com/glebarez/sqlitev1.11.0 · 1×
github.com/go-ole/go-olev1.2.6 · 1×
github.com/go-playground/localesv0.14.1 · 1×

For agents

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

⬇ download graph artifact