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

@dyrebu/ui

v0.0.1

Published

Dynamic Report Builder - A component library for building filtered reports with export functionality

Readme

Dynamic Report Builder (dyrebu)

A monorepo containing a React/MUI component library for building dynamic filtered reports with Excel/CSV export functionality.

Project Structure

dyrebu/
├── packages/
│   ├── api/          # TypeSpec API definitions & TypeScript types
│   ├── mui/          # React/MUI component library
│   └── mocks/        # MSW mock handlers and data generators
├── app/
│   └── dynamic-report-builder/  # Integration test app
└── functional-requirements.md   # Detailed requirements document

Getting Started

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0

Installation

# Install all dependencies
npm install

Development

# Build the API types first
npm run build:api

# Build all packages
npm run build

# Start the development app
npm run dev

This will start the demo application at http://localhost:3000 with mock data served by MSW.

Packages

@dyrebu/api

TypeSpec definitions for the reporting API. Generates:

  • OpenAPI 3.0 specification
  • TypeScript types
# Build the API package
npm run build:api

@dyrebu/mui

React component library with the following exports:

  • DynamicReportBuilder - Main component
  • FilterBuilder - Standalone filter builder
  • DataPreview - Standalone AG Grid preview
  • useDynamicReport - Hook for managing report state

Peer Dependencies:

  • react: ^18.3.1
  • @mui/material: ^7.2.0
  • ag-grid-community: ^32.0.0
  • ag-grid-enterprise: ^32.0.0

@dyrebu/mocks

MSW handlers and mock data for development and testing.

Exports:

  • handlers - MSW request handlers
  • mockDatasets - Sample dataset definitions
  • worker (from /browser) - Browser MSW worker
  • server (from /node) - Node MSW server for testing

API Endpoints

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /reporting/datasets | List available datasets | | GET | /reporting/datasets/{key}/columns | Get column metadata | | POST | /reporting/datasets/{key}/preview | Preview filtered data | | POST | /reporting/datasets/{key}/export | Export to CSV/XLSX |

Usage Example

import { DynamicReportBuilder } from '@dyrebu/mui';

function MyReportPage() {
  return (
    <DynamicReportBuilder
      datasetKey="sales"
      exportFormat="xlsx"
      onExport={(blob) => console.log('Exported:', blob)}
      onFilterChange={(filter) => console.log('Filter:', filter)}
    />
  );
}

Publishing Packages

This monorepo uses Changesets for version management and publishing to npm.

Quick Start

# Interactive publishing helper
./scripts/publish.sh

# Or use npm scripts:
npm run changeset:add    # Record what changed
npm run version          # Bump versions
npm run release          # Build and publish to npm

Workflow

  1. Make changes to the packages
  2. Add a changeset: npm run changeset:add
  3. Commit the changeset with your changes
  4. Version packages: npm run version (bumps versions, updates changelogs)
  5. Publish: npm run release

See docs/PUBLISHING.md for the full publishing guide.

License

MIT