# Install http-server with Homebrew, Nix

Simple zero-configuration command-line HTTP server. Version 14.1.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:http-server
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install http-server
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#http-server
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ht/http-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:http-server
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/http-server>
- **Version:** 14.1.1
- **Source summary:** Simple zero-configuration command-line HTTP server
- **Homepage:** <https://github.com/http-party/http-server>
- **Repository:** <https://github.com/http-party/http-server>
- **Upstream docs:** <https://github.com/http-party/http-server#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- http-server (cli)
- http-server (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 14.1.1
- Local data: ok
- Upstream repository: https://github.com/http-party/http-server
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

http-server is a Node.js command-line static HTTP server. Its README describes a zero-configuration server that is simple enough for testing, local development, and learning, but also includes practical options for caching, directory listings, proxying, TLS, headers, and authentication.

### Project history

The GitHub repository was created in June 2011, and npm registry metadata records the package beginning the same day with version 0.1.0. The project became one of the standard Node-era answers to 'serve this folder over localhost' before npx made one-off CLI execution common.

The package evolved from a tiny static-file helper into a more featureful local server. The README documents installation through npx, global npm, Homebrew, dependency installation, and Docker builds, while release metadata shows the project reaching the 14.x line in 2021 and 2022.

### Adoption history

http-server's adoption is visible across npm, GitHub, and Homebrew: the official README includes npm and Homebrew badges, GitHub displays a large star/fork footprint and many dependents, and the input metadata records Homebrew and Nix packaging. Its popularity comes from needing no application framework when all a developer wants is static files over HTTP.

### How it is used

Common use is `npx http-server` or a global `http-server` command pointed at a directory. Options cover port and address selection, cache control, gzip and Brotli serving, CORS headers, custom headers, SPA-style proxy fallback, TLS certificates, basic authentication, robots.txt generation, and MIME overrides.

### Why package nerds care

For package nerds, http-server is a classic small CLI that became infrastructure glue. It sits at the intersection of npm's executable-bin model, frontend local development, static-site demos, and Homebrew packaging for JavaScript tools that people want outside a single Node project.

### Timeline

- 2011: The http-party/http-server repository was created on GitHub.
- 2011: The npm package was created with early 0.1.x versions.
- 2017: The GitHub release list includes the 0.10.0 release.
- 2021: The project published the 13.x and 14.0.0 release lines.
- 2022: The project published the 14.1.x release line.

### Related projects

- Related tools include Python's built-in simple HTTP server, serve, live-server, Caddy, Vite dev server workflows, and the Rust http-server package. It also uses Node and npm conventions for command distribution.

### Sources

- Official GitHub README/release metadata and npm registry metadata.


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** http-server
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** http-server-rs
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - http-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/http-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [jetty](https://www.automicvault.com/pkg/brew/jetty/) - Shares av.db curated category or tags: cli, developer-tools, http-server, web-server.
- [serve](https://www.automicvault.com/pkg/brew/serve/) - Shares av.db curated category or tags: cli, developer-tools, http-server, static-server.
- [uvicorn](https://www.automicvault.com/pkg/brew/uvicorn/) - Shares av.db curated category or tags: cli, developer-tools, web-server.
- [webify](https://www.automicvault.com/pkg/brew/webify/) - Shares av.db curated category or tags: cli, developer-tools, web-server.
- [action-docs](https://www.automicvault.com/pkg/brew/action-docs/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [chalk-cli](https://www.automicvault.com/pkg/brew/chalk-cli/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [corepack](https://www.automicvault.com/pkg/brew/corepack/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [czg](https://www.automicvault.com/pkg/brew/czg/) - Shares av.db curated category or tags: cli, developer-tools, nodejs.
- [http-server](https://www.automicvault.com/pkg/npm/http-server/) - Same normalized package name appears in another local ecosystem. Shared terms: command-line, configuration, http, http-server, line.
- [gulp-cli](https://www.automicvault.com/pkg/brew/gulp-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, line.
- [http-server](https://www.automicvault.com/pkg/npm/http-server/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/http-server.yml](https://github.com/automic-vault/db/blob/main/combined/http-server.yml)


## Sources

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