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 shadowsocks-lite with all npm packages installed. Try it out:

var shadowsocksLite = require("shadowsocks-lite")

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

shadowsocks-lite v1.0.9

A socks5 proxy helper

shadowsocks-lite

Build Status npm version

Super simple to use

Socks5 proxy client and server with fewer config params.

Usage

  1. Create a file named config.json, with the following content:
    {
      "server":"my_server_ip",
      "server_port":8388,
      "local_address": "127.0.0.1",
      "local_port":1080,
      "password":"foobar"
    }

Alternatively, you can specify multiple server addresses on client, and we will select the best to use automatically.

    {
      "server":["my_server_ip1",'my_server_ip2"],
      "server_port":8388,
      "local_address": "127.0.0.1",
      "local_port":1080,
      "password":"foobar"
    }
  1. cd into the directory of config.json.

  2. On your server, run:

    npm install -g shadowsocks-lite
    sslserver
  1. On your client, run:
    npm install -g shadowsocks-lite
    ssllocal
  1. Change the proxy setting in your browser.
    protocol: socks5
    hostname: 127.0.0.1
    port: 1080
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