You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ht-serve

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ht-serve

A secure HTTPS live reload server for front-end prototyping and dashboard development

0.0.3
Source
pipPyPI
Maintainers
1

HT-Serve

License: MIT

HT-Serve is a secure HTTPS file server with live reload support, built for UI/dashboard prototyping. It enables frontend developers to test real-time changes under TLS with zero configuration, WebSocket-triggered reloads, and a CLI interface for orchestration.

🔧 Features

  • 🔒 Auto HTTPS via self-signed certificates (or use custom certs)
  • 🔁 WebSocket-based live reload on file changes
  • 🧩 Automatic HTML injection of live-reload script
  • 🧪 Built-in test UI (ht-serve reset-demo)
  • 🔍 Health check endpoint at /healthz
  • 🧠 CLI interface with serve, check, and reset-demo
  • 🧾 Production-grade logging and debug mode (HT_DEBUG=1)

📦 Installation

pip install .

🚀 Usage

Launch the development server:

ht-serve serve --open-browser

Check if HTTPS/WebSocket ports are available:

ht-serve check

Reset and regenerate a demo UI site:

ht-serve reset-demo

⚙️ Environment Variables

VariableDescription
DASH_CERT_PATHFull path to the HTTPS certificate (.pem)
DASH_KEY_PATHFull path to the HTTPS private key (.key)
DASH_PORTPort to serve HTTPS on (default: 443; fallback: 8443)
HT_DEBUGSet to 1 to enable verbose logging and file event tracking
HT_FORCE_CERTSet to 1 to regenerate the TLS cert/key on next launch

📁 Directory Structure

HT-Serve/
├── ht_serve/
│   ├── cli.py               # Typer-based CLI commands
│   ├── server.py            # Core HTTPS + WebSocket server logic
│   ├── templates/
│   │   └── inject.js        # Injected live-reload script
│   └── testsite/            # Sample demo UI assets
├── pyproject.toml
├── requirements.txt
├── setup.py
└── README.md

🪪 License

MIT © HermiTech Labs

Keywords

https

FAQs

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