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

@blurwind/core

v0.4.0

Published

Framework-agnostic build-time engine for generating LQIP blur placeholders.

Readme

@blurwind/core

Framework-agnostic, build-time engine for generating LQIP blur placeholders.

@blurwind/core scans your source for image references, loads each image (remote CDN or local disk), turns it into a tiny blurred data: URI via a pluggable strategy, and writes a deterministic manifest. It imports no framework and only depends on sharp.

Most apps drive this through @blurwind/cli. Use the programmatic API directly when you need a custom pipeline or your own strategy.

Install

pnpm add -D @blurwind/core

Programmatic usage

import { createGenerator, resolveConfig } from '@blurwind/core'

const config = resolveConfig({
  scanDir: 'app',
  baseURL: process.env.ASSET_CDN_PATH,
  output: { dir: 'app/constants', file: 'blur-data.ts' }
})

const result = await createGenerator(config).run()
// { found, generated, reused, failed, written, durationMs }

Configuration

resolveConfig(user) fills every gap with a default. All fields are optional.

| Option | Type | Default | | --- | --- | --- | | scanDir | string \| string[] | 'src' | | ignoreDirs | string[] | node_modules, .next, .git, dist, build, … | | extensions | RegExp | /\.(tsx?\|jsx?\|mjs\|cjs\|mdx?\|astro\|vue\|svelte\|html)$/ | | match | RegExp | broad image-URL / path matcher | | baseURL | string | '' (falls back to $BLURWIND_BASE_URL) | | publicDir | string | 'public' (used when baseURL is empty) | | strategy | string | 'blur' | | blur | { size, radius, format, quality } | { 10, 1.5, 'webp', 40 } | | fetch | { attempts, backoffMs, timeoutMs?, headers? } | { 3, 1000 } | | output.dir | string | 'src/generated' | | output.file | string | 'blur-manifest.ts' | | output.formats | ('ts' \| 'json')[] | ['ts'] | | output.tsExportName | string | 'BLUR_DATA_URLS' | | concurrency | number | 4 | | cache | { enabled, dir } | { false, node_modules/.cache/blurwind } | | failSafe | boolean | true | | logLevel | 'silent' \| 'error' \| 'warn' \| 'info' \| 'debug' | 'info' |

Custom strategies

A strategy receives raw bytes plus an injected sharp factory and returns a placeholder value. Register it on the generator:

import { createGenerator, resolveConfig, type Strategy } from '@blurwind/core'

const shimmer: Strategy<'shimmer'> = {
  name: 'shimmer',
  async generate({ sharp, bytes }) {
    const { width, height } = await sharp(bytes).metadata()
    const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}"/>`
    return { value: `data:image/svg+xml;base64,${Buffer.from(svg).toString('base64')}`, width, height }
  }
}

await createGenerator(resolveConfig({ strategy: 'shimmer' })).use(shimmer).run()

Manifest shapes

  • ts — a flat Record<string, string> const (src → data URI). Byte-stable output; zero runtime cost to import.
  • json — the versioned Manifest ({ version, generatedAt, entries }) with per-entry metadata for tooling.

Read them with @blurwind/runtime's resolvePlaceholder, which accepts either shape.

License

MIT © Benyamin Khodadadi