# @copha/lbproxy

> a proxy server with load balance

Latest version **0.1.1** (published 2021-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @copha/lbproxy
pnpm add @copha/lbproxy
yarn add @copha/lbproxy
bun add @copha/lbproxy
```

Provides the command `lbproxy`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-10-15 |
| First published | 2021-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 126.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yxwzaxns |
| Maintainers | yxwzaxns |
| Keywords | copha, cli, load balance, proxy, socks5, nodejs |

## Links

- npm: https://www.npmjs.com/package/@copha/lbproxy
- Homepage: https://github.com/copha-project/lbproxy.git
- npm.io page: https://npm.io/package/@copha/lbproxy

## Dependencies (7)

- [debug](https://npm.io/package/debug.md) ^4.3.2
- [socks](https://npm.io/package/socks.md) ^2.6.1
- [binary](https://npm.io/package/binary.md) ^0.3.0
- [dot-prop](https://npm.io/package/dot-prop.md) ^6.0.1
- [commander](https://npm.io/package/commander.md) ^8.2.0
- [uni-utils](https://npm.io/package/uni-utils.md) ^1.0.13
- [write-file-atomic](https://npm.io/package/write-file-atomic.md) ^3.0.3

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-10-15
- 0.1.0 — 2021-10-03
- 0.0.1 — 2021-09-25

## README

# lbproxy
[![npm version](https://badge.fury.io/js/@copha%2Flbproxy.svg)](https://badge.fury.io/js/@copha%2Flbproxy)
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)

A proxy server with load balance

> now support socks5 only

## Install
```
npm i -g @copha/lbproxy 
# yarn global add @copha/lbproxy
```

## How to use

* Add socks5 config to proxy pool
```
lbproxy -a host:port
```

- Start proxy service
```
lbproxy -H 127.0.0.1 -p 1080 -m R # use -D option can run server with daemon mode
```

- Stop proxy service
```
lbproxy -s
```

-  Use `lbproxy -h` for more helper

## Load Balance Strategy
default use random

- [x] Random (R)
- [x] Round Robin (RR)
- [ ] Least connections (LC)
- [x] The least response time (LRT)

### Ref
* [simple-socks](https://github.com/brozeph/simple-socks)

---
_Source: https://npm.io/package/@copha/lbproxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
