@astralyn/sash

中文文档
0.5.3发布于 2026/11/06MITES Module零依赖构建来源已验证近 30 天下载 2038

A network toolbox for developers, learning, and research, with a command-line companion and built-in web dashboard.

原始使用文档
文档目录7 节
  1. Features
  2. Requirements
  3. Install
  4. Quick Start
  5. Documentation
  6. Disclaimer
  7. Upstream Components

Sash

A lightweight command-line companion and web dashboard for a rule-based network core.

Sash is a network toolbox for developers, learning, and research. It installs, runs, and maintains a rule-based network core on your machine: local HTTP/SOCKS endpoints, rule-driven traffic routing, remote profile management, and live traffic inspection through a built-in web dashboard.

Features

  • Background supervisor — one Sash process per data folder on port 19090, managing the Core lifecycle, recovery and reverse proxying
  • Zero-download web dashboard — built-in Vue 3 dashboard bundled with the package at http://127.0.0.1:19090/ui/
  • Save and reload — selected profile changes reload a healthy Core in place; proxy port and LAN changes wait for an explicit Apply
  • Windows desktop integration — system proxy with snapshot and conditional restore, plus start at login (sash auto)
  • Verified updates — integrity-checked Core downloads with rollback (sash update); sash upgrade installs a new Sash through npm and restarts it
  • Diagnostics — sash doctor [--json] checks installation, state, ports and Windows integration, with repair advice
  • Credential hygiene — child processes run with scrubbed environments; loopback traffic never traverses proxy dispatchers

Requirements

  • Node.js 24 or newer
  • Windows 10+ — x64 and arm64

Core lifecycle and local endpoints are portable to macOS and Linux; system-proxy and login-startup integration are Windows-only.

Install

npm install -g @astralyn/sash
sash --help

From a source checkout instead:

npm ci
npm run build
npm link
sash --help

npm link installs the locally built checkout. Remove it with npm unlink -g @astralyn/sash when finished.

Quick Start

sash start                 # downloads Core if needed, launches Sash and Core
sash web                   # open and authorize the web dashboard
sash status                # runtime state, endpoints, and proxy status
sash stop                  # restores prior proxy state, stops Core and Sash

The dashboard also works while Core is stopped: edits are saved first, then Apply configuration (or sash restart) restarts Core with them. See the User & Operations Guide for all commands, updates and troubleshooting, and Automatic Startup for sash auto on.

Documentation

Disclaimer

Sash is a network tool created for learning, research, and development debugging. It runs on servers and profiles that you source and configure yourself. You are responsible for how you use it and for complying with the laws and regulations of your jurisdiction.

Upstream Components

Sash is MIT-licensed open source and an independent project. It does not bundle the upstream Core in this repository or npm package; at runtime it downloads an unmodified release artifact from MetaCubeX/mihomo. The upstream working source branch is Meta; licensing is determined by the selected release and its accompanying notices. Sash's currently tested Core contract is v1.19.30, whose source tag carries the GNU General Public License v3.0.

The downloaded component remains the work of its respective authors; all credit belongs upstream. See Third-Party Notices for bundled dashboard notices and release-specific Core attribution.

版本与发布记录

@astralyn/sash 共发布 39 个版本,首次发布于 2026/09/05;过去 12 个月发布了 39 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.5.3latest2026/11/061 天前
0.5.22026/11/052 天前
0.5.12026/11/052 天前
0.5.02026/11/052 天前
0.4.22026/11/052 天前
0.4.12026/11/025 天前

关于 @astralyn/sash 的常见问题

@astralyn/sash 是什么?

A network toolbox for developers, learning, and research, with a command-line companion and built-in web dashboard.

如何安装 @astralyn/sash?

在项目目录运行 npm install @astralyn/sash,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 sash,可以用 npx sash 直接运行。

@astralyn/sash 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/astralyn__sash 是否存在。

@astralyn/sash 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@astralyn/sash 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@astralyn/sash 可以商用吗?

@astralyn/sash 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@astralyn/sash 的下载量有多少?

根据 npm 官方下载统计,@astralyn/sash 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,038 次,日均约 68 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@astralyn/sash 还在维护吗?

最新版本 0.5.3 发布于 2026/11/06(1 天前);至今共发布 39 个版本,其中过去 12 个月发布了 39 个;首次发布于 2026/09/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。