HFS (HTTP File Server) is a file-sharing server that turns your computer into a file-sharing hub with unlimited space and bandwidth. Current stable version is 3.1.1 (December 2024), with active development and frequent releases (multiple minor versions per year). Key differentiators include a virtual file system, instant ZIP downloads for large folders, real-time activity monitoring, bandwidth throttling, and a plugin system. It supports HTTPS, WebDAV (since 3.1.0), IPv6, and runs on Windows, Linux, macOS, FreeBSD, and Android. Compared to alternatives like FileZilla or Samba, HFS is lightweight, zero-configuration, and designed for temporary or permanent file sharing over HTTP/HTTPS with a web-based admin interface. It requires Node.js >=18.15.0 and is available as a binary or via npx.
npm install hfsVerified import paths — ran on the pinned version, not inferred.
Programmatically start an HFS server with custom port, root directory, and admin password using the ESM import.
Update Node.js to version 18.15.0 or later, or use HFS v2.x which supports older Node versions.
Use ESM imports (import { start } from 'hfs') or switch to dynamic import() inside CommonJS modules.Replace 'vfs' with 'virtualFileSystem' in the config object.
Run 'config localhost_admin false' in the console or set 'localhostAdmin: false' in config to require authentication from localhost.
Add exception for the HFS binary in your antivirus, or verify the checksum from GitHub releases.
Change your file extension to .mjs or use dynamic import(): const { start } = await import('hfs')Use named import: import { start } from 'hfs'Either kill the process using port 8080, or specify a different port in config (e.g., port: 3000)
No dependency data recorded yet.