Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including lively-reload with all npm packages installed. Try it out:

var livelyReload = require("lively-reload")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

lively-reload v0.0.1

a live reload server for any folder


a livereload server for any folder

lively watches a folder for changes and reloads the browser if it detects any.

Uses livereload, harmon.


  • watches a folder for changes
  • appends a livereload javascript to the head of response generated by the endpoint
  • can watch a folder and reload the endpoint automatically


$ npm install -g lively-reload


lively [options]


-h, --help                 output usage information
-V, --version              output the version number
-p, --port <n>             The port to which the server should listen to. Default: 3000
-w, --watch [folder path]  The folder to watch for changes. Defaults to current directory
-e, --endpoint [url]       The endpoint/server to redirect requests to. Default: http://localhost/endpoint


  • If you are running a php project at http://localhost/php (endpoint) situated at /var/www/php (path) then I can use lively to watch for changes to path:
  •  $ lively -p 8080 -w /var/www/php -e http://localhost/php
  • Now visit http://localhost:8080 to visit the livereload-able version of your php app!
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free