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

@glslop/core

v0.1.2

Published

glslop's ISF shader engine: parser, WebGL2 runtime, compile-cost estimator, feature extraction, video export. Framework-free, browser and worker safe.

Readme

@glslop/core

The shader engine behind glslop.com and glslop studio: an ISF parser, a WebGL2 renderer (multipass, feedback, image inputs), a static compile-cost estimator, feature extraction, and client-side video export. Framework-free TypeScript that runs on the main thread or in a worker (OffscreenCanvas). CC0: public domain, no attribution needed.

npm install @glslop/core
# for video export also: npm install mediabunny gifenc

Each module is its own entry point, so you only pay for what you import:

import { parseISF } from '@glslop/core/parse';
import { GlslopRenderer, renderPosterFrame, runtimeConfig } from '@glslop/core/runtime';

runtimeConfig.posterBase = 'https://glslop.com'; // where image-input textures come from (see below)

const canvas = document.querySelector('canvas')!;
const r = new GlslopRenderer(canvas);
const res = await r.load(isfSource);
if (!res.compileOk) console.error(res.errors); // "compile: line 12: 'foo' : undeclared identifier"

r.resize(canvas.width, canvas.height);
const loop = (t: number) => { r.draw(t / 1000); requestAnimationFrame(loop); };
requestAnimationFrame(loop);

| Entry point | What it does | |---|---| | @glslop/core/parse | parseISF(src): the JSON header, inputs and passes of an ISF shader | | @glslop/core/runtime | GlslopRenderer (load, draw, inputs, readPixels), poster/timeline/capture helpers, runtimeConfig | | @glslop/core/budget | loopBudget(isf): static estimate of how heavy a shader is to compile on Windows (D3D11/FXC) | | @glslop/core/extract | extractFeatures(isf): techniques and vocabulary glslop uses for tags and technique pages | | @glslop/core/export-video | exportVideo(isf, opts): MP4/WebM (mediabunny) or GIF (gifenc), in the browser | | @glslop/core/auto-motion | knob automation for exported clips | | @glslop/core/highlight | highlightIsf(src): HTML syntax highlighting for ISF | | @glslop/core/jitter | the browse grid's deterministic per-card tilt | | @glslop/core/glsl-pages | the technique pages' content | | @glslop/core/limits | MAX_ISF_BYTES: the size glslop.com accepts | | @glslop/core/types, compile-wait, avc-config, vocab | supporting types and helpers |

runtimeConfig

Set once per JS realm (the page, and again inside each worker) before loading shaders:

  • posterBase: origin that shader posters (image inputs) are fetched from. '' (default) means root-relative, which is right on glslop.com itself. Anywhere else, set 'https://glslop.com'.
  • textureUrl(shaderId): override where a source shader's still comes from, e.g. a local cache.
  • captureTranslated: keep the driver's translated source in renderer.lastCompile (off by default; it is a large string for heavy shaders).
  • blockingCompile: skip KHR_parallel_shader_compile, so load() blocks for exactly the driver's time. Useful for cost measurements in hidden windows, where timers are throttled.

Notes

  • ISF here means glslop's dialect: GLSL ES 1.00 bodies with an ISF JSON header, rendered in WebGL2. See https://glslop.com/isf.txt.
  • Shipped as compiled ES2022 JavaScript with type declarations, plus the TypeScript source and source maps. Developed in https://github.com/kylegrover/glslop-studio (packages/core).
  • Pre-1.0: minor versions may change APIs. Pin ~0.1.0 if that matters to you.