CLI Tool Utilities & Power Tools ★ 14,239 stars on GitHub

http-server

Launch a local web server instantly from any folder to test pages and share files with ease. No complicated setup required.

Get Command-Line Tool →
Command-Line Utility (No Graphical Interface): This program runs inside your system terminal or command prompt rather than opening a desktop window. Follow the official installation instructions below.

Guide and Overview

What it does in plain English

This tool lets you turn any folder on your computer into a live website or file storage area with a single command. It acts as a bridge so you can view web pages locally in your browser just like visitors would see them online.

Who it’s for

  • Web designers who need to preview their HTML and CSS pages locally before putting them on the live internet.
  • Students and teachers sharing course materials or coding homework within a local network.
  • Developers looking for a quick, lightweight way to test web applications without heavy server software.

Key features

  • Zero-configuration design that starts serving your files immediately out of the box.
  • Built-in support for security features like password protection, custom headers, and secure HTTPS connections.
  • Convenient caching controls and timeout adjustments to fine-tune your testing environment.

How to install (Download)

You can grab and run this utility instantly using Node.js without a permanent installation by opening your terminal and typing npx http-server. Alternatively, install it globally by typing npm install --global http-server or via Homebrew with brew install http-server.

Pros and Cons

  • Pros: Completely free and open-source, extremely lightweight, works instantly with zero setup files required.
  • Cons: Runs directly from the command line, which may feel intimidating if you prefer visual buttons and windows.

Optional commercial services unrelated to the open-source developer. Clicking an #ad link helps fund HubHum at no extra cost to you.

  • ★ Top Recommended — Systeme.io: Free-forever all-in-one platform to build landing pages, newsletters, and automated workflows with zero monthly fees — Activate Systeme.io → (#ad)
  • AdGuard: Block intrusive ads, tracking scripts, and phishing domains system-wide across all browsers and desktop apps — AdGuard (#ad)
  • InterServer: Launch and host self-hosted web apps 24/7 on managed Linux cloud VPS servers starting at $3/month — InterServer (#ad)

Official Source & Credits: Official Source / Credits

Affiliate transparency (#ad): Some links on this page are affiliate links. If you choose to activate a service through them, we may earn a commission at no extra cost to you.

Your Saved Favorites

Your favorite apps are saved right here in this browser.


Sign in with one click to link your GitHub profile and sync favorites.