Extend the bat command-line viewer with scripts for searching files and reading manual pages.
http-server
Serve static files from the command line with http-server, a zero-configuration HTTP server.

About http-server
http-server is a zero-configuration, command-line HTTP server for serving static files. The project describes it as usable for production usage as well as testing, local development and learning.
It serves a specified path, defaulting to ./public if that folder exists and ./ otherwise, on port 8080 with caching enabled by default. It can be run on-demand with npx, installed globally via npm or Homebrew, used as an npm dependency, or built as a Docker image since no public image is provided.
Key features
- Serve static files from a specified local path
- Run on-demand with npx without prior install
- Serve precompressed gzip and brotli files when enabled
- Proxy locally unresolved requests to another URL
- Enable HTTPS with custom cert and key files
- Configure port, address, cache time and headers
- Zero-configuration command-line operation for static files
- Multiple install options including npx, npm and Homebrew
- Configurable caching, compression, proxying and TLS options
- No public Docker image is provided; image must be built locally
http-server at a glance
- Category
- Development › Web Development
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
http-server alternatives
Tools and sites you could use instead, ranked by how closely they match.
Expose a local TCP service through a remote server with Bore, a command-line tunneling tool.
Serve websites with Caddy, an HTTP server that supports automatic HTTPS.
Generate static sites from HTML, Markdown, JavaScript, and other templates with Eleventy.
Build static sites with Barely, a lightweight generator written in Python.
Run PHP code concurrently by forking work into child processes with the Spatie Fork package.
Popular in Web Development
Well-known listings from the same topic.
http-server FAQ
How do I run http-server without installing it first?
Which folder is served by default?
How do I disable caching?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












