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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@far1s/hyperliquid

v0.17.2-rn

Published

Hyperliquid SDK fork for LiquidMax

Readme

Hyperliquid React Native SDK

NPM

React Native compatible fork of the Hyperliquid API SDK. This fork is specifically modified to work seamlessly with React Native applications.

Features

  • 📱 React Native Ready: Optimized for React Native environments
  • 🖋️ Typed: Source code is 100% TypeScript
  • 🧪 Tested: Inherits good code coverage and type-safe API responses from the original SDK
  • 📦 Minimal dependencies: A few small trusted dependencies
  • 🔧 Integratable: Easy to use with React Native wallet solutions

Installation

# npm
npm install @far1s/hyperliquid

# yarn
yarn add @far1s/hyperliquid

Quick Start for React Native

import * as hl from "@far1s/hyperliquid";

const transport = new hl.HttpTransport();
const publicClient = new hl.PublicClient({ transport });

// Example of fetching open orders
const openOrders = await publicClient.openOrders({ user: "0x..." });

Using with a Wallet

import * as hl from "@far1s/hyperliquid";

const transport = new hl.HttpTransport();
const walletClient = new hl.WalletClient({ 
    wallet: yourWalletInstance, // Your React Native wallet instance
    transport 
});

// Example order placement
const result = await walletClient.order({
    orders: [{
        a: 0, // Asset index
        b: true, // Buy order
        p: "30000", // Price
        s: "0.1", // Size
        r: false, // Not reduce-only
        t: {
            limit: {
                tif: "Gtc", // Good-til-cancelled
            },
        },
    }],
    grouping: "na", // No grouping
});

React Native Specific Notes

This fork has been modified to work with React Native's JavaScript runtime. Key differences from the original SDK include:

  • Compatible with React Native's networking layer
  • Optimized for mobile environments
  • Works with React Native wallet solutions

Usage with React Native Wallets

You can use this SDK with various React Native wallet solutions. Here's an example with a typical React Native wallet setup:

import * as hl from "@far1s/hyperliquid";

// Initialize your React Native wallet
// This will depend on your specific wallet implementation

const transport = new hl.HttpTransport();
const client = new hl.WalletClient({ 
    wallet: reactNativeWallet,
    transport 
});

// Use the client methods as needed

Version Numbering

This fork follows the original SDK's version numbers but adds an "-rn" suffix to indicate it's the React Native variant. For example, version 0.17.2-rn corresponds to version 0.17.2 of the original SDK.

This versioning scheme helps:

  • Track compatibility with the original SDK
  • Avoid version conflicts
  • Clearly identify this as the React Native variant

Current version: v0.17.2-rn

Original SDK

This is a fork of the original Hyperliquid SDK, modified specifically for React Native compatibility.

Contributing

If you find any React Native specific issues or have improvements, please feel free to open an issue or submit a pull request.

License

MIT - see LICENSE file for details