Decision signals

A small install with useful depth.

HTTP + HTTPSNative transports
0Runtime dependencies
CLI · CJS · ESMSupported entry styles
Node 22.12+Supported runtime
NeedWhat node-http-server providesInspect it
Compact supply chainZero runtime dependencies and one exact owner-maintained development tool.Dependency and verification contract
Direct interfacesA global or npx CLI, named Server instances, and the original singleton in CommonJS and ESM.Import matrix
Native HTTP + HTTPSHTTP-only, HTTPS-only, and paired listeners through Node's built-in networking modules.HTTPS modes and examples
Modern static deliveryStreaming, HEAD, ranges, conditional requests, cache controls, Brotli/gzip, SPA fallback, and MIME controls across both transports.Static-server settings
Explicit boundariesLocalhost binding, root containment, dotfile policy, Host routing, request limits, timeouts, and HTTPS.Operations and security
Application hooksRaw-request, parsed-request, before-serve, after-serve, custom logging, and deliberate file serving.Hook contract
Measured deliveryFocused behavior suites, per-file native V8 coverage, package smoke checks, and reproducible benchmarks.Performance evidence

Project fit

Move from local files to an embedded server.

Local and CI assets

Serve a build directory with one command, an explicit root, and an OS-selected port when needed.

CLI task recipes →

Static applications

Enable SPA fallback, compression, caching, extension policy, and request logs through one Config object.

SPA example →

Embedded tooling

Create isolated server instances, intercept requests, generate responses, and close every listener through a Promise.

Lifecycle example →

Controlled exposure

Choose the listen interface, accepted Host values, roots, HTTPS material, request limits, and timeouts.

Configuration reference →

Engineering evidence

Inspect the behavior and the measurements.

EvidenceWhat it answersSource
Focused test setsWhich unit, functional, integration, and regression contracts currently pass?Test inventory
Native V8 coverageWhich shipped files meet line, function, branch, and statement gates?Coverage method
Core comparisonHow does the current release compare with 9.0.2 on targeted hot paths?Core results
Operational benchmarkHow does the server behave on this machine across real public request paths?Live benchmark