# @0x/neon-router

> 0x API /swap order router

Latest version **0.4.0** (published 2023-05-23) · Apache-2.0 license · 0 weekly downloads

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

## Install

```sh
npm install @0x/neon-router
pnpm add @0x/neon-router
yarn add @0x/neon-router
bun add @0x/neon-router
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2023-05-23 |
| First published | 2021-09-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Remco Bloemen |
| Maintainers | rhinodavid, mwelche, savdont, eobbad, aeph4muh, idokleinman, kyuc, henryzhu, tobernguyen, dex_tracker, dekz, amirbandeali, phil-ociraptor |

## Links

- npm: https://www.npmjs.com/package/@0x/neon-router
- Homepage: https://0x.org/api
- npm.io page: https://npm.io/package/@0x/neon-router

## Dependencies (1)

- [@mapbox/node-pre-gyp](https://npm.io/package/@mapbox/node-pre-gyp.md) ^1.0.5

## Recent versions

- 0.4.0 (latest) — 2023-05-23
- 0.3.5 — 2022-03-09
- 0.3.4 — 2022-02-24
- 0.3.3 — 2022-02-23
- 0.3.2 — 2022-02-22
- 0.3.1 — 2021-12-27
- 0.3.0 — 2021-12-22
- 0.2.1 — 2021-10-14
- 0.2.0 — 2021-10-14
- 0.1.3 — 2021-09-22
- 0.1.2 — 2021-09-21
- 0.1.1 — 2021-09-21
- 0.1.0 — 2021-09-21

## README

# Neon bindings for 0x API Router

For more information about 0x API see [https://0x.org/api](https://0x.org/api).

## Developers

### Test

```sh
cargo test
npm run build
npm run test
```

### Plotting liquidity curves for local development

When building the module with the `plots` feature enabled, the router will create a `./plots` folder relative to the folder it is executed from and output plots of the curves for every sampled source.

#### Building with all optional features enabled

All optional features can be enabled by building with

```
npm run build:all_features
```

### Publishing the package

#### Production npm publish

1. Bump the version appropriately in the `package.json`, commit with the message `[publish binary]` and push to the remote. An action will automatically build the binaries and upload them to S3
1. Publish the new version to npm with `npm run publish:npm`

#### Private gitpkg publish

1. Bump the version by running `npm run publish:private:bump_version`, commit with the message `[publish binary]` and push to the remote. An action will automatically build the binaries and upload them to S3
1. Publish the package to gitpkg by running `npm run publish:private`
1. See Quip doc about how to use gitpkg published packages

### Developing with 0x API locally

You can develop neon-router directly towards you local 0x API instance, but it requires a bit of setup

1. In `neon-router` run `yarn link`
1. In `neon-router` run `npm run build` or `npm run build:all_features`
1. In `asset-swapper` run `yarn link "@0x/neon-router" && yarn build`
1. In `0x-api` run `yarn link "@0x/asset-swapper"`
1. You can now make changes to the router, rebuild it, then restart 0x API to use the updated version

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