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

jmeter-style-reporter

v1.2.1

Published

Enhanced performance testing and reporting system with interactive JMeter-style HTML reports, APDEX scoring, percentile calculations, Chart.js visualizations, and drill-down analytics

Downloads

59

Readme

JMeter Style Reporter

Transform your API performance data into actionable insights with automated build-to-build comparison and Jenkins dashboard widgets.

npm version License: MIT

🚀 Quick Start

Install

npm install -g jmeter-style-reporter

Generate Reports

# From CSV file
npx jmeter-style-reporter report performance-data.csv

# With Jenkins dashboard widgets
npx jmeter-style-reporter report data.csv --jenkins --embedded-charts

What You Get

  • 📊 Interactive HTML Reports - Charts, tables, drill-down analysis
  • 📈 Build Comparison - Automatic ↓ ↑ → trend indicators vs previous builds
  • 🎯 Jenkins Dashboard Widgets - Performance status directly on build page
  • ⚡ Performance Gates - Fail builds when performance degrades

Generated Output Files

jmeter-report/
├── index.html                           # 📊 Main interactive report
├── jenkins-performance-badge.html       # 🎯 Jenkins dashboard widget
├── performance-results.xml              # 📄 JUnit XML for Jenkins
├── .build-comparison.json               # 📈 Build comparison data
└── allure-report/widgets/
    ├── summary.json                     # 📊 Performance summary
    └── trend.json                       # 📈 Trend data

📊 Programmatic Usage

Generate Reports from Code

import { generateReport } from 'jmeter-style-reporter'

await generateReport({
  csv: './performance-data.csv',
  output: './reports',
  title: 'API Performance Report',
  jenkinsCompatible: true
})

Collect Performance Data

import { createCollector } from 'jmeter-style-reporter'

const collector = createCollector({ 
  outputPath: './api-performance.csv' 
})

// Record metrics
await collector.recordMetric({
  endpoint: '/api/users',
  responseTime: 245,
  statusCode: 200
})

await collector.flush() // Save to CSV

Express.js Middleware

import { performanceMiddleware } from 'jmeter-style-reporter'

const collector = createCollector({ outputPath: './metrics.csv' })
app.use(performanceMiddleware(collector))

// Automatically collects data for all API calls

🏗️ Jenkins Integration

Simple Setup

pipeline {
    agent any
    stages {
        stage('API Tests') {
            steps {
                sh 'npm run test:api'  // Generates CSV
                sh 'npx jmeter-style-reporter report performance-data.csv --jenkins'
            }
        }
    }
    post {
        always {
            // Show performance widget on build page
            publishHTML([
                reportDir: 'jmeter-report',
                reportFiles: 'jenkins-performance-badge.html',
                reportName: 'Performance Status'
            ])
            
            // Full interactive report
            publishHTML([
                reportDir: 'jmeter-report',
                reportFiles: 'index.html',
                reportName: 'Performance Report'
            ])
        }
    }
}

Jenkins Dashboard Widget

The tool automatically creates a performance widget on your Jenkins build page:

┌─────────────────────────────────────────┐
│ API Performance               Healthy   │
├─────────────────────────────────────────┤
│   Avg Response    Error Rate   Requests │
│      245ms           2.1%         150   │
│                                         │
│            ↓ 50ms faster               │
└─────────────────────────────────────────┘

📋 CSV Format

timestamp,elapsed,label,responseCode,success,bytes,sentBytes,grpThreads,allThreads,Filename
1691234567890,245,/api/users,200,true,1024,256,1,1,"API Test"
1691234568123,156,/api/products,200,true,2048,128,1,1,"API Test"

🎯 Build Comparison

  • First Build: Creates baseline performance data
  • Next Builds: Shows ↓ ↑ → trends vs previous build
  • Automatic: Uses BUILD_NUMBER environment variable
  • Smart Thresholds: 5% change determines stable vs changed

📚 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Made with ❤️ for API performance monitoring