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

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.3.tar.gz (5.8 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.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: softserved-1.1.3.tar.gz
  • Upload date:
  • Size: 5.8 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.3.tar.gz
Algorithm Hash digest
SHA256 be5666300ee630060359db2ac7fee0df4607f2f28be0ffb71b3514ebfb60e217
MD5 ee88e8b90883b6ec6feedb562282295b
BLAKE2b-256 868ac684f6d449c067740d8741fc72aff4058cf8c2f861fd200082e44a20d892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: softserved-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79648e1776251370606a6d22fa39293b88065618b6111bfde5f8f94e14123866
MD5 0c22aabc04c9658fefa0f9e06b5d69b1
BLAKE2b-256 862e409f4182cbcc1beb46eef7e48dbad879fee5d293e4f81f7e9cf8f49b8894

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