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

@gadiegon/glass-ui

v0.2.0

Published

The definitive, physics-based Glassmorphism UI component library for React and Next.js

Readme

Glass UI (@gadiegon/glass-ui)

Treating Glass as a Living Digital Material.
The definitive, physics-driven Glassmorphism design system and component library for React and Next.js.

NPM Version Live Demo GitHub Repo License: MIT

🌐 Live Interactive Studio & Docs: https://docs-roan-mu-90.vercel.app/
📦 NPM Package: https://www.npmjs.com/package/@gadiegon/glass-ui
📂 GitHub Repository: https://github.com/GadiegoN/glass-ui

Glass UI Showcase


✨ Features

  • 💎 Physics-Driven Glass Engine: Not a plain backdrop-filter: blur(10px). Combines surface diffusion, specular edge highlights, internal caustics, and refractive luminosity.
  • 🌈 8 Distinct Material Presets: frosted, crystal, liquid, smoked, milky, iridescent, clear, and tinted.
  • 📐 5-Tier Depth Elevation System (0 to 4): Calibrates blur, border contrast, elevation shadow, and specular alpha automatically.
  • ⚡ Interactive Dynamic Light Sheen: Optical highlight tracking cursor coordinates over the glass surface in real time.
  • 🎨 Anti-Banding Micro-Noise: Procedural SVG noise texture simulating genuine frosted glass tactility without external assets.
  • 🚀 Next.js 15 & React 19 Ready: Full App Router support, "use client" where interactive, Server Component compatible where applicable.
  • ♿ Accessibility First: Visible focus halos, high-contrast fallbacks, ARIA compliance, and prefers-reduced-motion detection.
  • 📦 Zero-Overhead & Tree-Shakable: Built with clean ESM and TypeScript declarations.

📦 Installation

# pnpm
pnpm add @gadiegon/glass-ui

# npm
npm install @gadiegon/glass-ui

# yarn
yarn add @gadiegon/glass-ui

Import core styles in your root layout.tsx or _app.tsx:

import '@gadiegon/glass-ui/styles.css';

🚀 Quickstart

Wrap your application or page in GlassProvider:

import { GlassProvider, GlassCard, GlassButton } from '@gadiegon/glass-ui';

export default function App() {
  return (
    <GlassProvider theme="dark" defaultMaterial="crystal">
      <GlassCard depth={2} material="crystal" interactiveLight className="max-w-md p-6">
        <GlassCard.Header>
          <GlassCard.Title>Spatial Analytics</GlassCard.Title>
          <GlassCard.Description>Physical glass surface with live sheen</GlassCard.Description>
        </GlassCard.Header>

        <GlassCard.Content>
          <p>This card casts specular highlights based on cursor movement.</p>
        </GlassCard.Content>

        <GlassCard.Footer>
          <GlassButton variant="primary">Confirm Action</GlassButton>
        </GlassCard.Footer>
      </GlassCard>
    </GlassProvider>
  );
}

🔮 The <Glass /> Primitive

The foundation of every component in the system.

import { Glass } from '@gadiegon/glass-ui';

<Glass
  material="crystal"       // 'frosted' | 'crystal' | 'liquid' | 'smoked' | 'milky' | 'iridescent' | 'clear' | 'tinted'
  depth={2}                // 0 | 1 | 2 | 3 | 4
  blur={20}                // In pixels or 'none' | 'sm' | 'md' | 'lg' | 'xl'
  opacity={0.16}           // 0 to 1
  tint="blue"              // 'neutral' | 'slate' | 'blue' | 'purple' | 'emerald' | 'amber' | 'rose' | 'cyan'
  border="specular"        // 'none' | 'subtle' | 'specular' | 'glow'
  specular={true}          // Top edge light reflection
  interactiveLight={true}  // Dynamic sheen tracking mouse
  noise="subtle"           // false | 'subtle' | 'medium' | 'grainy'
  rounded="2xl"            // 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full'
>
  <div>Custom Glass Content</div>
</Glass>

🧩 Components Catalog

| Component | Description | | :--- | :--- | | Glass | Core physical surface primitive with optical layers | | GlassProvider | Context provider for global theme, material presets, and motion | | GlassCard | Composable card with .Header, .Title, .Description, .Content, .Footer | | GlassButton | Tactile interactive button with spring depression and light sheen | | GlassIconButton | Circular action button with glowing feedback | | GlassInput | Text input with high-contrast backing and focus halo | | GlassTextarea | Multiline glass text area | | GlassSwitch | Smooth sliding toggle with elevated crystal pearl | | GlassSlider | Touch/mouse slider with recessed track and elevated crystal thumb | | GlassBadge | Translucent status pill with pulse indicator | | GlassAvatar | Profile avatar with polished glass rim and status dot | | GlassTabs | Navigation tabs with sliding glass active indicator | | GlassModal | Depth 4 modal dialog with intelligent backdrop blur | | GlassDock | Apple visionOS & macOS inspired floating dock with magnification | | GlassNavbar | Sticky translucent navigation bar | | GlassAlert | Luminous status banner with accent glow | | GlassDivider | Ambient light divider line | | GlassCommand | Spotlight command palette (⌘K / Ctrl+K) with keyboard navigation and fast search | | GlassToast | 3D layered imperative toast notifications with optical depth stack and actions | | GlassAccordion | Collapsible panels with tactile elevation, animated chevron, and elastic physics | | GlassProgress | Physical liquid progress bar with recessed translucent track and specular highlight | | GlassSkeleton | Optical glassmorphic placeholder with continuous animated light shimmer | | GlassTable | Translucent data table with sticky blurred header, row hover lighting, and selection | | GlassCalendar | VisionOS-inspired spatial calendar with crystal date capsule and ambient indicators | | GlassDatePicker | Floating translucent date picker with dynamic backdrop blur and quick formatting |


🛠️ Development

# Install dependencies
pnpm install

# Start documentation dev server
pnpm dev

# Build both @gadiegon/glass-ui and apps/docs
pnpm build

# Build library package only
pnpm build:pkg

📄 License

MIT © Glass UI Contributors