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

cardinalis

v3.2.4

Published

A socks and http proxy by nodejs for you to over GWF

Downloads

44

Readme

cardinal

npm Travis Codecov branch

A shadowsocks client by nodejs, include socks proxy and http proxy

why another

@clowwindy was asked to delete all the shadowsocks code,and shadowsocks-R's cribbing, and lantern start charging a fee. Because of that, I made it.

model

model pic

dependent

achieve

  • jet

  • use GeoIp to pac file not use gfwlist

  • encrypt type filter by shadowsocks and node surport

    |method | size and length| |-------|----------------| |aes-128-ctr | [16, 16] | |aes-192-ctr | [24, 16] | |aes-192-ctr | [24, 16] | |aes-256-ctr | [32, 16] | |aes-128-cfb | [16, 16] | |aes-192-cfb | [24, 16] | |aes-256-cfb | [32, 16] | |bf-cfb | [16, 8] | |camellia-128-cfb | [16, 16]| |camellia-192-cfb | [24, 16]| |camellia-256-cfb | [32, 16]| |cast5-cfb | [16, 8] | |des-cfb | [8, 8] | |idea-cfb | [16, 8] | |rc2-cfb | [16, 8] | |salsa20 | [32, 8] | |seed-cfb | [16, 16] |

install

npm install -g cardinalis

CLI

Use cardinal to start in CLI

options

  • upip
  • sc

examples

default start

$ cardinal

start with update GeoIp-CN(IPs in china)

$ cardinal ip

configs

normal

  • config/GeoIP-CN ------ IPs in china
  • config/local.json ------ host and port config
    • host
    • proxyPortCeil ---- socks port min
    • httpPort
    • pacPort
    • allowDelay ---- optimal timeout
  • config/pac.js ------ pac file functions
  • config/server.json ------ shadowsocks server and password,types

spider rules

In spider/source.js, all shadowsocks server nodes item list.You can add/edit/delete them.cardinal use this to make tunnel.if you have a shadowsocks server,you can use sc start option.

  • url spider webpage url.
  • deXml DOM analyse function, param is a buffer,return a array/null.

example like this:

{
    url: 'https://freessr.xyz/',
    deXml: function (body) {
        try {
            let $ = cheerio.load(body);
            let list = $('.col-md-6.text-center');
            let arr = [];
            for (let i = 0; i < list.length - 1; i++) {
                if (ciphers[$(list[i]).find('h4').eq('3').html().split(':')[1]]) {
                    arr.push({
                        "host": $(list[i]).find('h4').eq('0').html().split(':')[1],
                        "port": $(list[i]).find('h4').eq('1').html().split(':')[1],
                        "password": $(list[i]).find('h4').eq('2').html().split(':')[1],
                        "method": $(list[i]).find('h4').eq('3').html().split(':')[1],
                        "remarks": "frss",
                        "auth": false
                    });
                }
            }
            return arr;
        } catch (e) {
            return null;
        }
    }
}

license

other