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

@ajuarezso/capacitor-liquid-glass

v0.3.8

Published

iOS 26 Liquid Glass native chrome (TabBar, NavigationBar, Alerts, Sheets) for Capacitor apps. Falls back gracefully on iOS < 26 and Android.

Downloads

1,410

Readme

@ajuarezso/capacitor-liquid-glass

Native iOS 26 Liquid Glass chrome (TabBar, NavigationBar, Alerts, Sheets, Menus) for Capacitor apps. Falls back gracefully on iOS < 26 and Android (no-op), so your app keeps its own CSS chrome on unsupported platforms.

This plugin exists because, as of 2026, no existing Capacitor plugin exposes the real iOS 26 .glassEffect() rendered by UIKit — only CSS backdrop-filter approximations. This plugin floats a real UITabBar (and friends) as a native overlay above your WKWebView, so you get the actual Apple-native morphing, refraction, and tint animations of Liquid Glass on iOS 26+.

Status: 0.1.0TabBar only. NavigationBar, Toolbar, Sheet, Alert, Menu, Popover are on the roadmap.

Install

npm install @ajuarezso/capacitor-liquid-glass
npx cap sync ios

iOS minimum target: 15.0. Real Liquid Glass requires iOS 26+; on older versions the native UITabBar still renders but without the Liquid Glass effect.

Quick start

import { LiquidGlass } from '@ajuarezso/capacitor-liquid-glass';

// Show the native tab bar
await LiquidGlass.showTabBar({
  items: [
    { id: '/home',    label: 'Home',    sfSymbol: 'house' },
    { id: '/search',  label: 'Search',  sfSymbol: 'magnifyingglass' },
    { id: '/cart',    label: 'Cart',    sfSymbol: 'bag', badge: '3' },
    { id: '/profile', label: 'Profile', sfSymbol: 'person' },
  ],
  selectedIndex: 0,
  tintColor: '#FA7319',
});

// Listen for taps
await LiquidGlass.addListener('tabSelected', ({ id, index }) => {
  console.log('Tab tapped:', id, index);
});

// Update badge without rebuilding the tab bar
await LiquidGlass.updateTabBadge({ id: '/cart', badge: '5' });

// Programmatically change the selected tab
await LiquidGlass.setSelectedTab({ id: '/profile' });

// Hide (e.g. when opening a fullscreen modal)
await LiquidGlass.hideTabBar();

API

showTabBar(options)

| Option | Type | Required | Description | | --------------- | ----------------------- | -------- | ----------------------------------------------------------- | | items | LiquidGlassTabItem[] | yes | At least one item. | | selectedIndex | number | no | Initial selection. Defaults to 0. | | tintColor | string (#RRGGBB) | no | Color of the selected pill. Defaults to the system tint. |

LiquidGlassTabItem

interface LiquidGlassTabItem {
  /** Stable id emitted in `tabSelected` events. */
  id: string;
  /** Text under the icon. */
  label: string;
  /** SF Symbol name (e.g. 'house.fill'). */
  sfSymbol: string;
  /** Optional badge value (e.g. '3' or '•'). */
  badge?: string;
}

hideTabBar()

Hides the tab bar without destroying it. Use this when opening fullscreen modals, maps, or any UI that should temporarily own the screen. Call showTabBar(...) again to restore it.

setSelectedTab({ index?, id? })

Updates the selected tab programmatically. Useful when the user navigates via a deep link, a button inside a page, or any source other than the tab bar itself.

updateTabBadge({ id, badge })

Updates a single tab's badge without reconfiguring the whole bar (preserves selection). Pass an empty string or omit badge to clear.

getTabBarLayout()

Returns the current { height, bottomSafeArea } in points so you can reserve content padding.

Events

| Event | Payload | | ---------------------- | ------------------------------------------- | | tabSelected | { index: number, id: string } | | tabBarLayoutChanged | { height: number, bottomSafeArea: number } |

Angular example

import { bindLiquidGlassNav } from './liquid-glass-nav';

export class CustomerLayout {
  private readonly nav = bindLiquidGlassNav({
    items: [
      { id: '/home',    label: 'Home',    sfSymbol: 'house' },
      { id: '/orders',  label: 'Orders',  sfSymbol: 'list.bullet.clipboard' },
      { id: '/profile', label: 'Profile', sfSymbol: 'person' },
    ],
    isFullscreen: this.isFullscreen, // signal<boolean>
  });

  readonly useNativeTabBar = this.nav.useNativeTabBar;
}

See the example/ folder for a full wiring including router sync and HTML fallback for unsupported platforms.

Platform behavior

| Widget | iOS 26+ | iOS 15–25 | Android | Web | | ------------ | -------------------- | ------------------- | ------- | ---------- | | TabBar | ✅ Liquid Glass real | ⚠️ Classic UITabBar | ❌ no-op | ❌ no-op |

When the plugin is a no-op (Android, Web, iOS < 26), render your own HTML / CSS fallback. The plugin exposes Capacitor.getPlatform() and your Angular / React code can conditionally swap to a backdrop-filter bar.

Why not just CSS backdrop-filter?

Because it's not the same thing.

  • CSS backdrop-filter gives you blur. That's it.
  • Liquid Glass gives you blur + dynamic refraction, edge highlights that shift with content, morphing between elements, touch-reactive deformation, tinted / clear variants, and system-level Dynamic Island integration. These require private Metal shaders that Apple does not expose to WKWebView.

This plugin is the shortest path to Apple-authentic Liquid Glass from a Capacitor app.

Roadmap

  • [x] TabBar
  • [ ] NavigationBar (large title, leading/trailing items)
  • [ ] Toolbar (floating toolbar like Safari)
  • [ ] Alert (standard and destructive)
  • [ ] Sheet (with detents)
  • [ ] Menu / Popover
  • [ ] Android Material 3 Expressive equivalents

PRs welcome.

License

MIT © Anthony Juarez Solis