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

webinfer

v0.0.5

Published

High-performance LLM inference kernels for WebGPU

Readme

WebInfer

npm version License

High-performance LLM inference kernels for WebGPU. A browser-native implementation of FlashInfer APIs.

Why WebInfer?

Running LLMs in the browser requires efficient GPU kernels. WebInfer brings FlashInfer's battle-tested attention mechanisms to WebGPU:

  • Flash Attention: Online softmax with O(1) memory for long sequences
  • Subgroup Optimizations: 2-4x faster reductions on supported hardware
  • JIT Compilation: Runtime kernel generation with pipeline caching
  • Dynamic Tile Sizes: Auto-tuned tile dimensions based on workload and hardware

Installation

npm install webinfer

Quick Start

import * as webinfer from 'webinfer';

// Initialize context
const ctx = await webinfer.WebInferContext.create();

// Run RMSNorm
const output = ctx.norm.rmsnorm(input, weight, epsilon);

// Flash attention decode
const attnOutput = ctx.decode.single_decode_with_kv_cache(
  query,      // [num_heads, head_dim]
  kv_cache,   // [seq_len, 2, num_kv_heads, head_dim]
);

Browser Compatibility

WebInfer requires WebGPU support:

| Browser | Status | |---------|--------| | Chrome 113+ | Supported | | Edge 113+ | Supported | | Firefox Nightly | Behind flag | | Safari 18+ | Supported |

Check for WebGPU support:

if (!navigator.gpu) {
  console.error('WebGPU not supported');
}

Development

# Run tests
bun test

# Build
bun run build

Acknowledgments

Citation

If you use WebInfer in your research, please cite:

@software{webinfer2025,
  author       = {Guan-Ming, Chiu},
  title        = {WebInfer: High-Performance LLM Inference Kernels for WebGPU},
  year         = {2026},
  url          = {https://github.com/guan404ming/webinfer}
}

License

Apache-2.0