# ilp-plugin-mini-accounts

> Plugin that implements a mini ephemeral ledger

Latest version **4.2.0** (published 2019-09-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ilp-plugin-mini-accounts
pnpm add ilp-plugin-mini-accounts
yarn add ilp-plugin-mini-accounts
bun add ilp-plugin-mini-accounts
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.2.0 |
| Published | 2019-09-25 |
| First published | 2017-11-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.3.0 |
| Dependencies | 11 |
| Unpacked size | 105.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Stefan Thomas |
| Maintainers | interledger |
| Keywords | ilp, ledger, accounts, payments, crypto, digital, money |

## Links

- npm: https://www.npmjs.com/package/ilp-plugin-mini-accounts
- Repository: https://github.com/interledgerjs/ilp-plugin-mini-accounts
- Homepage: https://github.com/interledgerjs/ilp-plugin-mini-accounts#readme
- Issues: https://github.com/interledgerjs/ilp-plugin-mini-accounts/issues
- npm.io page: https://npm.io/package/ilp-plugin-mini-accounts

## Dependencies (11)

- [ws](https://npm.io/package/ws.md) ^6.0.0
- [int64](https://npm.io/package/int64.md) 0.0.5
- [@types/ws](https://npm.io/package/@types/ws.md) ^6.0.0
- [btp-packet](https://npm.io/package/btp-packet.md) ^2.2.0
- [ilp-logger](https://npm.io/package/ilp-logger.md) ^1.1.3
- [ilp-packet](https://npm.io/package/ilp-packet.md) ^3.0.8
- [@types/node](https://npm.io/package/@types/node.md) ^10.5.1
- [ilp-plugin-btp](https://npm.io/package/ilp-plugin-btp.md) ^1.3.5
- [ilp-store-memory](https://npm.io/package/ilp-store-memory.md) ^1.0.0
- [ilp-store-wrapper](https://npm.io/package/ilp-store-wrapper.md) ^2.0.0
- [ilp-protocol-ildcp](https://npm.io/package/ilp-protocol-ildcp.md) ^2.0.1

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 4.2.0 (latest) — 2019-09-25
- 4.1.0 — 2019-06-11
- 4.0.5 — 2019-04-02
- 4.0.3 — 2019-03-13
- 4.0.2 — 2018-12-07
- 4.0.1 — 2018-11-20
- 4.0.0 — 2018-11-20
- 3.6.0 — 2018-11-05
- 3.5.2 — 2018-10-19
- 3.5.1 — 2018-08-06
- 3.5.0 — 2018-07-13
- 3.4.9 — 2018-07-10
- 3.4.8 — 2018-07-03
- 3.4.7 — 2018-07-03
- 3.4.6 — 2018-06-19
- … 19 more at https://npm.io/package/ilp-plugin-mini-accounts/versions

## README

# ILP Plugin Mini-Accounts

- [Description](#description)
- [Example](#example)

## Description

ILP Plugin Mini-Accounts provides a way for many users to sign up for a
connector without the connector modifying its configuration. It is a type of
multi-user plugin, which means that it internally implements an extremely
barebones connector.

This plugin can be connected to with
[`ilp-plugin-btp`](https://github.com/interledgerjs/ilp-plugin-btp). Any secret
can be used to authenticate; it is then hashed and becomes your account
identifier. This has the advantage of requiring no UI-based signup flow nor any
database storing usernames and passwords. It has the disadvantage that password
recovery cannot be done, and only randomly generated passwords should be used.
Treat your credentials like you would treat a wallet secret for a
cryptocurrency.

Mini-Accounts currently has no internal balance logic. It is a planned feature
to support it in a similar way to [the connector's balance
logic.](https://github.com/interledgerjs/ilp-connector/issues/400#issuecomment-355223994).

## Example

```js
const plugin = new IlpPluginMiniAccounts({
  // A WebSocket server will run with these options, as described in:
  // https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketserveroptions-callback
  //
  // Any connections are expected to be ILP v4 over BTP, as discussed in:
  // https://github.com/interledger/rfcs/pull/360.
  //
  // The first packet should be an auth packet, but any random auth token will be accepted.

  wsOpts: {
    port: 6666
  }
})
```

Note that this module requires node version 8.3.0 or higher.

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