# @0x/connect

> A javascript library for interacting with the standard relayer api

Latest version **6.0.9** (published 2020-07-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @0x/connect
pnpm add @0x/connect
yarn add @0x/connect
bun add @0x/connect
```

## Health

**Score 35/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 6.0.9 |
| Published | 2020-07-15 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.12 |
| Dependencies | 10 |
| Unpacked size | 86.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1406 |
| Author | Brandon Millman |
| Maintainers | albrow, alextowle, amirbandeali, bchillman, dave4506, dekz, dorothy-zbornak, fragosti, geneaum, mzhu25, xianny |
| Keywords | connect, 0xproject, ethereum, tokens, exchange |

## Links

- npm: https://www.npmjs.com/package/@0x/connect
- Repository: https://github.com/0xProject/0x-monorepo
- Homepage: https://github.com/0xProject/0x-monorepo/packages/connect/README.md
- Issues: https://github.com/0xProject/0x-monorepo/issues
- npm.io page: https://npm.io/package/@0x/connect

## Dependencies (10)

- [uuid](https://npm.io/package/uuid.md) ^3.3.2
- [sinon](https://npm.io/package/sinon.md) ^4.0.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [@0x/types](https://npm.io/package/@0x/types.md) ^3.2.0
- [@0x/utils](https://npm.io/package/@0x/utils.md) ^5.5.1
- [websocket](https://npm.io/package/websocket.md) ^1.0.26
- [@0x/assert](https://npm.io/package/@0x/assert.md) ^3.0.9
- [query-string](https://npm.io/package/query-string.md) ^6.0.0
- [@0x/json-schemas](https://npm.io/package/@0x/json-schemas.md) ^5.1.0
- [@0x/typescript-typings](https://npm.io/package/@0x/typescript-typings.md) ^5.1.1

## Recent versions

- 6.0.9 (latest) — 2020-07-15
- 5.1.0-beta.3 (protocolV3) — 2019-12-02
- 6.0.8 — 2020-06-24
- 6.0.7 — 2020-02-25
- 6.0.6 — 2020-02-08
- 6.0.5 — 2020-02-06
- 6.0.4 — 2020-01-22
- 6.0.3 — 2020-01-06
- 6.0.2 — 2019-12-17
- 6.0.1 — 2019-12-09
- 6.0.0 — 2019-12-02
- 5.1.0-beta.2 — 2019-11-17
- 5.1.0-beta.1 — 2019-11-07
- 5.1.0-beta.0 — 2019-10-03
- 5.0.19 — 2019-09-17
- … 35 more at https://npm.io/package/@0x/connect/versions

## README

## @0x/connect

This repository contains a Javascript library that makes it easy to interact with Relayers that conform to the [Standard Relayer API](https://github.com/0xProject/standard-relayer-api)

## Installation

```bash
yarn add @0x/connect
```

If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:

```json
"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
```

## Usage

-   [Docs](https://0x.org/docs/tools/connect)
-   [Tutorials](https://0x.org/docs/guides/using-the-standard-relayer-api)

## Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.

### Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

```bash
yarn config set workspaces-experimental true
```

Then install dependencies

```bash
yarn install
```

### Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

```bash
PKG=@0x/connect yarn build
```

Or continuously rebuild on change:

```bash
PKG=@0x/connect yarn watch
```

### Clean

```bash
yarn clean
```

### Lint

```bash
yarn lint
```

### Run Tests

```bash
yarn test
```

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