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

@liqpro/liq-api-client

v0.28.0

Published

Typed REST + SSE client for the Liq order-gateway API.

Readme

@liq/api-client

Typed REST + SSE client for the Liq order-gateway API.

Overview

@liq/api-client provides a fully-typed HTTP client for interacting with the order-gateway service. It wraps up-fetch with automatic JWT bearer token management, response envelope unwrapping ({ data: T }T), and structured error handling via LiqApiError. The top-level LiqClient exposes namespaced service objects for auth, orders, markets, positions, accounts, and SSE streaming.

Key Exports

LiqClient

Main entry point. Constructed with { baseUrl, chainId? }.

const client = new LiqClient({ baseUrl: 'http://localhost:4000' });
client.setToken(jwt); // set or clear auth token

| Property | Type | Description | | ------------------ | --------------------- | ------------------------------------- | | client.auth | AuthService | SIWE nonce + verify, dev-login | | client.orders | OrdersService | Submit, cancel, list, get orders | | client.markets | MarketsService | List markets | | client.positions | PositionsService | List open positions | | client.accounts | AccountsRestService | Register + get account | | client.sse | SSEService | Subscribe to real-time event channels |

Other exports

  • AuthService, AuthTokens — standalone auth service + token type
  • OrdersService — order CRUD
  • MarketsService — market list
  • PositionsService, PositionResponse — positions
  • AccountsRestService, RegisterAccountParams, RegisterAccountResponse — account management
  • SSEService, SSEEventHandler — SSE subscription helpers
  • LiqApiError — typed API error (status code + error code + body)

Install

pnpm add @liq/api-client

Dependencies

  • @liq/core — shared types and enums
  • up-fetch — lightweight fetch wrapper with base URL + interceptors

Build

moon run liq-api-client:build    # tsup → dist/