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

perfweaver

v0.1.8

Published

Convert browser HAR traffic into structured load-testing scripts for JMeter, k6, Gatling, Locust, and Playwright

Readme

Convert browser HAR (HTTP Archive) traffic into structured load-testing scripts for multiple performance testing tools.

PerfWeaver Flow

Features

  • HAR Parsing: Extract and structure HTTP requests from browser recordings
  • Behavior Modeling: Detect sequential blocks, parallel execution, and transaction boundaries
  • Correlation Engine: Auto-detect and extract dynamic values (tokens, session IDs, etc.)
  • Smart Parameterization: Replace environment-specific values with configurable variables
  • Think-Time Modeling: Simulate realistic user pacing based on HAR timestamps
  • Multi-Tool Support: Generate scripts for:
    • Apache JMeter
    • k6
    • Gatling
    • Locust
    • Playwright (API load mode)

Architecture

The system uses a layered architecture to ensure extensibility:

HAR Input
    ↓
HAR Parsing Engine
    ↓
Behavior Modeling Engine
    ↓
Correlation Engine
    ↓
Parameterization Engine
    ↓
Tool Adapters
    ↓
Generated Load Test Scripts

Installation

Install from npm:

npm install perfweaver

You can also use it via npx without installation:

npx perfweaver analyze example.har

For development:

git clone https://github.com/ashwin-ak/perfweaver.git
cd perfweaver
npm install
npm run build

Or for development:

git clone <repo>
cd perfweaver
npm install
npm run build

Quick Start

Generate a JMeter Script

perfweaver generate --tool jmeter --har login.har --output login.jmx

Generate a k6 Script

perfweaver generate --tool k6 --har checkout.har --output checkout.js

Analyze HAR File

perfweaver analyze login.har

Visualize HAR Structure

perfweaver visualize login.har --output report.html

Configuration

Create a perfweaver.config.yaml in your project root:

filters:
  ignoreExtensions:
    - png
    - jpg
    - gif
    - css
    - woff
    - woff2
    - ttf
    - svg
  ignoreResourceTypes:
    - image
    - stylesheet
    - font
    - media

parallelDetection:
  overlapThresholdMs: 40

correlation:
  enableAutoCorrelation: true
  extractors:
    - type: json
    - type: regex
    - type: xpath

parameterization:
  envVars:
    - BASE_URL
    - AUTH_TOKEN
    - USER_ID

loadModel:
  threadCount: 10
  rampUpTime: 60
  duration: 300
  iterations: 1

tools:
  enabled:
    - jmeter
    - k6
    - gatling

Module Structure

  • core/har-parser: Parse and extract HAR data
  • core/behavior-model: Detect transactions and request relationships
  • core/correlation-engine: Auto-detect dynamic values
  • core/parameterization: Replace values with variables
  • core/think-time: Model user pacing
  • core/load-model: Configure load profiles
  • adapters/: Tool-specific script generators
  • cli/: Command-line interface
  • tests/: Unit and integration tests

Usage Examples

See the examples directory for sample HAR files and generated scripts.

Documentation

Complete user and developer guides are available in the docs/ folder:

Contributing

Contributions are welcome! Please follow the coding standards and add tests for new features.

License

MIT

Author

Ashwin Kulkarni