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-reports

v0.1.5

Published

Fayz SDK — plugin-reports plugin

Readme

@fayz-ai/plugin-reports

Config-driven reports for your SaaS — declare the report, get the page.

npm license

Every business eventually asks the same thing: "show me the numbers." plugin-reports answers it without a BI bolt-on. You declare reports as data — columns, filters, date ranges, badges, and a data source — and the plugin renders a searchable report hub plus a filterable, exportable viewer. No per-report UI, no copy-pasted tables.

It's the read layer of the SDK: point it at the same data the rest of your app already writes, and any vertical gets analysis and decision-support out of the box. Date presets, currency formatting, and CSV/Excel/PDF export ship by default; the reports themselves are just config, so adding one is an array entry, not a new screen.

What's inside

  • Reports page (/reports) — a report hub that lists and searches your declared reports, plus a viewer for a single report.
  • Declarative report defsReportDef with columns, filters, date ranges, badges, and a data source; reports are passed in as options.
  • Date presets — today, yesterday, last 7 days, this/last month, this quarter, and custom ranges.
  • Export — CSV, Excel, and PDF, with print support.
  • Configurable — labels, currency, default page size, and header visibility.
  • Supabase-or-mock data provider, with createSupabaseReportProvider / createMockReportProvider exported for custom wiring; i18n built in.

Install

npm install @fayz-ai/plugin-reports

Peer deps: react, react-dom. Runtime deps include @fayz-ai/core, @fayz-ai/ui, and @fayz-ai/saas.

Usage

import { defineSaas } from '@fayz-ai/saas'
import { createReportsPlugin } from '@fayz-ai/plugin-reports'

export const app = defineSaas({
  // ...
  plugins: [
    createReportsPlugin({
      currency: { code: 'BRL', locale: 'pt-BR', symbol: 'R$' },
      defaultPageSize: 50,
      reports: [
        {
          id: 'revenue-by-day',
          title: 'Revenue by Day',
          // columns, filters, dataSource, ...
        },
      ],
    }),
  ],
})

Part of the Fayz SDK

plugin-reports is the analytics surface of the SDK. It naturally reads from @fayz-ai/plugin-financial (revenue, commissions) and @fayz-ai/plugin-agenda (bookings, occupancy) to turn operational data into reports.

Roadmap & contributing

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