Lightweight HTTP server - static file server for edge computing
npm install freelang-http-serverLightweight HTTP server - Static file server for edge computing and embedded systems.
Ultra-lightweight web server optimized for:
- Edge Computing - IoT, Raspberry Pi, embedded systems
- Static Content - HTML, CSS, JS, assets
- Development - Quick local testing
- Containers - Minimal footprint (0.6MB)
✅ Extremely Fast (4ms startup vs 120ms+ for Node.js)
✅ Minimal Memory (~500KB vs 50MB+ for Node.js)
✅ Concurrent Connections - Multi-threaded pool
✅ Security - Directory traversal protection
✅ HTTP/1.1 Compliant - Proper headers
✅ MIME Detection - Auto content-type
``bashStart on default port 8080
freelang-http-server
Command-Line Options
| Option | Default | Description |
|--------|---------|-------------|
|
-p, --port | 8080 | Listen port |
| -d, --dir | . | Root directory |
| -b, --bind | 0.0.0.0 | Bind address |
| -t, --threads | 4 | Worker threads |Performance
Startup Time:
- freelang-http-server: 4ms
- Node.js: 120ms (30x slower)
- Python: 95ms (24x slower)
Memory Usage:
- freelang-http-server: 0.6MB
- Node.js: 50MB (83x larger)
Concurrent Requests: Handles 10K connections with 4 threads
Installation
`bash
npm install -g freelang-http-server
`Examples
`bash
Documentation server
freelang-http-server -d ./docs -p 8080Docker
docker run -p 8080:8080 -v ./public:/data freelang-http-server -d /data
`Security
- Path traversal protection (
..` detection)MIT License - See LICENSE file
Track B Phase 2 Project | 30x faster than Node.js Express