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

@zuru-visuals/wish

v1.2.0

Published

To install dependencies:

Readme

@zuru/wish

A WebGL rendering library for creating effects and animations using fragment shaders. It simplifies setting up a WebGL2 context, managing shaders, uniforms, and the rendering loop. It also exposes a compile function that allows you to code glsl shaders in a simpler way, with a different function signature that I might explain here one day if anyone uses it except for me.

Features

  • Double buffering for feedback loops.
  • Automatic uniform injection and implicit uniforms.
  • Handles canvas resizing and resolution changes.

Usage

Import the make function and provide a canvas element, an optional initial image, and your fragment shader source.

const { make } = await import("./Wish.mjs");
const canvas = document.getElementById("canvas");
const render = await make({
  canvas,
  fragmentShader: `
      vec3 render(vec2 uv, vec3 last) {
        return vec3(uv.x, 0.5, uv.y);
      }
    `,
});
requestAnimationFrame(() => {
  requestAnimationFrame(render);
  render();
});

Provided Uniforms

The library automatically provides the following uniforms to your fragment shader:

  • uniform vec2 resolution;: The current resolution of the rendering buffer.
  • uniform float time;: Time in seconds since initialization.
  • uniform int frame;: The current frame number.
  • uniform sampler2D prevFrame;: The texture from the previous frame (or the initial image on the first frame).
  • a suite of animation functions
  • hsl color functions

You can pass additional uniforms or update the shader/features by passing an object to the render function.

Development

Running the Demo

npm start

This will start a local server (usually at http://localhost:7355) serving index.html and demo.html.

Running Tests

npm test

This uses Playwright to run automated tests defined in tests.mjs.

License

MIT