npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@oax/client

v0.3.8

Published

OAX Trustless Client

Readme

Version License: MIT

Layer 2 Trustless Exchange (L2X)

This is an implementation of the OAX L2X protocol as a full-stack high-performance, scalable, trustless exchange.

Documentation

Getting Started with the OAX Testnet

This section will walk you through using the client library and CLI to interact with the OAX testnet. If you'd like to learn how to run the server, modify it and deploy it, see the Server related sections in the documentation.

Requirements

  • node.js v10.x or later

Installation

  1. Create a new folder
  2. Create a package.json
npm init
  1. Install the OAX client package
npm install @oax/client --save
  1. Initialize the CLI. This will create a new config.json file with the OAX Testnet config.
npx oax init

Once this is created, please open the config.json file and update the providerUrl by adding in your geth node url or infura url for the rinkeby testnet.

  1. Create a new encrypted wallet.
npx oax createWallet
  1. Fund the wallet with Rinkeby test ether. You can use one of the public Rinkeby faucets to request Ether for the wallet address you just created.

    • https://etherfaucet.xyz
    • http://rinkeby-faucet.com
    • https://faucet.rinkeby.io/ (Requires Twitter or Facebook account)

Interacting with the Testnet Exchange

After funding your wallet, you need to purchase OAX tokens. OAX tokens are needed to pay fees. They can be purchased using the buy method. WETH can also be purchased in this way. Once you purchase these tokens you can send them to the exchange using the deposit method. Finally once your tokens show up on the exchange balances, you can start trading.

Launch the CLI in console mode

> npx oax buy OAX 1
Buying 1 OAX...
Bought 1 OAX.

> npx oax fetchWalletBalance OAX
Balance: 1.0

> npx oax deposit OAX 1.0
Depositing 1 OAX...

> fetchBalances
{
    "OAX": {
        "free": "1",
        "locked": "0"
    },
    "WETH": {
        "free": "0",
        "locked": "0"
    }
}

> npx oax createOrder BUY OAX/WETH 5 0.1
Placing order to BUY 5 OAX/WETH @ 0.1...
Order placed successfully.
"0xfd91b90308ccfcaff77ae9cfc7e455b6383320aa981f1cbd273f1ead2732081b"

You can see the full list of commands available in the CLI by typing:

npx oax --help

Building the Client from source

Currently the build script will build everything, client , server , smart-contracts, so you can simply run pnpm run clean-build after modifying some source code.


© 2019 OAX Foundation