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

@schoolaid/dynamic-reports-ui

v1.0.8

Published

This package offers a modular, scalable solution for dynamic reporting using Laravel and Vue, built on top of the said/reports API. It provides configurable report generation, filtering, export (Excel, PDF, etc.), and customizable actions with role-based

Readme

Dynamic Reports Framework

A modular Vue 3 framework for building dynamic data reports with filtering, pagination, and export capabilities.

Features

  • Flexible Report Layout: Simple integration of reports into any Vue application
  • Dynamic Filtering: Configurable filter types with extensible architecture
  • Pagination: Built-in pagination for large datasets
  • Export Options: Easy data export to various formats (Excel, CSV, PDF)
  • Action System: Table-level and row-level actions
  • Responsive Design: Mobile-friendly layout that adapts to different screen sizes

Installation

npm install @schoolaid/dynamic-reports-ui

Quick Start

// In your main.js
import { createApp } from 'vue';
import App from './App.vue';
import SaidReportsFrontend from 'said-reports-frontend';

const app = createApp(App);

app.use(SaidReportsFrontend, {
  apiUrl: '/api/reports',
  apiService: yourApiService // Optional, provide your own API service
});

app.mount('#app');
<!-- In your component -->
<template>
  <ReportContainer>
    <ReportView reportId="sales-summary" />
  </ReportContainer>
</template>

<script setup>
import { ReportContainer, ReportView } from 'said-reports-frontend';
</script>

Architecture

The project follows a component-based architecture with clear separation of concerns:

  • Components: Reusable UI components
    • Common: General-purpose UI elements
    • Filters: Filter type implementations
    • Table: Table-related components
  • Composables: Reusable logic hooks
  • Views: Page-level components

Components

Report Container

Provides the layout structure for reports with optional navigation sidebar.

<ReportContainer :showNavbar="true">
  <!-- Report content goes here -->
</ReportContainer>

Report View

Main component that manages report data, filtering, and pagination.

<ReportView 
  reportId="sales-summary"
  @report-loaded="onReportLoaded"
/>

Report Filters

Renders filter controls based on report configuration.

<ReportFilters
  :filters="filterConfig"
  @filters-applied="handleFilters"
/>

Report Table

Displays report data in a tabular format with support for custom cell rendering.

<ReportTable
  :reportData="data"
  :headers="headers"
  :actions="actions"
  @row-action-clicked="handleRowAction"
/>

Report Export Options

Provides export functionality for reports in different formats.

<ReportExportOptions
  :export-options="reportDetails.exports"
  :report-id="reportId"
  :filters="activeFilters"
  @export-complete="onExportComplete"
/>

API Configuration

Reports expect a specific API structure. The base URL is configurable:

app.use(SaidReportsFrontend, {
  apiUrl: '/api/reports'
});

API Endpoints

  • GET /:reportId - Get report configuration
  • GET /:reportId/data - Get report data
  • GET /:reportId/action/:actionId - Execute report action
  • GET /:reportId/export - Export report data

Report Configuration Format

The API should return a configuration object with the following structure:

{
  "title": "Sales Report",
  "icon": "chart-bar",
  "description": "Monthly sales analysis",
  "filters": {
    "date_range": {
      "type": "date-range",
      "label": "Date Range"
    },
    "status": {
      "type": "select",
      "label": "Status",
      "options": {
        "active": "Active",
        "pending": "Pending"
      }
    }
  },
  "headers": [
    {
      "field": "id",
      "title": "ID",
      "type": "number",
      "alignment": "left"
    },
    {
      "field": "date",
      "title": "Date",
      "type": "date",
      "alignment": "center"
    }
  ],
  "actions": [
    {
      "id": "refresh",
      "type": "table",
      "label": "Refresh"
    }
  ],
  "exports": {
    "excel": {
      "label": "Excel",
      "icon": "file-excel",
      "format": "xlsx"
    },
    "csv": {
      "label": "CSV",
      "icon": "file-csv",
      "format": "csv"
    }
  },
  "pagination_enabled": true
}

Extending

Adding New Filter Types

  1. Create a new filter component in src/components/filters/
  2. Update the ReportFilters component to include your new filter type
  3. The filter must emit an 'update:modelValue' event with the updated value

Custom Cell Renderers

You can extend the ReportTable component to support custom cell renderers for different data types.

Adding New Export Formats

The export system supports any format provided by your backend. To add a new export format:

  1. Add the format to your API's export endpoint
  2. Include the format in the report configuration's exports object
  3. The ReportExportOptions component will automatically display the new format

License

MIT