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

@bunnabyte/erp-report-engine

v1.2.0

Published

Config-driven ERP reporting engine with grid, pivot, filters, and exports

Readme

ERP Report Engine

A config-driven enterprise reporting engine for building dynamic, scalable, and extensible reporting interfaces with support for grids, grouping, pivot views, filtering, and export capabilities.

Designed for modern ERP systems where flexibility, performance, and clean UI are critical.


✨ Features

  • 📊 Dynamic Grid Reports
  • 🧩 Config-Driven Architecture
  • 🔁 Pivot Table Support
  • 🔎 Filtering & Search
  • 📦 Grouping & Aggregations
  • 📤 Export (Excel, CSV, PDF)
  • ⚙️ Fully Config-Driven
  • ⚛️ React-Based
  • 🎨 TailwindCSS Powered UI
  • 🧩 Modular ERP-Friendly Design

📦 Installation

1. Install the package

npm install @bunnabyte/erp-report-engine

2. Install required dependencies

npm install react@^18 react-dom@^18
npm install lucide-react@^0.400
npm install tailwindcss@^4

🎨 Tailwind Setup (IMPORTANT)

In your main CSS file (e.g. index.css):

@import "tailwindcss";
@import "../node_modules/@bunnabyte/erp-report-engine/dist/style.css";

✅ This is required for proper styling of the report engine


🚀 Usage

1. Import

import { ReportEngine } from "@bunnabyte/erp-report-engine";

2. Define a Report

export const auditData = [
  { action: "Login", user: "Admin", status: "Success", time: "10:00 AM", module: "Auth" },
  { action: "Update", user: "Jane", status: "Success", time: "10:15 AM", module: "Settings" },
  { action: "Delete", user: "Admin", status: "Failed", time: "11:00 AM", module: "User" },
];

export const auditReport = {
  id: "audit",
  name: "Audit Report",
  icon: "Shield",

  config: {
    data: auditData,
    view: "grid",

    header: {
      title: "Audit Logs",
      icon: "Shield",
      subtitle: "System security activity"
    },

    columns: [
      { key: "action", label: "Action" },
      { key: "user", label: "User" },
      { key: "status", label: "Status", type: "status" },
      { key: "time", label: "Time" },
      { key: "module", label: "Module" },
    ],

    groupBy: ["module"],
    footer: "Security Restricted",
  },
};

3. Render the Report

import { ReportEngine } from "@bunnabyte/erp-report-engine";
import { auditReport } from "./reports/auditReport";

export default function App() {
  return (
    <div className="p-4">
      <ReportEngine config={auditReport.config} />
    </div>
  );
}

📊 Sample Reports Included

  • Sales Report
  • User Report
  • Inventory Report
  • Finance Report
  • HR Report
  • Audit Report
  • Transport Report
  • Procurement Report
  • Production Report
  • System Logs

🧠 Configuration Overview

| Feature | Description | | --------- | --------------------- | | data | Array of records | | columns | Column definitions | | view | grid / pivot | | groupBy | Grouping fields | | header | Title, icon, subtitle | | footer | Footer text | | filters | Enable filtering | | export | Export options |


⚙️ Configuration API

{
  data: any[],
  view?: "grid" | "pivot",

  header?: {
    title: string,
    icon?: string,
    subtitle?: string,
    badge?: string
  },

  columns: [
    {
      key: string,
      label: string,
      type?: "text" | "number" | "currency" | "badge" | "status",
      sortable?: boolean,
      align?: "left" | "right" | "center",
      badgeColors?: Record<string, string>
    }
  ],

  filters?: [
    {
      key: string,
      label: string,
      type: "select" | "date" | "text",
      options?: { label: string, value: any }[]
    }
  ],

  sort?: {
    field: string,
    direction: "asc" | "desc"
  },

  groupBy?: string[],

  aggregations?: {
    [key: string]: "sum" | "count" | "avg"
  },

  pivot?: {
    rows: string[],
    columns: string[],
    values: string[]
  },

  footer?: string,
  exportFileName?: string
}

📊 Built-in Column Types

  • text
  • number
  • currency
  • badge
  • status

🧩 Example Capabilities

Grouping

groupBy: ["module"]

Sorting

sort: { field: "revenue", direction: "desc" }

Aggregation

aggregations: { revenue: "sum", deals: "count" }

Pivot Mode

view: "pivot",
pivot: {
  rows: ["dept"],
  columns: ["quarter"],
  values: ["revenue"]
}

🛠 Development

git clone https://github.com/your-repo/erp-report-engine.git
cd erp-report-engine

npm install
npm run build

📈 Roadmap

  • Server-side processing
  • Role-based access control
  • Plugin system
  • Charts integration
  • Advanced pivot engine
  • Theming system

📄 License

MIT