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

capacitor-native-glass

v0.2.1

Published

Native iOS 26 Liquid Glass surfaces (nav bar, toolbar, FAB, panel, controls, morphing, mini-player) rendered as overlays for Capacitor apps.

Readme


Why?

The iOS 26 Liquid Glass effect is a Metal/UIKit render — dynamic refraction that samples the content behind it. It cannot be reproduced in CSS. Web UI kits (backdrop-filter: blur, etc.) only imitate the material: the components look plausible, but the "glass" gives away that it's web.

The only real path in a Capacitor app is to render genuine native views as overlays on top of the WebView and bridge their interactions back to JavaScript — the same technique native maps and camera previews use. This plugin does exactly that, for the surfaces a content app actually needs (bars, FAB, panel, mini-player, morphing).

Features

  • Real Liquid Glass — genuine UIGlassEffect / auto-glass UIKit views, not CSS
  • 7 surfaces — nav bar, toolbar, FAB, tinted interactive panel, native controls, morphing, mini-player
  • Morphing — glass bubbles that converge and merge (UIGlassContainerEffect)
  • SF Symbols — usable natively (impossible in the web layer)
  • Touch passthrough — a hitTest host view lets taps reach the WebView outside the controls
  • Event bridge — native taps surface in JS via addListener('action', …)
  • Auto-discovered — SPM Package.swift + CocoaPods podspec, zero Xcode setup
  • Graceful fallbackUIBlurEffect material below iOS 26
  • Capacitor 8, TypeScript types included

Demo

Captured on a real iPhone (iOS 26). Real Liquid Glass only renders on device.

Morphing

https://github.com/user-attachments/assets/d0359dde-7016-40f2-8efe-1b7e46726747

Mini-player

https://github.com/user-attachments/assets/5234bfc2-c6fd-4fa7-a746-4868f5d41730

Tab bar

https://github.com/user-attachments/assets/0fd3c064-be86-4015-94e2-5b21c1c1790e

Native controls

https://github.com/user-attachments/assets/7ecd0b18-9fdb-4cec-97ac-e9eeefaa805b

Tinted panel

https://github.com/user-attachments/assets/997271da-2b05-4a80-9ca4-3f7f731cfe62

Floating button

https://github.com/user-attachments/assets/011a458d-8d1d-4c07-8731-8fcdf9cd02c2

Toolbar

https://github.com/user-attachments/assets/cb0651b8-ab80-44ac-acd2-b015d455c5dd

Installation

npm install capacitor-native-glass
npx cap sync ios

No Xcode configuration needed — the plugin registers itself.

Requirements: Capacitor ≥ 8, and iOS 26 + Xcode 26 for real Liquid Glass. Older iOS falls back to a material blur.

Quick Start

import { NativeGlass } from 'capacitor-native-glass'

// show native chrome
await NativeGlass.showNavbar({ title: 'MaBible' })
await NativeGlass.showToolbar({ items: ['Share', 'Favorite', 'Settings'] })
await NativeGlass.showMiniPlayer({ title: 'Now playing' })

// react to native taps
const sub = await NativeGlass.addListener('action', ({ id }) => {
  console.log('native action:', id) // "toolbar:Share", "segment:1", "miniplayer:playpause"…
})

// tear down
await NativeGlass.hideAll()
sub.remove()

API

| Method | Renders | |---|---| | showNavbar({ title, menu?, items?, groups? }) | top UINavigationBar (auto-glass); right side = pull-down menu, a list of items, or multiple groups (each its own glass capsule) | | updateNavbar({ menu?, items?, groups? }) | change the nav bar's trailing side in place — iOS 26 morphs the glass, incl. splitting one capsule into several (Notes-style) | | showToolbar({ items }) | bottom UIToolbar (auto-glass); items may carry a native pull-down menu | | showFab({ systemIcon }) | floating UIButton(.glass())systemIcon is an SF Symbol | | showPanel({ text }) | interactive, tinted UIGlassEffect panel | | showControls() | native UISegmentedControl + UISlider + UISearchBar | | showMorphing() | UIGlassContainerEffect — bubbles that merge & split | | showMiniPlayer({ title }) | floating glass "now playing" bar | | attachMenu({ id, rect, items, trigger?, previewImage? }) | native context menu (UIContextMenuInteraction) on a WebView region — longPress (lifted preview) or tap (pull-down) | | updateMenuRect({ id, rect }) | re-sync an attached menu's rect after scroll/resize | | detachMenu({ id }) / detachAllMenus() | remove attached context menus | | hide({ surface }) | removes a single surface ('toolbar' \| 'navbar' \| 'fab' \| 'panel' \| 'controls' \| 'morphing' \| 'miniPlayer') | | hideAll() | removes every surface | | addListener('action', cb) | native interaction events ({ id }) |

Notes & limitations

  • Edge-anchored only. Surfaces are fixed to screen edges; they don't scroll-sync with in-page DOM content (that jitters against WKWebView's async scrolling). Use them as chrome.
  • Touch passthrough is handled by a transparent host view whose hitTest returns nil outside the actual controls, so the WebView keeps receiving taps.
  • iOS only. On web/Android the methods reject with "not implemented".

License

MIT © imri-engineer