huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:weichengwu/dsh-web-control
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Manage a LAN/Tailscale-reachable dsh web instance from inside DSH: pick the bind address, start, stop, restart, copy the token URL, read the log — from a settings page or from an agent tool call.
中文文档(主文档):README.zh.md · macOS setup: docs/SETUP-MAC.zh.md (中文)
dsh web listens on 127.0.0.1 only, so nothing but the local machine can reach it. Exposing it needs two things at once: bind a concrete non-loopback IP (LAN or Tailscale), and sign in through a token URL. Doing that by hand means shell scripts, IP lookups and hand-assembled flags. This plugin does it for you.
Under the hood it runs:
dsh web --no-open --port <PORT> --host <IP> --public-url http://<IP>:<PORT>/
It invokes the dsh executable itself, not node <cli.js>: the dsh wrapper handles ELECTRON_RUN_AS_NODE and the asar-internal paths.
and parses the ready line out of the log:
dsh web: http://<IP>:<PORT>/?token=<TOKEN>
Straight from GitHub:
dsh plugin --profile desktop add github:weichengwu/dsh-web-control
Or install the prebuilt tarball from Releases:
dsh plugin --profile desktop add file:/absolute/path/to/dsh-web-control-0.1.0.tgz
Then quit and reopen DSH. macOS walkthrough: docs/SETUP-MAC.zh.md.
Pass a path, not a bare name —
dsh plugin add dsh-web-controlmakes pnpm look for an npm package and fails withERR_PNPM_FETCH_404. This plugin is not published to npm.
| Tailscale | LAN | |
|---|---|---|
| Reach | Any network with internet | Same WiFi / router |
| Encryption | WireGuard end-to-end; plain HTTP stays inside the tunnel | Plain HTTP, sniffable on the same subnet |
| Requires | Tailscale installed and logged in on both ends | Nothing |
| Good for | Reaching your Mac from a phone while away | At home / in the office |
Settings → Web 访问: pick an address (Tailscale 100.64.0.10 / LAN 192.168.1.100 / loopback), set the port (default 3080), hit 启动, then copy the URL to your phone.
Agent tools:
dsh_web_control — { action: 'status'|'start'|'stop'|'restart'|'url', host?, port? } → { running, url, bindHost, port, message }dsh_web_config — { bindHost?, port?, autoStart? } (no args = read) → { config, candidates }Config: ~/.dsh-web-control/config.json — bindHost (null = auto-detect: Tailscale, then LAN, then loopback), port (default 3080), autoStart (default false).
State files in ~/.dsh-web-control/: instance.json (pid / url / bindHost / port / startedAt), dshweb.log (child stdout+stderr), url.txt (current full URL, mode 600).
0.0.0.0 is rejected. --host must be a concrete IPv4 literal. Pick the IP you actually want to serve on.--trusted-host needed. dsh's Host fence automatically trusts the address the listener is bound to.listening on <IP> over plain HTTP; restrict this port... is a notice, not an error. It tells you HTTP is unencrypted on that interface. Over Tailscale it is encrypted by WireGuard; on a LAN it is not.Once bound to a non-loopback address, anyone who can reach that address and has the token or cookie has your machine's dsh privileges: file access, command execution, every tool. Use it only on networks you trust, never in LAN mode on public WiFi, stop it when you are done, and treat the token URL as a credential.
cd ~/Downloads/dsh-web-control/host && npm install
cd ~/Downloads/dsh-web-control && node tools/build.mjs
node tools/pack-bundle.mjs
dsh plugin --profile desktop add file:$PWD/build/dsh-web-control.tgz
Node 24, ESM, zero runtime dependencies on the host side. API contract: CONTRACT.md.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: art。