talira

Five Server

A development server with live reload, PHP serving and browser logs in your terminal, with a VS Code extension

source availableFive Server Licensefree

Five Server is a development server with live reload, rewritten in TypeScript as a maintained fork of live-server. It serves HTML and PHP files, works with server-side rendered apps such as Express.js, and shows the browser's console logs in the terminal (useful when testing on a phone). It runs from npm (five-server), and its VS Code extension adds instant updates while you type, highlighting of the code you're editing in the browser, and navigation to the file you're editing. The source is public under the Five Server License, which allows use and changes for any purpose but not redistribution.

Problems it solves

  • reload my browser automatically when I save an HTML file
  • a live reload dev server that also serves PHP
  • see my phone browser's console logs in my terminal while testing

Features

  • live reload
  • serves PHP as well as HTML
  • works with server-side rendered apps such as Express.js
  • browser logs shown in the terminal
  • VS Code extension: instant updates while typing, highlights and auto navigation

Limitations

  • The Five Server License allows private use and changes but not sharing or redistributing it123
  • The VS Code extension is under a stricter licence of its own that forbids changing or redistributing it123
  • Instant updates, highlights and auto navigation need the VS Code extension123

Alternatives

The same job

These do what Five Server does.

  1. Browsersync Live reload and synchronised browser testing across devices
  2. Live Preview Microsoft's VS Code extension that serves your workspace locally and previews web pages in the editor
  3. Live Server A local development server with live reload, started from VS Code

Compare Five Server with the top 3