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

@gomani/assets

v0.6.0

Published

The framework-owned asset pipeline: optimised images, subsetted fonts, and cacheable output.

Readme

@gomani/assets

The framework-owned asset pipeline for Gomani: optimised images, subsetted fonts, and cacheable output — automatically.

Because images, fonts, and media usually dominate bytes, Gomani owns them (P6): the developer who simply references an asset inherits optimised, correctly-sized, cacheable output. The client-safe entry is the <Image> primitive + the registry; the Node-only processing (sharp, font subsetting) lives at @gomani/assets/build, so a client bundle never pulls in a native dependency.

Images

Drop source images in assets/ and reference them with <Image>:

import { Image } from '@gomani/assets';

<Image src="hero.jpg" alt="A woven banner" sizes="(max-width: 760px) 100vw, 720px" />;

gomani build transcodes each source to AVIF + WebP + a baseline raster at responsive widths, writes content-hashed files, and generates a blur placeholder. <Image> emits a <picture> with the modern formats, a responsive srcset, intrinsic width/height (no layout shift), loading="lazy", and the placeholder — and on the lean network tier it withholds the large variants. In dev (unprocessed) it degrades to a plain <img>.

_gomani/assets/hero-400.<hash>.avif   5.3 KB
_gomani/assets/hero-800.<hash>.avif  12.5 KB
_gomani/assets/hero-1200.<hash>.webp 20.4 KB   … + webp + jpeg at each width

Fonts

Drop fonts in assets/fonts/ and reference the family (by filename) in your CSS with a system-font fallback:

.title {
  font-family: 'Display', system-ui, sans-serif;
}

gomani build subsets each font per route, to exactly that page's glyphs — the multilingual↔subsetting tension resolved by subsetting on actual content, not the font's total capability — writes a content-hashed woff2, and injects the @font-face (with font-display: swap) into the page's head. A page ships only the glyphs its language and text require; scripts absent from a page cost it nothing.

License

MIT © Venancio Gomani / Kwacha Kulture.