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
Alternatives
The same job
These do what Five Server does.
- Browsersync Live reload and synchronised browser testing across devices
- Live Preview Microsoft's VS Code extension that serves your workspace locally and previews web pages in the editor
- Live Server A local development server with live reload, started from VS Code
