Skip to main content

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

Project description

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ht_serve-0.0.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ht_serve-0.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file ht_serve-0.0.3.tar.gz.

File metadata

  • Download URL: ht_serve-0.0.3.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

Hashes for ht_serve-0.0.3.tar.gz
Algorithm Hash digest
SHA256 247960dfcffa4d7c5ccd8af1068adb0adf80c62f320a87e6209b32a762f26eb1
MD5 223ec82fb0f2864e9067183dded9909a
BLAKE2b-256 0a7bd10d494c997474b6dd15ed848ff227192ea0a4af9d58f43111f26fef810a

See more details on using hashes here.

File details

Details for the file ht_serve-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ht_serve-0.0.3-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

Hashes for ht_serve-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cf114c3195f2fd32078aaab02f5be28f40cee770f2e8372b3c5534ca90fca6e7
MD5 987a1c71cfd9bd3e61edc2a4f5bba7b0
BLAKE2b-256 c837cf26575c01ec3157722665eb047b19efa5fdcfe9ba024ec68a5c99b643f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page