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

@fluid-ds/qr

v0.0.3-alpha.0

Published

Themable QR code web component for Fluid (expansion pack), rendered as crisp inline SVG. Backed by qrcode-generator.

Readme

@fluid-ds/qr

Fancy, logo-embeddable QR-code web component for Fluid, rendered as crisp inline SVG so it scales without aliasing. Embed a center logo, reshape the modules and finder eyes, paint a gradient, drop the code over a background image (artistic mode), and export to PNG. Backed by qrcode-generator. Expansion pack.

<fluid-qr-code value="https://example.com" size="200"></fluid-qr-code>

Install

pnpm add @fluid-ds/qr
import "@fluid-ds/qr/define";

Logo overlay

Setting logo knocks out a padded quiet area in the center and draws the image on top. It automatically raises error correction to H so the covered modules still scan.

<fluid-qr-code
  value="https://example.com"
  logo="/brand-mark.svg"
  logo-size="0.24"
></fluid-qr-code>

Module and eye styling

<fluid-qr-code
  value="https://example.com"
  module-shape="dots"
  eye-shape="circle"
  eye-color="#4f46e5"
  eye-color-top-left="#db2777"
  gradient-from="#4f46e5"
  gradient-to="#db2777"
></fluid-qr-code>

Artistic mode

Renders logo full-bleed behind semi-opaque dotted modules. Forces ec-level to H. Decorative-first: scan-test on a real phone before shipping.

<fluid-qr-code value="https://example.com" artistic logo="/photo.jpg"></fluid-qr-code>

Export

const el = document.querySelector("fluid-qr-code");
const dataUrl = await el.toDataURL(); // PNG data URL
await el.download("my-qr.png");        // browser download

Props

| Prop | Default | Description | | --- | --- | --- | | value | "" | The data to encode | | size | 160 | Pixel size of the rendered code | | ec-level | "M" | Error correction: L, M, Q, H (forced to H with logo/artistic) | | fill | token | Module color (falls back to --fluid-qr-color) | | background | token | Background color (falls back to --fluid-qr-bg) | | margin | 2 | Quiet-zone margin, in modules | | label | "" | Accessible name; derived from value when empty | | module-shape | "square" | square, dots, rounded | | eye-shape | "square" | square, rounded, circle | | eye-color | token | Finder-eye color (falls back to --fluid-qr-eye-color) | | eye-color-top-left / -top-right / -bottom-left | "" | Per-eye color override | | gradient-from / gradient-to / gradient-angle | "" / "" / 45 | Linear gradient module fill | | logo | "" | Center logo URL / data URI (forces ec-level=H) | | logo-size | 0.22 | Logo fraction of the code (clamped to 0.3) | | logo-padding | 0.5 | Knockout padding, in modules | | logo-background | token | Knockout plate color (falls back to --fluid-qr-logo-bg) | | logo-radius | 1 | Knockout plate corner radius, in modules | | artistic | false | Full-bleed background image behind dotted modules | | artistic-opacity | 0.85 | Module opacity in artistic mode |

Theming

Every painted role reads a component-scoped token that falls back to a Fluid semantic variable, so one rule themes every QR on the page:

[data-fluid-brand="custom"] fluid-qr-code {
  --fluid-qr-color: var(--fluid-color-primary);
}

Tokens: --fluid-qr-color, --fluid-qr-bg, --fluid-qr-eye-color, --fluid-qr-logo-bg, --fluid-qr-logo-radius, --fluid-qr-gap.

License

MIT, © Fluid contributors. qrcode-generator is MIT-licensed.