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 400,000 packages pre-installed, including publicify with all npm packages installed. Try it out:

publicify lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("publicify/[??]")

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

publicify v0.2.0

Publish your localhost in seconds.


A simple tool to publish your localhost in seconds.

What's this?

Have you ever thought that you'd feel happy if you could allow your friends to access your http://localhost:8000 without deploying?

Then easily install Publicify on your server & local machine. Publicify do the rest.


npm install publicify -g


1. Run command below on your remote server.

publicify server <port>

<port> is a number of port you want to make the server listen on.

If 3000, the command is going to be

$ publicify server 3000
Publicify server has started.
Now it is listening on port 3000

Then access http://<your-servers-hostname>:3000 to make sure that the server has successfully started and can receive requests.

If you see the screen like this, server is ready.

2. Run command below on your local machine.

publicify agent <remotehost> <localhost>

<remotehost> is a hostname or ipaddress and port on which you started publicify server.

<localhost> is a hostname or ipaddress and port of your localhost you want to publish.

If your server's hostname is and want to publish http://localhost:8000, the command is going to be

$ publicify agent localhost:8000
Connected. Proxying => http://localhost:8000

3. That's all. Now you can access your http://localhost:8000 by



-b, --basicAuth <username:password> - Enable basic authentication

-a, --agentAuth <username:password> - Enable basic authentication for agent

-l, --log - Displays access logs on stdout

# For example
publicify server 3000 -b testUser:testPass -a agentUser:agentPass -l


-i, --indexFile - Specify index file when access to /$

-a, --agentAuth <username:password> - Set basic authentication

-l, --log - Displays access logs on stdout

# For example
publicify agent localhost:8000 -i mypage.html -a agentUser:agentPass -l



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