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

@sheetom/wasm

v0.2.1

Published

First-class WebAssembly backend for SheetOM

Readme

@sheetom/wasm

Explicit, ESM-only WebAssembly backend for SheetOM.

import { createSheetOM } from "@sheetom/wasm";

const { CSSStyleSheet } = await createSheetOM();
const sheet = new CSSStyleSheet();
sheet.insertRule(".card { color: red; }");

The default factory resolves sheetom_wasm_bg.wasm relative to the package module, initializes it once per JavaScript realm, and shares concurrent calls:

const [first, second] = await Promise.all([createSheetOM(), createSheetOM()]);
console.log(first === second); // true

Serve the .wasm asset with Content-Type: application/wasm to use streaming instantiation. The loader falls back to buffered instantiation when the server uses another MIME type. It requires neither WASI nor cross-origin isolation and works in a module worker through the same async factory.

Pass a URL, Response, ArrayBuffer, or precompiled WebAssembly.Module to create an independent backend:

const response = await fetch(new URL("./engine.wasm", import.meta.url));
const isolated = await createSheetOM(response);

Each independent facade has distinct class identity, so use constructors from the same returned object for instanceof. Unexpected WebAssembly traps poison only that backend and become SheetOMWasmBindingError errors; ordinary CSS validation and Resource Budget errors keep the same transactional behavior as the native package.

The package never acts as an automatic fallback for sheetom, never installs native binaries, and does not modify globalThis. Its JavaScript imports are fully static, so Vite, esbuild, Rollup, and Webpack can analyze the complete runtime. The external .wasm asset must remain beside the emitted SheetOM module (or be relocated by the bundler while rewriting new URL(...)); it is not embedded into JavaScript. See the root project documentation for the full API, resource-budget, and compatibility contracts.