A secure HTTPS live reload server for front-end prototyping and dashboard development
Project description
HT-Serve
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, andreset-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
| Variable | Description |
|---|---|
DASH_CERT_PATH |
Full path to the HTTPS certificate (.pem) |
DASH_KEY_PATH |
Full path to the HTTPS private key (.key) |
DASH_PORT |
Port to serve HTTPS on (default: 443; fallback: 8443) |
HT_DEBUG |
Set to 1 to enable verbose logging and file event tracking |
HT_FORCE_CERT |
Set 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ht_serve-0.0.2.tar.gz.
File metadata
- Download URL: ht_serve-0.0.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3badd795a9af29fdbc1ebaf4f63b6c48513e605238f94d555a68a074a06cc8c
|
|
| MD5 |
202739cef3df5e1b0742d3bb64cb8f15
|
|
| BLAKE2b-256 |
55cf257a2dcb02e23541d5115578a4ca357864b3ccf4a32cf23d6025ac24593c
|
File details
Details for the file ht_serve-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ht_serve-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d8bbc73141a516b361eb64050d5d0f81e1e580073d76f8ee62b793c82856682
|
|
| MD5 |
4a7eec611ca4ec962d227772c5f57c57
|
|
| BLAKE2b-256 |
d417c4708f7235a88c865e751b988d1329cfdad5dc7363f81e35ad38220d0281
|