# fluence

> the browser js-libp2p client for the Fluence network

Latest version **0.7.108** (published 2020-12-24) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.108 |
| Published | 2020-12-24 |
| First published | 2017-02-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 200.9 KB |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| Author | Fluence Labs |
| Maintainers | diemyst, folex-fluence |

## Links

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

## Dependencies (14)

- [bs58](https://npm.io/package/bs58.md) 4.0.1
- [cids](https://npm.io/package/cids.md) 0.8.1
- [uuid](https://npm.io/package/uuid.md) 8.3.0
- [async](https://npm.io/package/async.md) 3.2.0
- [libp2p](https://npm.io/package/libp2p.md) 0.28.3
- [it-pipe](https://npm.io/package/it-pipe.md) 1.1.0
- [peer-id](https://npm.io/package/peer-id.md) 0.13.12
- [loglevel](https://npm.io/package/loglevel.md) 1.7.0
- [base64-js](https://npm.io/package/base64-js.md) 1.3.1
- [libp2p-mplex](https://npm.io/package/libp2p-mplex.md) 0.9.5
- [libp2p-secio](https://npm.io/package/libp2p-secio.md) 0.12.5
- [libp2p-websockets](https://npm.io/package/libp2p-websockets.md) 0.13.6
- [it-length-prefixed](https://npm.io/package/it-length-prefixed.md) 3.0.1
- [@fluencelabs/aquamarine-stepper](https://npm.io/package/@fluencelabs/aquamarine-stepper.md) 0.0.30

## Recent versions

- 0.7.108 (latest) — 2020-12-24
- 0.3.5 (beta) — 2019-08-10
- 0.7.107 — 2020-12-24
- 0.7.106 — 2020-12-24
- 0.7.105 — 2020-12-24
- 0.7.104 — 2020-12-24
- 0.7.103 — 2020-12-23
- 0.7.102 — 2020-12-23
- 0.7.101 — 2020-12-08
- 0.7.100 — 2020-12-08
- 0.7.99 — 2020-12-08
- 0.7.98 — 2020-12-08
- 0.7.97 — 2020-12-07
- 0.7.96 — 2020-12-07
- 0.7.95 — 2020-12-04
- … 161 more at https://npm.io/package/fluence/versions

## README

# Fluence browser client
Browser client for the Fluence network based on the js-libp2p.

## How to build

With `npm` installed building could be done as follows:

```bash
npm install fluence
```

## Example 

Shows how to register and call new service in Fluence network.


Generate new peer ids for clients.
```typescript
let peerId1 = await Fluence.generatePeerId();
let peerId2 = await Fluence.generatePeerId();
```

Establish connections to predefined nodes.

```typescript
let client1 = await Fluence.connect("/dns4/134.209.186.43/tcp/9003/ws/p2p/12D3KooWBUJifCTgaxAUrcM9JysqCcS4CS8tiYH5hExbdWCAoNwb", peerId1);
let client2 = await Fluence.connect("/ip4/134.209.186.43/tcp/9002/ws/p2p/12D3KooWHk9BjDQBUqnavciRPhAYFvqKBe4ZiPPvde7vDaqgn5er", peerId2);
```

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