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-widgets-api

v0.5.0

Published

A Tauri v2 plugin to interact with App Widgets on Android and iOS, with desktop fallback. SharedPreferences / UserDefaults / WidgetKit / AppWidgetManager.

Readme

Platform npm version Crates.io Documentation docs.rs License GitHub release GitHub downloads GitHub issues GitHub stars Donate

Tauri Plugin Widgets

Native widgets for Android, iOS, macOS, Windows, and Linux from one declarative JSON configuration.

Full documentation: https://s00d.github.io/tauri-plugin-widgets


Two CLIs (read this first)

| | Using the plugin in your app | Developing this repository | |---|---|---| | Entry | npx tauri-widgets / pnpm tauri-widgets | pnpm -C scripts cli / pnpm hosts | | Code | published dist-cli/ (from src-cli/) | scripts/ (TypeScript + scripts/sh) | | Examples | init, preview, signing, doctor, validate, trace, clean | hosts up, shot, test, docs-generate, triage |

If you are building an app: ignore pnpm test:android:visual and the rest of the root test:* / *-up scripts — those are for plugin maintainers.

Maintainer map: scripts/README.md · Contributing.


Install

pnpm tauri add tauri-plugin-widgets
# src-tauri/Cargo.toml
[dependencies]
tauri-plugin-widgets = "0.5"
pnpm add tauri-plugin-widgets-api

Consumer CLI (app authors)

npx tauri-widgets init                 # detect platforms → init-macos / ios / windows
npx tauri-widgets preview ./widget.json --size medium --watch
npx tauri-widgets signing              # identities + transport verdict
npx tauri-widgets signing --apply      # write plugins.widgets
npx tauri-widgets validate ./widget.json --platforms ios,android
npx tauri-widgets doctor
npx tauri-widgets trace --follow
npx tauri-widgets clean --group group.com.example.app
npx tauri-widgets clean --cache

Preview needs no native build — edits to the JSON reload in the browser.

JSON Schema (IDE autocomplete):

{
  "$schema": "https://s00d.github.io/tauri-plugin-widgets/schemas/widget-config.v1.json"
}

Example

import { setWidgetConfig } from "tauri-plugin-widgets-api";

await setWidgetConfig(
  {
    $schema: "https://s00d.github.io/tauri-plugin-widgets/schemas/widget-config.v1.json",
    small: {
      type: "vstack",
      padding: 12,
      background: "#1a1a2e",
      children: [
        { type: "text", content: "72°", fontSize: 36, fontWeight: "bold", color: "#fff" },
        { type: "progress", value: 0.7, tint: "#4CAF50", label: "Humidity" },
      ],
    },
  },
  "group.com.example.myapp",
  "weather",
);

Register tauri_plugin_widgets::init() and widgets:default in capabilities. Details: Install · First widget.

Platform setup

| Platform | Docs | | --- | --- | | Android | Setup | | iOS | Setup | | macOS | Setup | | Windows | Setup | | Linux | Setup | | Desktop webview | Setup |

Or: npx tauri-widgets init / init-macos / init-ios / init-windows.

Try from zero

Minimal widget JSON + preview (no Tauri app required for layout):

# clone / degit this folder
npx degit s00d/tauri-plugin-widgets/templates/starter my-widget
cd my-widget
npx tauri-widgets preview ./widget.json --watch --open

Full app: use the example or pnpm tauri add then npx tauri-widgets init.

Developing this plugin (maintainers)

pnpm hosts status
pnpm hosts up ios android
pnpm shot weather.small linux
pnpm cli:test -- --platform desktop
pnpm docs:generate

See scripts/README.md.

License

MIT