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

@quantabit/dashboard-sdk

v1.0.1

Published

QuantaBit 运营看板 SDK - 实时监控、核心指标大屏、异常告警

Downloads

167

Readme

@quantabit/dashboard-sdk

QuantaBit 数据报表/仪表盘 SDK - 提供 BI 看板、指标统计、可视化图表功能

📦 安装

npm install @quantabit/dashboard-sdk
# 或
yarn add @quantabit/dashboard-sdk

🚀 快速开始

1. 引入 Provider

import { DashboardProvider } from "@quantabit/dashboard-sdk";
import "@quantabit/dashboard-sdk/styles.css";

function App() {
  return (
    <DashboardProvider
      apiUrl="https://api.example.com/v1"
      token="your-auth-token"
    >
      <Dashboard />
    </DashboardProvider>
  );
}

2. 使用组件

import { MetricCard, DateRangeSelector } from '@quantabit/dashboard-sdk';

// 指标卡片
<MetricCard
  title="日活跃用户"
  value={12500}
  change={5.2}
  changeType="vsYesterday"
  icon="👥"
  trend={[80, 85, 90, 88, 95, 100]}
/>

// 日期范围选择器
<DateRangeSelector
  onChange={(range) => loadData(range)}
/>

3. 使用 Hooks

import { useDashboard } from "@quantabit/dashboard-sdk";

function Dashboard() {
  const {
    metrics, // 指标数据
    trends, // 趋势数据
    dateRange, // 当前日期范围
    loadOverview, // 加载概览
    loadTrend, // 加载趋势
    exportData, // 导出数据
    changeDateRange, // 切换日期范围
  } = useDashboard();

  useEffect(() => {
    loadOverview();
  }, [dateRange]);

  return <div>...</div>;
}

📊 指标类型

import { MetricType } from "@quantabit/dashboard-sdk";

MetricType.DAU; // 日活跃用户
MetricType.MAU; // 月活跃用户
MetricType.REVENUE; // 收入
MetricType.ORDERS; // 订单数
MetricType.CONVERSION; // 转化率
MetricType.RETENTION; // 留存率

📅 日期范围

  • 今日 / 昨日
  • 近7天 / 近30天
  • 本月 / 上月
  • 自定义范围

📄 许可证

MIT License