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

liqvued

v0.1.1

Published

Liquid-glass for Vue

Readme

Liqvued (Liquid Vue)

npm npm GitHub

A Vue 3 component for creating liquid glass effects using SVG filter primitives. Generates realistic SVG displacement maps on the fly.

Inspired by Liquid Glass CSS/SVG

Documentation

View Documentation & Demo

Features

  • Real-time SVG filter generation — displacement maps computed via Canvas API
  • Multiple surface types — convex, concave, lip
  • Configurable optics — bezel width, corner radius, displacement thickness, refraction index, glare angle
  • Built-in glassmorphism styling — gradient backgrounds, inset shadows, highlight overlays
  • TypeScript — full type definitions
  • Lightweight — minimal runtime dependencies beyond Vue
  • Flexible compositionas prop allows rendering as any HTML element or component

Installation

pnpm add liqvued

Usage

<script setup lang="ts">
import { Liqvued } from 'liqvued'
</script>

<template>
  <div style="background: url('bg.jpg') center/cover;">
    <Liqvued
      :radius="32"
      :bezel="22"
      :thickness="42"
      :refraction="1"
      :blur="0.4"
      surface="convex"
    >
      <p>Content behind the glass</p>
    </Liqvued>
  </div>
</template>

Props

| Prop | Type | Default | Description | |-----------------|---------------------|------------|---------------------------------------------------------------------------------| | radius | number | 32 | Corner radius in pixels | | bezel | number | 22 | Width of the displacement bezel in pixels | | thickness | number | 42 | Maximum displacement magnitude in pixels | | refraction | number | 1 | Refraction index multiplier | | blur | number | 0.4 | CSS backdrop-filter blur amount | | surface | string | 'convex' | Glass surface profile shape | | specularOpacity | number | 0.45 | Opacity of the specular highlight | | glareAngle | number | -60 | Light source angle in degrees for specular highlight | | glassBackground | string | — | Glass panel background color (auto-derived from asProps.color when available) | | as | string | Component | 'div' | HTML tag or Vue component to render as | | asProps | object | {} | Props passed to the rendered element/component |

Surface Types

  • convex — squircle convex profile — soft pill-like edges
  • concave — inverted convex — inward-curving dish-like refraction
  • lip — smooth transition from convex at center to concave at edge

Dynamic Element Rendering

Use the as prop to render the glass effect on any element or component:

<template>
  <Liqvued as="section" :as-props="{ class: 'my-panel' }">
    <p>Section with glass effect</p>
  </Liqvued>
</template>

Browser Compatibility

| Browser | Effect | |-------------------------|-----------------------------------------------------------------------------------| | Chrome / Edge / Opera | ✅ Full liquid glass (SVG backdrop-filter) | | Safari / Firefox | ❌ Glassmorphism blur fallback (auto-detected via CSS.supports() + UA check) |

The fallback applies backdrop-filter: blur(12px) with a subtle border and shadow, so the component still looks like frosted glass in unsupported browsers. SVG filter generation is skipped entirely in fallback mode — no unnecessary CPU/GPU work.

How It Works

The component generates a per-pixel displacement map as an RGBA PNG (red/green channels encode X/Y displacement vectors), injects it into an SVG <feDisplacementMap> filter, and applies it via backdrop-filter combined with CSS blur. The surface profile functions (convex, concave, lip) define the slope at each point along the bezel, which determines the displacement magnitude. A separate specular highlight map is generated and composited via feBlend to simulate surface lighting.

License

MIT — see LICENSE