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

@danixts/liquid-gooey

v0.5.0

Published

Framework-free liquid UI effects for Astro and Vue

Readme

@danixts/liquid-gooey

Zero-dependency liquid UI effects for native browser APIs, Astro, and Vue.

Playground · npm · Source

npm install @danixts/liquid-gooey

Native API

import { createLiquidGroup } from '@danixts/liquid-gooey'

const group = createLiquidGroup(document.querySelector('[data-liquid]'), {
  blur: 8,
  contrast: 18,
  fill: '#8b5cf6',
})

const item = group.add(document.querySelector('[data-liquid-item]'), {
  effect: 'move',
  move: { springiness: 0.7, wobble: 0.65, stretch: 0.6 },
})

item.update({ x: 120, transition: 'bouncy' })
group.destroy()

Each group owns an isolated SVG surface, observer engine, and item registry. Multiple accounts, widgets, or groups can run on the same page without shared state.

Effects

  • Morph: merge nearby items and tune speed, bounce, content blur, and bridge growth
  • Shape: evolve bounds and corner radii through a spring
  • Move: springiness, wobble, stretch, trail, and advanced motion values
  • Dissolve: noise style, warp, pull, gravity, flow, detail, strength, fade, and release
  • Group surface: blur, contrast, fill, shadow, and filter padding

Vue 3

<script setup lang="ts">
import { LiquidGroup, LiquidItem } from '@danixts/liquid-gooey/vue'
</script>

<template>
  <LiquidGroup :blur="8" :contrast="18" fill="#8b5cf6">
    <LiquidItem as="button" :x="-52" transition="bouncy">One</LiquidItem>
    <LiquidItem as="button" :x="52" transition="bouncy">Two</LiquidItem>
  </LiquidGroup>
</template>

LiquidGroup and LiquidItem map reactive props to isolated native controllers and clean them up automatically. Vue remains an optional peer dependency.

Astro

---
import { LiquidGroup, LiquidItem } from '@danixts/liquid-gooey/astro'
---

<LiquidGroup class="group" blur={8} contrast={18} fill="#8b5cf6">
  <LiquidItem as="button" x={-52} transition="bouncy" type="button">
    One
  </LiquidItem>
  <LiquidItem as="button" x={52} transition="bouncy" type="button">
    Two
  </LiquidItem>
</LiquidGroup>

The Astro group discovers its declarative items, creates one isolated native controller, and cleans up automatically during view transitions.

Interactive Astro UI

Astro components stay declarative while typed client helpers update their native controllers. No framework island is required.

---
import { LiquidGroup, LiquidItem } from '@danixts/liquid-gooey/astro'
---

<LiquidGroup class="menu" blur={7} contrast={19} fill="#fff">
  <LiquidItem as="button" id="action" transition="bouncy">Add</LiquidItem>
  <LiquidItem as="button" id="trigger">Toggle</LiquidItem>
</LiquidGroup>

<script>
  import { updateLiquidItem } from '@danixts/liquid-gooey/astro/client'

  const action = document.querySelector<HTMLElement>('#action')
  const trigger = document.querySelector<HTMLButtonElement>('#trigger')
  let open = false

  trigger?.addEventListener('click', () => {
    open = !open
    if (action)
      updateLiquidItem(action, {
        x: open ? 72 : 0,
        y: open ? -48 : 0,
        transition: 'bouncy',
      })
  })
</script>

The @danixts/liquid-gooey/astro/client subpath exports:

  • updateLiquidItem(element, options)
  • updateLiquidGroup(element, options)
  • wakeLiquidGroup(element)

These helpers use bubbling typed events, so multiple groups can coexist without shared state or controller lookups in application code.

UI recipes

The playground includes production-shaped Astro and Vue examples for an action menu, email composer, notification switch, styled slider, and quantity stepper. Each example uses real buttons, inputs, labels, outputs, keyboard focus, and native form validation rather than decorative-only elements.

Credits

Independent native port of Liquid Gooey by Jakub Antalik. It is not an official fork or endorsed by the original author. The original MIT copyright and license are preserved in this package.