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

@fayz-ai/plugin-dashboard

v0.1.2

Published

Fayz SDK — plugin-dashboard plugin

Readme

@fayz-ai/plugin-dashboard

One composable home where every plugin renders its own widgets.

npm license

A SaaS home page is never owned by one team. Bookings wants today's agenda, finance wants revenue, the shop wants top products. The usual outcome is one god-component that imports everything and rots. This plugin kills that. It provides the / home surface and a widget registry: every plugin contributes its own dashboardWidgets, and the dashboard renders, orders, and lays them out into a single coherent grid — no plugin needs to know any other plugin exists.

That's the whole bet of the Fayz SDK at the home screen. Enable booking + finance + shop and the home fills itself out. The app author curates — which widgets show, order, span, an optional shared time-range — and each plugin owns its own data. Compose a real SaaS home from plugins instead of maintaining a dashboard by hand.

What's inside

  • The / home surface rendered by DashboardCanvas, driven entirely by the widget registry
  • KPI metrics with async compute, trends, goals, and currency formatting (metrics → KPI cards)
  • Custom app sections, an onboarding/getting-started checklist, and app-contributed customWidgets
  • App-level layout curation on top of every plugin's registered defaults — visibility, order, span
  • An optional shared, sticky range control (7d/30d/90d) that widgets read via useDashboardRange()
  • An getKpiSummary AI tool so an assistant can answer "how is my business doing today?"
  • Per-surface user preferences (show/hide/reorder), persisted, plus full i18n

Install

npm install @fayz-ai/plugin-dashboard

Peer deps: @fayz-ai/core, @fayz-ai/ui (+ react, react-dom).

Usage

import { defineSaas } from '@fayz-ai/saas'
import { createDashboardPlugin } from '@fayz-ai/plugin-dashboard'

export const app = defineSaas({
  // ...
  plugins: [
    createDashboardPlugin({
      metrics: [
        { id: 'revenue', label: 'Revenue', icon: 'DollarSign', format: 'currency', compute: getRevenue },
      ],
      currency: { code: 'BRL', locale: 'pt-BR' },
      onboardingSteps: [
        { id: 'connect-payments', label: 'Connect payments', done: false },
      ],
      range: true, // shared 7d/30d/90d time-range on the home
    }),
    // other plugins contribute their own widgets into this same home
  ],
})

Other plugins just ship dashboardWidgets in their manifest — they land on this surface automatically. Use defineKpiWidget / defineChartWidget / defineTableWidget from @fayz-ai/ui to build them.

Part of the Fayz SDK

The home surface and widget registry that the rest of the Fayz plugins render into.

Roadmap & contributing

Built and evolving in the open. See the Fayz SDK roadmap for current gaps, missing features, and good first issues.