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.1.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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ht_serve-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 09cf5edd1cfb3b06d7f959b203420aec90ed273e9185af2418778d7d90660649
MD5 0811a9847e74770655b8f629d664e162
BLAKE2b-256 5bdc56dd1470e490a8c8487c9f2415fb336cb2e7153b6f024546185d020801c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ht_serve-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52c5a2a9a2d2aa014de6465adbcb570173b092122268e4328d102d572782cb1f
MD5 a7c6c6c49d4c02c89a5ad8b95c544591
BLAKE2b-256 a5ebe26c0d67772e406d66621133cfe1e68a0628edd87a0213b6ce49cdfa9826

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