Skip to main content

A lightweight, stylish local web server for static files

Project description

softserved

A lightweight, stylish local web server for serving static files from your terminal. Perfect for quick demos, prototyping, and development workflows.

Quick Start

pip install -e .
softserved

Done. Your browser opens at http://localhost:8000 and you're serving.

Why softserved?

Just a static server. No fluff. softserved is a cli-based tool for watching vanilla html/css/js projects.

Features

Clean, minimal CLI — Starts a server in one command
🎨 Multiple styling themes — default, dark, and mono options
🔄 Live reload — Auto-refresh browser when files change
Lightweight — No bloat, just Python stdlib + colorama
🌐 Auto-opens browser — (optional) Opens your default browser automatically
📁 Flexible directory serving — Serve any folder, any port

softserved demo Bye Bye softserved demo

Installation

From GitHub

git clone https://github.com/tolaoyelola/softserved.git
cd softserved
pip install -r requirements.txt
pip install -e .

Verify Installation

softserved --help

Usage

Basic Examples

# Serve current directory on port 8000
softserved

# Serve with custom port and directory
softserved -p 9001 -d ./my-site

# Enable live reload
softserved --reload

# Don't auto-open browser
softserved --no-browser

# Use dark theme for dark terminals
softserved --style dark

# No colors (mono)
softserved --style mono

# Combine options
softserved -p 8080 -d ./portfolio --reload --style dark

Available Options

Option Default Description
-p, --port 8000 Port to serve on
-d, --dir . Directory to serve
--no-browser false Don't auto-open browser
--reload false Enable live reload (requires watchdog)
--style default Terminal theme: default, dark, or mono

Requirements

Core dependencies:

  • Python 3.6+
  • colorama — for colored terminal output

Optional dependencies:

  • watchdog — for live reload functionality

Install all:

pip install -r requirements.txt

How It Works

  1. Server — Uses Python's built-in SimpleHTTPRequestHandler
  2. Styling — Colorama handles cross-platform terminal colors
  3. Live Reload — Watchdog monitors file changes and triggers browser refresh

Troubleshooting

"Port already in use"

softserved -p 8001  # Use a different port

"watchdog not installed"

pip install watchdog

Browser won't open

softserved --no-browser  # Disable auto-open
# Then manually navigate to http://localhost:8000

Stop the server

Press Ctrl+C to gracefully shut down

Contributing

Contributions welcome! Feel free to open issues or submit PRs.

License

MIT — See LICENSE file for details.

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

softserved-1.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

softserved-1.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file softserved-1.1.2.tar.gz.

File metadata

  • Download URL: softserved-1.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for softserved-1.1.2.tar.gz
Algorithm Hash digest
SHA256 2bd954887ced465e85644f1c120d3f104e232079f086588360c2f39a2176ede9
MD5 4a1fb6dabbd873ab13300824db78a816
BLAKE2b-256 0accc0c804288a5c833c7567af50669e6ef91ec4c3cbc19496c7f3bf7f1707e3

See more details on using hashes here.

File details

Details for the file softserved-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: softserved-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for softserved-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de4a5a1f2de06e65b0d2704e599c629f268ce2d40ff52375259366c02165acb2
MD5 c5b8db0ce8e4b11425b9c7f83b10c1b0
BLAKE2b-256 8acbec665574542cbeeb54e423c414cba174ffe70bd209bc5fefd7266ea80226

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