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

@oliverrr2424/liquid-glass

v0.1.1

Published

A WebGL liquid glass renderer with Apple-style continuous corners, app surface presets, refraction, blur, and glow controls.

Downloads

274

Readme

@oliverrr2424/liquid-glass

WebGL liquid glass renderer for Apple-style continuous corners, folder/card/pill/circle presets, refraction, full-surface blur, rim glow, drag, and resize interactions.

Install

npm install @oliverrr2424/liquid-glass

Vanilla JavaScript

import { LiquidGlass } from "@oliverrr2424/liquid-glass";

const glass = new LiquidGlass(document.querySelector("canvas"), {
  shape: "folder",
  refraction: 0.46,
  blur: 0.92,
  glow: 2
});

glass.setOptions({ shape: "pill", width: 360, height: 128 });

The canvas should have CSS dimensions:

canvas {
  width: 100vw;
  height: 100vh;
}

React

import { LiquidGlassView } from "@oliverrr2424/liquid-glass/react";

export function App() {
  return (
    <LiquidGlassView shape="folder" refraction={0.46} glow={2}>
      <div className="icons">Your UI overlay</div>
    </LiquidGlassView>
  );
}

Options

| Option | Default | Notes | | --- | ---: | --- | | shape | "folder" | "app-icon", "folder", "card", "pill", "circle", or "custom" | | width / height | preset size | Glass surface size in CSS pixels | | centerX / centerY | 0.51 / 0.45 | Normalized viewport position | | cornerShape | 5.65 | Superellipse exponent for continuous corners | | refraction | 0.46 | Rim refraction strength | | edgeSpread | 1.32 | Rim spread and diffusion | | blur | 0.92 | Whole in-glass blur amount | | glow | 2 | Rim glow strength | | dpr | 1.5 | Device pixel ratio cap | | interactive | true | Enables pointer events | | draggable | true | Drag the glass surface | | resizable | true | Resize from the edge |

Presets

import { LIQUID_GLASS_PRESETS } from "@oliverrr2424/liquid-glass";

Included presets: app-icon, folder, card, pill, circle.

Development

npm run check
npm pack --dry-run
npm run example