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

@go-wind/bi-react

v0.3.0

Published

React 19 BI dashboard renderer on top of @go-wind/bi-core: config-driven dashboard schema, responsive grid layout, light/dark theme following.

Readme

@go-wind/bi-react

React 19 BI 仪表盘渲染器,构建在 @go-wind/bi-core 之上(设计器当前为 Vue 一等公民,React 侧桥接壳规划于 M3)。设计文档:docs/bi-designer.md。

快速开始

pnpm add @go-wind/bi-react
import "@go-wind/bi-react/style.css";
import { BiProvider, BiDashboard } from "@go-wind/bi-react";

<BiProvider
  env={{
    resolvers: {
      ds_api: async (dataset, params) => (await fetchList(params)).items,
    },
    emptyText: "暂无数据",
  }}
>
  <BiDashboard schema={schema} onChartClick={(e) => console.log(e)} />
</BiProvider>

设计器(React 桥接壳)

设计器画布是 Vue 一等公民;React 侧经 BiDesignerReact 桥接使用(内部 createApp 挂载 Vue 版设计器,schema/布局数学/主题同源):

import { BiDesignerReact } from "@go-wind/bi-react";

<BiDesignerReact
  demo // 无 initialSchema 时内置演示 schema
  env={{ resolvers }}
  onChange={(schema) => save(schema)}
/>

边界:initialSchema 为挂载时快照,运行期变更需换 key 重挂。

主题

暗色判定缺省自动跟随 html.dark + 系统偏好(useSyncExternalStore 订阅共享源);宿主可经 <BiProvider env={{ themeMode: () => mode }}> 接入自己的偏好系统。卡片外观走 --bi-card-* 变量回退链,html.dark 下无宿主变量时自动落 EP 暗色等值。

布局数学

schema 栅格坐标 → 像素矩形的换算在 bi-core 的 layoutCharts,与 Vue 设计器画布同源——设计器里拖出来的布局在渲染器里像素级一致。