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

ordervantage-sdk

v1.0.0

Published

React hooks and components for building order book applications on top of Kraken API.

Readme

OrderVantage

OrderVantage is a collection of React hooks and components designed for building order book applications on top of the Kraken API. It empowers developers to create real time trading interfaces, historical replay tools, and intelligent market analysis features with ease.

This SDK is the core library powering ordervantage.xyz, a live reference implementation built during the Kraken Forge Hackathon.

Features

  • real time Order Book Streaming: Efficiently manage high frequency updates via Socket.IO.
  • Time Travel: Replay historical market data to analyze past events.
  • Order Book Intelligence: AI powered assistant for market impact simulations and liquidity analysis.
  • Liquidity Analytics: Visualize depth and spread in real time.

Installation

npm install ordervantage
# or
yarn add ordervantage

Usage

[!IMPORTANT] Backend Requirement: This SDK requires a compatible backend API and WebSocket server to function. For full API specifications and Socket.IO event schemas, please refer to the Backend Documentation.

You can also explore the source code of the reference implementation at ordervantage.xyz to see these components in action.

1. OrderVantageAssistant

An intelligent UI component that allows users to interact with market data through natural language or guided actions (Simulations, Liquidity Check, Whale Analysis).

import { OrderVantageAssistant } from "ordervantage";

function App() {
  return (
    <div className="app-container">
      <OrderVantageAssistant apiUrl="https://your-backend-api.com" />
    </div>
  );
}

2. useOrderBook

Hook to stream real time order book data for a specific pair.

import { useOrderBook } from "ordervantage";

const { bids, asks } = useOrderBook({
  url: "https://your-socket-server.com",
  symbol: "BTC/USD",
  fps: 10, // Frames per second for updates
});

3. useTimeTravel

Hook to replay historical order book states.

import { useTimeTravel } from "ordervantage";

const { 
  playFromStart, 
  togglePlayPause, 
  currentTime, 
  orderbook 
} = useTimeTravel({
  socketUrl: "https://your-socket-server.com",
  initialSymbol: "BTC/USD",
});

API Reference

useOrderBook

  • url: WebSocket server URL.
  • symbol: Trading pair (e.g., "BTC/USD").
  • fps: Update frequency limit.

useTimeTravel

  • socketUrl: WebSocket server URL.
  • initialSymbol: Default symbol to load.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Naoufal Brahmi


Built for the Kraken Forge Hackathon.