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

@multiplatform.one/desktop

v7.4.1

Published

Desktop platform APIs (Tauri) for multiplatform.one

Readme

@multiplatform.one/desktop

Capability interfaces for desktop-only concerns — file system, dialogs, paths, and updater — behind one import that no-ops (or throws clearly) everywhere the capability does not exist.

Install

pnpm add @multiplatform.one/desktop

Peers (Tauri builds only, all optional): @tauri-apps/api, @tauri-apps/plugin-dialog, @tauri-apps/plugin-fs, @tauri-apps/plugin-updater.

What it owns

  • fsreadTextFile, writeTextFile, exists, mkdir, remove, rename, copyFile
  • dialogopen, save, message, ask, confirm, prompt
  • paths — well-known directories (home, app data, …)
  • updater — check/install app updates

Each API is an interface plus a default implementation, so shared code (for example @multiplatform.one/frappe-ui's FrappeForm delete confirm) can import it unconditionally on every platform.

State of play. Tauri is the one backend with a full implementation: each API has a .tauri file (selected at build time in Tauri bundles) that rides the matching @tauri-apps/plugin-* peer. A Tauri window running the plain web bundle (dev mode) gets the web defaults, which work there — the webview has the browser modals.

Outside Tauri: dialog.message, .ask, .confirm and .prompt are the browser's modal globals and are therefore web-only. On GNOME they throw a named error: GJS has no window.confirm, and neither silently returning false (a confirm button that appears broken) nor silently returning true (a delete nobody agreed to) is a defensible default for a confirmation. dialog.open and .save return null on both. fs and paths report unsupported outside Tauri; updater is a no-op there.

The GNOME target has real GTK equivalents available (Gtk.FileDialog, Adw.AlertDialog, GLib.get_user_*_dir); wiring them up as index.gnome.ts files behind these same interfaces is the natural next step — the interfaces exist precisely so that lands as an implementation rather than an API change.

What it must not do

  • No UI and no window management — this package wraps capabilities, not chrome

Usage

import { dialog, fs } from "@multiplatform.one/desktop";

export async function exportNotes(contents: string) {
  const path = await dialog.save({ defaultPath: "notes.md" });
  if (!path) return;
  await fs.writeTextFile(path, contents);
  await dialog.message("Notes exported");
}

License

Apache-2.0