New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

httpoint

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpoint

A Node.js command-line application that serves static files from a local directory via HTTP and supports file uploads

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

HTTPoint

A lightweight Node.js command-line application that serves static files from a local directory via HTTP, with support for file uploads and directory browsing.

Features

  • 🚀 Serves static files from any directory
  • 📁 Directory browsing with file listings
  • 📤 File upload support with drag & drop interface
  • 🌐 Accessible on local network (LAN)
  • ⚙️ Configurable via environment variables or CLI arguments
  • 📝 Request logging
  • 💾 No external dependencies

Usage

Quick Start

npx httpoint

With Custom Port and Directory

npx httpoint --port 8080 --path /path/to/directory

Using Environment Variables

HTTPOINT_PORT=8080 HTTPOINT_ROOT=/var/www npx httpoint

All Options

# Command line arguments (take precedence)
npx httpoint --port 3000 --path ./public --debug --help

# Environment variables
HTTPOINT_PORT=3000
HTTPOINT_ROOT=./public

Configuration

OptionCLI ArgumentEnvironment VariableDefaultDescription
Port--port <number>HTTPOINT_PORT3000Port to listen on
Root Directory--path <directory>HTTPOINT_ROOTCurrent directoryRoot directory to serve
Debug Mode--debugN/AfalseEnable debug logging
Help--helpN/AN/AShow help information

Accessing the Server

Once running, the server will be available at:

  • Locally: http://localhost:<port>/
  • On LAN: http://<actual-ip-address>:<port>/

The server automatically detects and displays your local IP address.

Directory Listing

When accessing a directory, HTTPoint provides:

  • 📁 Browsable directory links
  • 📄 Clickable file links for download
  • 📊 File sizes
  • 🔙 Parent directory navigation
  • 📤 Upload button for file uploads (drag & drop supported)

Installation

Global Installation

npm install -g httpoint

Local Development

git clone <repository-url>
cd httpoint
npm install

Development

Running Locally

node src/serve.js [options]

Testing

# Start server in one terminal
node src/serve.js --port 3000

# Test in another terminal
curl http://localhost:3000/

Requirements

  • Node.js 14.0.0 or higher
  • No external dependencies

Author

Denis Zimin

License

MIT © 2025

Keywords

http

FAQs

Package last updated on 10 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts