Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, scoop 安装 static-web-server

查看 static-web-server 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install static-web-server

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#static-web-server

nixpkgs package indexes · pkgs/by-name/st/static-web-server/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/static-web-server

Scoop official bucket manifest trees · bucket/static-web-server.json · 来源: api.github.com

概览

软件包摘要

High-performance and asynchronous web server for static files-serving

命令和别名

  • static-web-server

历史

项目历史与用法

Static Web Server is a Rust command-line HTTP server for serving static files and assets. In package-manager culture it belongs to the small, single-purpose server family: a binary that can be installed quickly, pointed at a directory, and used for local previews, containers, CI jobs, or simple production static hosting.

项目历史

The upstream repository was created in September 2019 and the project describes itself as a cross-platform, high-performance asynchronous static-file server. Its README emphasizes a tiny production-ready server built on Rust, Hyper, and Tokio, with HTTP/1, HTTP/2, TLS, compression, directory listings, cache headers, CORS, and other deployment-oriented features.

The project moved beyond a local preview utility by publishing release binaries, Docker images, a crates.io package, and official documentation. The v2 series is documented as the stable line while the main branch README identifies an upcoming v3 as still in development.

采用历史

The input package metadata lists Static Web Server in Homebrew, Nix, and Scoop, which places it in the cross-platform CLI packaging set used by developers on macOS, Linux, and Windows. The official README also highlights prebuilt binaries, Docker images, crates.io, docs.rs, and support for Linux, macOS, Windows, FreeBSD, NetBSD, Android, Docker, and WebAssembly.

Its adoption pattern is typical for Rust infrastructure CLIs: package managers provide the executable for day-to-day use, while Docker and static release binaries cover container and server deployments.

使用方式

Common usage is to install the `static-web-server` executable and serve a directory of static content. Configuration can be supplied through command-line flags, environment variables, or a TOML file, making the tool convenient both for one-off local serving and repeatable deployment.

为什么软件包爱好者会关心

Package maintainers care about Static Web Server because it is a modern replacement for ad hoc `python -m http.server` style workflows when users need compression, TLS, headers, logging, Docker images, and static binaries without bringing in a full application server.

Its value in package indexes comes from being a small executable with a large practical surface: easy to bottle or cache, useful in CI, and relevant to web projects that only need to ship files.

时间线

  • 2019: Upstream GitHub repository created.
  • 2019: Early v1 release series published on GitHub.
  • 2026: Official downloads page listed v2.43.0 with release binaries for multiple platforms.

Related projects

  • Related tools include other static-file servers and development preview servers, while the implementation is tied to the Rust Hyper and Tokio ecosystem.

安全态势

风险级别:blue

broad file, network, media, or database tool signal.

风险分类器

blue 风险 · 中 置信度 · tool

原因

  • broad file, network, media, or database tool signal

信号

  • text:sync,server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./sws.toml
Windows
.\sws.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
static-web-servercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.43.0
管理器更新时间2026-06-10
本地数据OK
上游当前
检测到的最新版本v2.43.0

https://github.com/static-web-server/static-web-server

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:static-web-server
版本2.43.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/static-web-server
主页https://static-web-server.net
仓库https://github.com/static-web-server/static-web-server
上游文档https://static-web-server.net/
许可证Apache-2.0 OR MIT
源码归档https://github.com/static-web-server/static-web-server/archive/refs/tags/v2.43.0.tar.gz
最后更新2026-06-10T22:07:37Z
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namestatic-web-server
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

static-web-server

nix profile install nixpkgs#static-web-server
  • normalized package name match
  • 匹配方式:Static Web Server
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/st/static-web-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Scoop95%

main/static-web-server

scoop install main/static-web-server
  • normalized package name match
  • 匹配方式:Static Web Server
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/static-web-server.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment