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

@hanzo/finance-ui

v0.2.1

Published

Shared finance data-layer + UI for Hanzo Finance surfaces (finance.hanzo.ai + Hanzo Cloud console + admin). ONE FinanceClient, ONE component set — rebuilt on the canonical @hanzo/ui (dashboard) → @hanzo/gui (Tamagui primitives) stack. Monochrome, theme-aw

Readme

@hanzo/finance-ui

Shared finance data-layer + UI for every Hanzo Finance surface — finance.hanzo.ai (the tenant shell), the Hanzo Cloud console per-org Finance module, and the console global-admin finance view. One FinanceClient, one component set, monochrome, USD cents end to end — so a spend / usage / credits card looks and behaves identically at every scope. Scope (which org, or all-orgs) is a property of the injected transport + identity, never a different UI.

Built on the canonical Hanzo component stack: @hanzo/ui (the product/dashboard layer — MetricCard, Panel, DataTable, Sparkline, LineChart, StatusTag, …) on @hanzo/gui (the Tamagui primitives). No hand-rolled CSS; every surface themes off the shared Gui token system, so a finance card reads like any other console module.

Install

npm i @hanzo/finance-ui @hanzo/ui @hanzo/gui

react / react-dom (≥18) and @hanzo/gui (≥7.2.2) / @hanzo/ui (≥8) are peers — the HOST provides the GuiProvider. The package ships TS source (the canonical Hanzo pattern), so add @hanzo/finance-ui, @hanzo/ui, @hanzo/gui, @hanzo/data (and the transitive @hanzogui/*) to your bundler's transpilePackages.

Use

import { FinanceDashboard, stubFinanceClient, httpFinanceClient } from '@hanzo/finance-ui'

// Preview / landing / local dev — deterministic in-memory data, no backend.
<FinanceDashboard client={stubFinanceClient()} mode="preview" />

// Live — the host injects the transport (its own bearer-scoped fetch to /v1/finance/*).
const client = httpFinanceClient((path, query) => myBearerGet(`finance/${path}`, query))
<FinanceDashboard client={client} />

Swapping stubFinanceClient()httpFinanceClient(transport) is a one-line change with zero UI change — the components never know which one they got.

The /v1/finance/* contract

httpFinanceClient reads, per org (scoped server-side by the caller's bearer):

| Method | Path | Shape | |---|---|---| | balance() | GET /v1/finance/balance | { availableCents, pendingCents, dueCents, currency, asOf } | | credits() | GET /v1/finance/credits | Credit[] | | usage(range) | GET /v1/finance/usage?range= | { totalCents, series[], lines[] } | | invoices() | GET /v1/finance/invoices | Invoice[] | | paymentMethods() | GET /v1/finance/payment-methods | PaymentMethod[] (masked) | | ledger(range) | GET /v1/finance/ledger?range= | LedgerEntry[] (double-entry) | | treasury() | GET /v1/finance/treasury | TreasurySummary |

Every payload is run through an optional-safe normalizer: a renamed/absent field degrades to , an unconfigured backend yields honest zeros/empty, and a card is masked to brand + last4 (a PAN can never reach the UI). A rejected read propagates so the host renders its own honest state — the client never fabricates.

Styling & theming

Monochrome, on the shared @hanzo/gui token system — no CSS import, no hand-rolled stylesheet. The HOST mounts one GuiProvider (the console + finance.hanzo.ai both do); the board renders inside it. <FinanceDashboard standalone> (the default) wraps the board in a Theme scope + page background for a standalone host; pass standalone={false} inside an app that already mounts its own GuiProvider/Theme (the console). theme="light" | "dark" pins the scope; otherwise it follows the host.