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

@daisigu/vue-liquid-glass

v1.0.4

Published

A beautiful Vue 3 component that creates a stunning liquid glass morphism effect using SVG filters and backdrop blur

Downloads

207

Readme

vue-liquid-glass

Vue 3 component and directive for creating stunning liquid glass effect using SVG filters and backdrop blur

npm version License: MIT Vue 3

🎨 Live Demo | 📦 npm | 🐙 GitHub

Demo

Installation

npm install @daisigu/vue-liquid-glass
yarn add @daisigu/vue-liquid-glass
pnpm add @daisigu/vue-liquid-glass

Component Usage

<template>
  <VGlass :blur="10" :scale="30" :base-frequency="0.015">
    <div class="content">
      <h1>Glass Effect</h1>
      <p>Beautiful liquid glass morphism</p>
    </div>
  </VGlass>
</template>

<script setup>
import { VGlass } from '@daisigu/vue-liquid-glass'
</script>

<style scoped>
.content {
  padding: 2rem;
  color: white;
}
</style>

Component Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | as | string | "div" | HTML tag for root element | | blur | number | 0 | CSS blur in pixels (backdrop-filter) | | scale | number | 20 | Displacement strength | | baseFrequency | number | 0.01 | Turbulence frequency | | xChannelSelector | "R" \| "G" \| "B" \| "A" | "R" | X axis color channel for displacement | | yChannelSelector | "R" \| "G" \| "B" \| "A" | "G" | Y axis color channel for displacement | | numOctaves | number | 2 | Turbulence detail level |

Directive Usage

Directive Installation

import { createApp } from 'vue'
import { vGlassDirective } from '@daisigu/vue-liquid-glass'

const app = createApp(App)
app.directive('liquid-glass', vGlassDirective)
app.mount('#app')

Directive Configuration

You can configure default values when creating the directive:

import { createApp } from 'vue'
import { createVGlassDirective } from '@daisigu/vue-liquid-glass'

const app = createApp(App)

// Create directive with custom default values
app.directive('liquid-glass', createVGlassDirective({
  blur: 10,
  scale: 30,
  baseFrequency: 0.015
}))

app.mount('#app')

Using the Directive

<template>
  <!-- Without parameters (uses default values) -->
  <div v-liquid-glass class="glass-card">
    <h2>Glass Card</h2>
  </div>

  <!-- With configuration object -->
  <div v-liquid-glass="{ blur: 15, scale: 40, baseFrequency: 0.02 }" class="glass-card">
    <h2>Custom Glass Card</h2>
  </div>
</template>

<style scoped>
.glass-card {
  padding: 2rem;
  color: white;
  border-radius: 12px;
}
</style>

Directive Parameters

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | blur | number | 2 | CSS blur in pixels | | scale | number | 40 | Displacement strength | | baseFrequency | number | 0.01 | Turbulence frequency | | xChannelSelector | "R" \| "G" \| "B" \| "A" | "R" | X axis color channel for displacement | | yChannelSelector | "R" \| "G" \| "B" \| "A" | "G" | Y axis color channel for displacement | | numOctaves | number | 2 | Turbulence detail level |

Links

Contributing

Contributions are welcome! Whether it's:

  • 🐛 Reporting bugs
  • 💡 Suggesting new features
  • 📝 Improving documentation
  • 🔧 Submitting pull requests

Please feel free to open an issue or submit a Pull Request on GitHub.

License

MIT