@gridstorm/analytix-report-builder
v0.1.1
Published
Builder-pattern report composer with PDF and Excel export
Readme
@gridstorm/analytix-report-builder
Builder-pattern report composer for Analytics Studio — export to PDF and Excel on a schedule or on demand.
Install
npm install @gridstorm/analytix-core @gridstorm/analytix-report-builderQuick Start
import { ReportBuilder } from '@gridstorm/analytix-report-builder';
const report = new ReportBuilder()
.title('Q4 Sales Report')
.addSection('Executive Summary', kpiWidget)
.addSection('Regional Breakdown', pivotWidget)
.addSection('Trend Analysis', chartWidget)
.footer('Generated by Analytics Studio')
.build();
// Export to PDF
const pdf = await report.exportPDF();
// Export to Excel
const xlsx = await report.exportExcel();
// Schedule weekly export
report.schedule({ cron: '0 9 * * MON', format: 'pdf', email: '[email protected]' });Features
- Builder pattern — compose reports programmatically
- PDF export with custom headers, footers, and page breaks
- Excel export with multiple sheets and formatting
- Scheduled reports with cron expressions
- Include charts, pivot tables, KPIs, and data tables
Links
License
MIT © Tekivex
