Favicon of serve

serve

Lightweight Node.js tool for serving static sites, SPAs, and files with HTTPS support, CORS headers, GZIP compression, and a clean directory listing interface.

Serve is a lightweight command-line tool that makes it effortless to host static files, single-page applications, and websites locally or across your network. Built by Vercel, it handles all the technical details you'd normally need to configure manually.

Key capabilities include:

  • HTTPS support for secure local development
  • CORS headers for cross-origin requests
  • GZIP compression to reduce file sizes automatically
  • Directory listing UI with an intuitive interface for browsing folders
  • Zero configuration - just run npx serve and you're ready
  • Flexible deployment - serve any folder or specific files
  • Middleware integration - use the core serve-handler in your own HTTP servers

Getting started takes seconds. Run npx serve in your project directory, and your files are instantly accessible. For permanent installation, use npm install --global serve. Customize behavior with a simple serve.json configuration file when needed. The tool requires Node v14 or higher and maintains a minimal footprint, making it ideal for development workflows, testing, and quick file sharing without complex setup.

Features

Config fileJSON outputScriptable

Media

Pros

4
  • Serves static files and SPAs locally.
  • Supports HTTPS, CORS, and GZIP.
  • Provides a clean directory listing interface.
  • Can be used as middleware in Node.js HTTP servers.

Related tools

Share:

Auto-fetched .

Recent releases

Similar to serve

Favicon

 

  
 
Favicon

 

  
 
Favicon