# arpeecee

> Simple duplex stream based binary RPC module for well defined services and methods

Latest version **2.2.0** (published 2021-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install arpeecee
pnpm add arpeecee
yarn add arpeecee
bun add arpeecee
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2021-04-26 |
| First published | 2020-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Mathias Buus |
| Maintainers | mafintosh |
| Keywords | rpc, stream, duplex, binary |

## Links

- npm: https://www.npmjs.com/package/arpeecee
- Repository: https://github.com/mafintosh/arpeecee
- Homepage: https://github.com/mafintosh/arpeecee#readme
- Issues: https://github.com/mafintosh/arpeecee/issues
- npm.io page: https://npm.io/package/arpeecee

## Dependencies (2)

- [varint](https://npm.io/package/varint.md) ^5.0.0
- [streamx](https://npm.io/package/streamx.md) ^2.6.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2021-04-26
- 2.1.1 — 2020-06-15
- 2.1.0 — 2020-06-14
- 2.0.1 — 2020-06-12
- 2.0.0 — 2020-06-12
- 1.0.5 — 2020-06-10
- 1.0.4 — 2020-06-10
- 1.0.3 — 2020-06-10
- 1.0.2 — 2020-06-09
- 1.0.1 — 2020-06-09
- 1.0.0 — 2020-06-09
- 0.0.0 — 2020-06-09

## README

# arpeecee

Simple duplex stream based binary RPC module for well defined services and methods

```sh
npm install arpeecee
```

## Usage

```js
const RPC = require('arpeecee')

const stream = new RPC({
  errorEncoding: someAbstractEncoding
})

// define a method
const aMethod = stream.defineService({ id: 1 })
  .defineMethod({
    id: 1,
    requestEncoding: someAbstractEncoding,
    responseEncoding: someAbstractEncoding,
    async onrequest (value) {
      console.log('decoded request', value)
      // return decoded response
    }
  })

// call the method on the other side
const decodedResponse = await aMethod.request(decodedValue)

stream.pipe(someStream).pipe(stream)
```

## LICENSE

MIT

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