lrlqip weekly downloads statistics
By tremby · npm · Tailwind plugins
Encoder and decoder stylesheets for Lean Rada's CSS-only LQIP scheme
lrlqip has 799 recorded weekly downloads on npm, ranking #2139 of 3,247 tracked listings.
About lrlqip
lrlqip
Encoder and decoder for Lean Rada's CSS-only LQIP scheme.
The encoder, a Rust command-line tool
bundled here as a binary, turns an image into one integer at build time.
Put it in a --lqip custom property,
and the decoder stylesheet renders a blurry placeholder until the image loads,
with no Javascript in the browser.
<img src="photo.jpg" loading="lazy" style="--lqip:-92437" width="300" height="225">
Encoder
From a shell
npx lrlqip photo.jpg prints the integer for one image.
Given several images or directories,
it prints results by path (--format) or keeps them in a datafile (-d),
which lets later runs skip unchanged images:
npx lrlqip -d lqip.json --strip 1 public/img
See the options
in the encoder's readme, or --help for the details.
Binaries are bundled for linux-x64, linux-arm64, darwin-x64, darwin-arm64,
and win32-x64 (which Windows on ARM runs under emulation).
Elsewhere, build the Rust crate and set LRLQIP_BINARY to its path.
From Javascript
lrlqip/encoder wraps the binary for Node.
import { encode, encodeMany } from "lrlqip/encoder";
// The integer, or null if the image has transparent pixels
const lqip = await encode("public/img/photo.jpg");
// Integers by key; takes the strip, prefix, jobs, and background options
const lqips = await encodeMany(["public/img"], { strip: 1 });
// { "img/photo.jpg": -92437, "img/other.png": 1234, … }
Both reject with the binary's message if an image can't be read or decoded.
Each encode starts a process, so for many images use encodeMany.
To use a datafile from Node,
run the binary (at binaryPath()) to update it, then read it:
import { execFileSync } from "node:child_process";
import { readFileSync } from "node:fs";
import { binaryPath } from "lrlqip/encoder";
execFileSync(binaryPath(), ["--strip", "1", "-d", "lqip.json", "public/img"]);
const lqip = JSON.parse(readFileSync("lqip.json", "utf8"))["img/photo.jpg"].lqip;
Decoder
The decoder is one CSS rule,
needing modern CSS
(mod(), round(), relative colours, oklab(), and background-blend-mode).
By default it applies to elements with --lqip in their inline style
that are loading=lazy, preload=none, or .force-lqip.
The forms other than plain CSS let you choose your own selector.
Plain CSS
With a bundler, import lrlqip/decoder/decoder.css from JS or CSS.
Otherwise, copy decoder/decoder.css from the package.
Sass
Needs Dart Sass 1.69 or later.
@use "lrlqip/decoder/sass" as lqip;
@include lqip.rule; // the default selector
@include lqip.rule(".thumbnail"); // your selector
.card img { @include lqip.decoder; } // inside a rule of your own
The default selector can also be set with
@use "lrlqip/decoder/sass" as lqip with ($selector: ".lqip");.
Tailwind CSS
Needs Tailwind 4.
@plugin "lrlqip/decoder/tailwind"; /* the default selector */
@plugin "lrlqip/decoder/tailwind" { selector: ".lqip"; } /* your selector */
Javascript
For CSS-in-JS and other tooling:
import { selector, declarations } from "lrlqip/decoder";
Import paths
| Import | What it is |
|---|---|
lrlqip/encoder | encode, encodeMany, and binaryPath (Node only) |
lrlqip/decoder | selector and declarations as data |
lrlqip/decoder/decoder.css | the plain stylesheet |
lrlqip/decoder/sass (or …/sass.scss) | Sass mixins |
lrlqip/decoder/tailwind | the Tailwind 4 plugin |
There is no root export, so using one half never loads the other. The JS modules work as ES modules and CommonJS, with Typescript types.
Description from the npm listing.
- lqip
- placeholder
- blur
- image
- css
- sass
- tailwind
- tailwindcss-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Tailwind plugins plugins
All 20 lrlqip alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/lrlqip. First seen Nov 30, 2026; last successful collection Dec 6, 2026. See the methodology.