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

funding-ring-plugin

v0.1.0

Published

Orderly SDK plugin

Downloads

129

Readme

funding-ring-plugin

A drop-in Orderly SDK v3 plugin that replaces the plain "funding rate" stat in the desktop symbol info bar with a circular ring + countdown to the next funding settlement.

preview

What it does

  • Reads the live funding rate via @orderly.network/hooks (useFundingRate).
  • Renders a circular SVG ring that sweeps clockwise from 0 → 100% across the current 8-hour funding window, with the live rate in the center.
  • Tick label and rate color flip green/red based on the sign of the current rate, so you can read direction at a glance.
  • Pure client-side: no extra REST/WS subscriptions, no backend.
  • Mounts via the Trading.SymbolInfoBar.Desktop interceptor — the original info bar is preserved and the ring sits on the right.

Install

pnpm add funding-ring-plugin
# or
npm install funding-ring-plugin

Register

import { OrderlyAppProvider } from '@orderly.network/react-app';
import { registerFundingRingPlugin } from 'funding-ring-plugin';

<OrderlyAppProvider
  plugins={[
    registerFundingRingPlugin({ intervalHours: 8 }),
  ]}
  // …
/>

If your host doesn't import the plugin's dist/styles.css automatically, add:

import 'funding-ring-plugin/dist/styles.css';

Options

| Option | Type | Default | Description | |-----------------|----------|---------|-------------| | className | string | | Extra CSS class for the outer wrapper. | | intervalHours | number | 8 | Funding settlement cadence in hours. Orderly settles every 8h on UTC :00 boundaries (00 / 08 / 16). Leave default unless your venue is different. |

Peer dependencies

Provided by the host app:

  • @orderly.network/plugin-core >= 3.0.0-beta.1
  • @orderly.network/hooks >= 3.0.0-beta.1
  • @orderly.network/trading >= 3.0.0-beta.1
  • @orderly.network/ui >= 3.0.0-beta.1
  • @orderly.network/i18n >= 3.0.0-beta.1
  • @orderly.network/types >= 3.0.0-beta.1
  • @orderly.network/utils >= 3.0.0-beta.1
  • react >= 18, react-dom >= 18

Build

pnpm install
pnpm build

Produces dist/index.{js,mjs,d.ts} + dist/styles.css.

License

MIT