dhttpd
4.3.0, released 8 months ago by kevmoo.com
A simple static HTTP file server for local directory hosting
What it does
Provides a command-line static HTTP file server to easily serve any local directory, inspired by Python's SimpleHTTPServer. It supports custom ports, hosts, response headers, directory listing fallback, and HTTPS configuration.
AI-written summary of version 4.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to quickly serve a local web build during development
- You want a simple CLI utility to share local static files over HTTP or HTTPS
Skip it when
- You need a production-grade web server with complex routing and application logic
- You are writing an embedded Dart app that needs programmatic HTTP serving rather than a CLI tool
Strengths
- Easy installation and global execution via dart pub global
- Supports custom headers, file listing, and HTTPS configuration
Weaknesses
- Designed primarily as a CLI developer tool rather than a library for embedding in production apps
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 4
Install globally using `dart pub global activate dhttpd`
dart pub global activate dhttpd
dhttpd --path build/web/Alternatives
Packages that do the same job and could replace dhttpd.
- relic_io
dart:io adapter for Relic web server.
81Compare - shelf_proxy
A shelf handler for proxying HTTP requests to another server.
86Compare - relic_core
Core framework for Relic web server
82Compare - angel3_framework
A high‑powered Dart HTTP server framework with DI, routing and extensible plugins.
79Compare
Works with
Packages commonly used together with dhttpd: ones it builds on, ones built on it, and its own family.