npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lightsword

v0.7.2

Published

LightSword Secure SOCKS5 Proxy / iOS VPN Server

Downloads

58

Readme

LightSword

Build Status Gitter

LightSword —— 基于 Node.js 的 SOCKS5 代理 / Apple NE 服务器。

LightSword 参考了 Shadowsocks 的协议,并用 Typescript 实现。LightSword 基于 Node.js 4.0+,因此需要首先安装 Node.js 4.0 以上版本,点击访问官方网址

Quick Start

首先,安装Node.js 4.0+,安装好 Node.js 之后,即可使用 Node.js 的包管理器 npm 安装 LightSword 。目前 npmjs.org 可以访问,因此可以直接安装:

1.安装

[sudo] npm install lightsword -g

安装完成之后,即可使用客户端,服务器端,中转站端。

服务器端: lsserver, lightsword-server, lightsword

中转站端: lsbridge, lightsword-bridge

客户端: lslocal, lightsword-client

简单地说明下中转站的作用:

由于某些不为人知的原因,访问境外IP时不时丢包非常严重,因此可以把中转站搭建在云提供商服务器上,作为中转/中继使用,具有较好的效果(在一定程度上提高了匿名性)。

2.运行

服务器:

lsserver -f

客户端:

lslocal -s server_addr -f

中转站:

lsbridge -s server_addr -f

以上配置均使用内置默认设置,详细参数请参见源码文件夹中的 README.md 文件(参见: server, client, bridge 这三个文件夹)。

经实际测试,中转服务器对 Shadowsocks 有效。理论上支持任何形式的 TCP 流量中转。

最后配置你的浏览器及其它需要上网的软件使用 LightSword 提供的 SOCKS5 代理。

默认监听地址: localhost

端口: 1080

Linux 支持

misc 文件夹下,已经写好了 Linux 启动脚本,你可以根据自己的实际情况,修改运行参数。并放到 init.d 目录下,再 chkconfig on 或者其它 Linux 分发版的命令激活自动运行即可。

快速安装方法:

Ubuntu 用户

# Using Ubuntu
[sudo] apt-get update -y
[sudo] apt-get install curl -y

[sudo] curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
[sudo] apt-get install -y nodejs
[sudo] npm install lightsword -g

Debian 用户

# Using Debian, as root
[sudo] apt-get update -y
[sudo] apt-get install curl -y

[sudo] curl -sL https://deb.nodesource.com/setup_5.x | bash -
[sudo] apt-get install -y nodejs
[sudo] npm install lightsword -g

RHEL 6, CentOS 6 用户

# Using RHEL 6, CentOS 6
[sudo] yum update
[sudo] yum install curl

[sudo] curl -sL https://rpm.nodesource.com/setup_5.x | bash -
[sudo] npm install lightsword -g

Apple 用户

Apple 用户只需要运行服务器,即可打开iOS客户端填写配置并投入使用。如需测试 DNS 泄漏,请访问https://dnsleaktest.com

建议在运行的时候加入 --cluster 参数,以提升服务器性能和稳定性。

默认端口: 8900

默认密码: lightsword.neko

默认算法: AES-256-CFB

License

GPLv2.0