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

fuzzmatic

v0.0.3

Published

Generates sets of data for fuzz testing.

Readme

fuzzmatic

Generates sets of data for fuzz testing.

Click here to support my work

Features

  • Generates sets of valid and invalid data that can be used to test JavaScript/TypeScript functions and REST APIs.
  • Generates data from a JSON schema.
  • CLI tool:
    • Input a JSON schema in JSON or YAML format.
    • Outputs JSON format.

CLI usage

Install it:

npm install -g fuzzmatic

Run it on a JSON schema:

fuzzmatic a-json-schema.json

Run it on a JSON schema in YAML format:

fuzzmatic a-json-schema.yaml

Generated data is output to the console.

API usage

Install it in your project:

npm install fuzzmatic

Require it in your code:

const fuzzmatic = require("fuzzmatic");

Load your JSON schema and generate data from it:

const fs = require("fs");

const schema = JSON.parse(fs.readFileSync("a-json-schema.json", "utf-8"));
const data = fuzzmatic.generateData(schema);
console.log(data);

If you want to load your JSON schema from a YAML file you need to install the YAML parser:

npm install yaml

Then load and parse the YAML file, before generating data from it:

const fs = require("fs");
const yaml = require("yaml");

const schema = yaml.parse(fs.readFileSync("a-json-schema.yaml", "utf-8"));
const data = fuzzmatic.generateData(schema);
console.log(data);

Development

Getting the code

Clone it from GitHub:

git clone [email protected]:ashleydavis/fuzzmatic.git

Compiling the TypeScript code

Open folder in Visual Studio Code and hit Ctrl+Shift+B

Or

cd fuzzmatic
npm run compile

Debugging

  • Open in Visual Studio Code.
  • Select 'Main' debug configuration.
  • Select the 'Test All' or 'Test Current' debug configuration to debug all tests or the current test file.
  • Set your breakpoints.
  • Hit F5 to run.

Build and run

Compile the application:

npm run compile

The run the compiled JavaScript:

npm start

Running without building

Run the command line app directly:

npm run start:dev

Running the tests

Run tests directly:

npm test

Or:

npm run test:watch

See package.json for more scripts!