# @interledger/rafiki

> A modular ILP connector with stand-alone settlement engine and router

Latest version **0.0.1-beta.6** (published 2019-07-04) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @interledger/rafiki
pnpm add @interledger/rafiki
yarn add @interledger/rafiki
bun add @interledger/rafiki
```

Provides the command `rafiki`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1-beta.6 |
| Published | 2019-07-04 |
| First published | 2019-03-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.13 |
| Dependencies | 26 |
| Unpacked size | 4.1 MB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Interledger Team |
| Maintainers | interledger |

## Links

- npm: https://www.npmjs.com/package/@interledger/rafiki
- Repository: https://github.com/interledgerjs/rafiki
- Homepage: https://github.com/interledgerjs/rafiki#readme
- Issues: https://github.com/interledgerjs/rafiki/issues
- npm.io page: https://npm.io/package/@interledger/rafiki

## Dependencies (26)

- [ajv](https://npm.io/package/ajv.md) ^6.9.1
- [koa](https://npm.io/package/koa.md) ^2.7.0
- [nanoid](https://npm.io/package/nanoid.md) ^2.0.3
- [winston](https://npm.io/package/winston.md) ^3.2.1
- [raw-body](https://npm.io/package/raw-body.md) ^2.4.0
- [oer-utils](https://npm.io/package/oer-utils.md) ^4.0.0
- [@types/koa](https://npm.io/package/@types/koa.md) ^2.0.48
- [ilp-packet](https://npm.io/package/ilp-packet.md) ^3.0.8
- [change-case](https://npm.io/package/change-case.md) ^3.1.0
- [ilp-routing](https://npm.io/package/ilp-routing.md) ^20.0.1-beta.0
- [prom-client](https://npm.io/package/prom-client.md) ^11.2.1
- [@types/nanoid](https://npm.io/package/@types/nanoid.md) ^2.0.0
- [ilp-plugin-btp](https://npm.io/package/ilp-plugin-btp.md) ^1.3.8
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) ^4.2.1
- [koa-joi-router](https://npm.io/package/koa-joi-router.md) ^6.0.0
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^3.0.0
- [ilp-plugin-http](https://npm.io/package/ilp-plugin-http.md) ^1.3.0
- [extensible-error](https://npm.io/package/extensible-error.md) ^1.0.2
- [ilp-protocol-ccp](https://npm.io/package/ilp-protocol-ccp.md) ^1.1.1
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.3.3
- [ilp-compat-plugin](https://npm.io/package/ilp-compat-plugin.md) ^2.0.3
- [ilp-protocol-ildcp](https://npm.io/package/ilp-protocol-ildcp.md) ^2.0.1
- [@types/koa-bodyparser](https://npm.io/package/@types/koa-bodyparser.md) ^4.3.0
- [@types/koa-joi-router](https://npm.io/package/@types/koa-joi-router.md) ^5.2.2
- [ilp-plugin-xrp-paychan](https://npm.io/package/ilp-plugin-xrp-paychan.md) ^2.4.1
- [ilp-plugin-xrp-asym-server](https://npm.io/package/ilp-plugin-xrp-asym-server.md) ^1.8.0

## Recent versions

- 0.0.1-beta.6 (latest) — 2019-07-04
- 0.0.1-beta.4 — 2019-03-11
- 0.0.1-beta.3 — 2019-03-11
- 0.0.1-beta.2 — 2019-03-11

## README

# rafiki

> A modular ILP connector with stand-alone settlement engine and router

<!-- [![NPM Package](https://img.shields.io/npm/v/ilp-routing.svg?style=flat)](https://npmjs.org/package/ilp-routing) -->
[![CircleCI](https://circleci.com/gh/interledgerjs/rafiki.svg?style=shield)](https://circleci.com/gh/interledgerjs/rafiki)
[![codecov](https://codecov.io/gh/interledgerjs/rafiki/branch/master/graph/badge.svg)](https://codecov.io/gh/interledgerjs/rafiki)

![rafiki](./media/rafiki.jpeg)

_Image Credit: [Felicia Ray](https://www.redbubble.com/people/feliciaray/works/29271134-rafiki?p=poster)_

**This is a BETA. There are still TODO's:**

 - [ ] Thorough code review 😬
 - [ ] Documentation
 - [ ] CI/CD and some automation around commit checks
 - [ ] Get/set own address when child
 - [ ] Update config schemas and/or support old schemas
 - [ ] HTTP/2 endpoint reconnect logic
 - [ ] Support unsolicited peer connections
 - [ ] Pluggable settlement and/or alternative settlement engines
 - [ ] Synchronous/atomic settlement model (alternative balance rule and settlement engine)
 - [ ] Exchange rate rules
 - [ ] Connector control-plane service
 - [ ] Consider creating mono-repo including endpoints and router
 
 Dependencies:
 
> Changes required in other projects that we've worked around for now.
 
 - [ ] https://github.com/winstonjs/logform/pull/84
 - [ ] https://github.com/interledgerjs/ilp-protocol-ccp/pull/3
 - [ ] https://github.com/winstonjs/winston/pull/1603

## About

> More details coming soon, some major differences from `ilp-connector` below:

![architecture](./media/architecture.png)

 - Stand-alone routing table and route manager
 - Stand-alone settlement engine
 - [Endpoints](./endpoints.md) replace plugins and are built in for major transports
 - Rules and protocols replace middleware and controllers and are instantiated per peer


## Project

We designed Rafiki to be modular and therefor easy for work to be done on individual components in isolation. We encourage contributions especially in the form of new rules, protocols or settlement engines.

If you are keen to contribute please look at the issues, especially those labelled 'Good First Issue'.

### Folders

All source code is expected to be TypeScript and is placed in the `src` folder. Tests are put in the `test` folder.

The NPM package will not contain any TypeScript files (`*.ts`) but will have typings and source maps.

### Scripts

  - `clean` : Cleans the build folder and test output
  - `build` : Build the project
  - `lint`  : Run the linter over the project
  - `test`  : Run the unit tests and produce a code coverage report
  - `doc`   : Build the docs

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