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

webglqualifier

v0.2.0

Published

WebGL quality benchmarker

Readme

WebGLQualifier

WebGLQualifier is a simple way to qualify the 3d capabilities of the browser. Instead of having a user choice for quality (low, medium, high, ...), it will fast benchmark the webgl performance.

How does it work ?

Actually, the benchmark is entirely done with a shader. It is a shader using raymarching to stress the graphic card. It will calculate the FPS during the rendering and will qualify the quality according to the FPS. That's all.

Why raymarching ?

First, the benchmark needs to rapidly qualify the performance (at the beginning of a website, for example). So I used raymarching because it is shader intensive, and if the graphic card is capable of supporting this, it should be able to support a lot of polygons and post-processing effects. Actually the shader is a very basic raymarching example (that you can watch if you add showBenchmark: true to the options).

Usage

General

<script src="dist/WebGLQualifier.js"></script>
<script>
    // create qualifier
    var qualifier = new WebGLQualifier();

    // launch benchmark
    console.log('starting benchmark...');
    qualifier.benchmark(function(fps, qualityName, qualityValue) {
        console.log('benchmark results : ' + qualityName + ' (' + qualityValue + ') / ' + fps + 'fps');
    });
</script>

Options

You can pass various options to the qualifier :

new WebGLQualifier({
    benchmarkDuration: 5,
    qualityRange: [20, 40],
    qualityNames: ['low', 'medium', 'high'],
    showBenchmark: true,
    ...
});
  • benchmarkDuration (default: 2) : duration of the benchmark
  • benchmarkVertexShader : vertex shader used for benchmarking (warning: modify it at your own risks)
  • benchmarkFragmentShader : fragment shader used for benchmarking (warning: modify it at your own risks)
  • qualityRange (default: [15, 30, 45, 56]) : FPS will return an index according to this array (0 if FPS<15, 1 if 15<=FPS<30... 4 if FPS>=56)
  • qualityNames (default: ['ultralow', 'low', 'medium', 'high', 'ultrahigh']) : name of the quality range index. this array length must be qualityRange array length + 1
  • showBenchmark (default: false) : display the rendering during the benchmark

Installation

npm install

Development

gulp

Production

gulp build

Output directory is dist/

More Information

License

MIT-License (see LICENSE file).