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

tauri-plugin-ios-glass-tabbar-api

v0.1.0

Published

A native iOS 26 Liquid Glass UITabBar for Tauri apps, bridged to your web navigation.

Readme

tauri-plugin-ios-glass-tabbar

A native iOS 26 "Liquid Glass" UITabBar for Tauri apps, bridged to your web-side navigation.

Why a native tab bar?

You cannot render real Liquid Glass with CSS inside a Tauri app. Tauri runs your UI in a WKWebView (WebKit), and the web technique for Liquid Glass — an SVG feDisplacementMap used as backdrop-filter: url(#…) — is Chromium-only (WebKit doesn't support SVG filters in backdrop-filter; bug #245510). In the webview you can only get a flat frosted blur, not real refractive glass.

Real Liquid Glass only comes from native UIKit: a standard UITabBar adopts Liquid Glass automatically when built with the iOS 26 SDK. This plugin injects that native bar into your app's window and bridges it to your web nav:

  • web → native: setItems / setActiveTab / setHidden / setBadge
  • native → web: the tabSelected event ({ key, index })

On older iOS it falls back to the standard UITabBar look; on non-iOS platforms every call is a no-op, so cross-platform code stays simple.

Heads-up: this plugin injects native UI chrome into the window — a little unusual for a Tauri plugin. Keep an HTML tab bar as a fallback and hide it once setItems resolves.

Install

Rust (src-tauri/Cargo.toml):

[dependencies]
tauri-plugin-ios-glass-tabbar = "0.1"

JavaScript:

npm install tauri-plugin-ios-glass-tabbar-api
# or: pnpm add / yarn add / bun add

Register it in src-tauri/src/lib.rs:

tauri::Builder::default()
    .plugin(tauri_plugin_ios_glass_tabbar::init())
    // …

Allow the commands in src-tauri/capabilities/default.json:

{ "permissions": ["ios-glass-tabbar:default"] }

Usage

import {
  setItems, setActiveTab, setHidden, setBadge, onTabSelected,
} from 'tauri-plugin-ios-glass-tabbar-api'

// 1. Install the bar (SF Symbol names for the icons).
await setItems([
  { key: 'chats',    title: 'Messages', sfSymbol: 'message' },
  { key: 'contacts', title: 'Contacts', sfSymbol: 'person.2' },
  { key: 'settings', title: 'Settings', sfSymbol: 'gearshape' },
], 0)

// 2. React to native taps -> drive your router.
await onTabSelected(({ key }) => router.go(key))

// 3. Mirror web state back to the native bar.
await setActiveTab(1)          // when nav changes programmatically
await setHidden(true)          // hide on a full-screen pushed view
await setBadge(0, '3')         // or setBadge(0, null) to clear

The native bar overlays the webview (translucent glass → content scrolls under it), so reserve bottom padding in your web content and hide the bar on pushed full-screen screens.

How it works

Tauri/tao creates the UIWindow + WKWebView from Rust; there is no Swift view controller. The plugin's iOS Swift (GlassTabBarPlugin) finds the key window at runtime, adds a UITabBar pinned to the bottom (default iOS 26 appearance = Liquid Glass), and uses Tauri's plugin trigger() to emit tabSelected back to the web layer. Commands set the items, selection, visibility, and badges.

Requirements

  • iOS 13+ to run; iOS 26 SDK (Xcode 26+) for the Liquid Glass material.
  • Tauri v2.

License

MIT © Lê Anh Tuấn