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

@rescript-tauri/core

v0.1.1

Published

Production-ready ReScript bindings for @tauri-apps/api (Tauri 2.x)

Readme

@rescript-tauri/core

Production-ready ReScript bindings for Tauri 2.x's official JS SDK (@tauri-apps/api). The core package of the rescript-tauri monorepo, exposing the entire Tauri public API surface (IPC, Event, Window, Webview, Menu, Tray, ...) from ReScript.

Status

Phase 1 — feature-complete on main (12 modules + curated Tauri re-export). Awaiting first npm publish (v0.1.0).

Install (planned, post Phase 1 release)

pnpm add @rescript-tauri/core @tauri-apps/api

@tauri-apps/api is declared as a peerDependency so you control the upstream Tauri version.

Add @rescript-tauri/core to dependencies in your rescript.json:

{
  "dependencies": ["@rescript/core", "@rescript-tauri/core"],
  "package-specs": [{ "module": "esmodule", "in-source": true }]
}

Quick example

open RescriptTauriCore.Tauri

let greeting: string =
  await Core.Raw.invoke("greet", ~args={"name": "World"})

let win = Window.getCurrent()
await win->Window.setTitle("Hello, ReScript")

For the typed Command layer, channels, events, and full window / webview / menu coverage, see the user guide and the runnable examples.

Compatibility

| Component | Supported range | |---|---| | @rescript-tauri/core | this package | | @tauri-apps/api | ^2.0.0 (peer) | | rescript | >=12.0.0 | | @rescript/core | >=1.6.0 | | OS | Linux / macOS / Windows |

Public API

| Module | Purpose | |---|---| | Tauri | open Tauri re-export of the 6 most common modules (Common / Core / Event / Window / Webview / WebviewWindow) | | Common | Cross-cutting shared types (unlisten, color, dragDropEvent) used by Window / Webview / WebviewWindow / Event | | Core | IPC bridge — Raw.invoke, typed Command, streaming Channel, convertFileSrc, isTauri, Resource, PluginListener, addPluginListener, checkPermissions / requestPermissions, LowLevel (transformCallback / SERIALIZE_TO_IPC_FN) | | Event | Pub/sub event bus (make, listen, once, emit, emitTo); tauriEvent polymorphic variant + TauriEvent named values; ~target option on listen / once | | Window | Window class — opaque handle + ~90 instance / static methods (incl. activityName, sceneIdentifier, setFocusable, setSimpleFullscreen, toggleMaximize, unminimize, onDragDropEvent), full type set | | Webview | Webview class — handle + 16 instance methods (incl. getByLabel, clearAllBrowsingData) + drag-and-drop variant | | WebviewWindow | Combined Window + Webview surface; zero-cost asWindow / asWebview casts | | Menu | Application menu hierarchy (MenuItem, CheckMenuItem, IconMenuItem, PredefinedMenuItem, Submenu, Menu); nativeIcon polymorphic variant for macOS system icons | | Tray | System tray icon (TrayIcon) with click-event variant | | Path | Path utilities — 31 helpers + BaseDirectory enum | | App | Application metadata + lifecycle — full coverage incl. bundleType / getBundleType, dataStoreIdentifier / fetchDataStoreIdentifiers / removeDataStore, onBackButtonPress, supportsMultipleWindows | | Image | RGBA-image opaque handle (fromPath, fromBytes, new_, rgba, size) | | Dpi | DPI-aware size and position (LogicalSize, PhysicalSize, LogicalPosition, PhysicalPosition, Size, Position) | | Mocks | Test helpers (mockIPC with ~options=?, mockWindows, mockConvertFileSrc, clearMocks); mockIPCOptions type |

Coverage: 100% of the stable public surface of @tauri-apps/api v2.11.0. The only intentionally-omitted symbol is Image.transformImage, which upstream documents as "API signature is not stable and might change."

See src/<Module>.resi for full doc comments and links to the matching upstream Tauri pages.

See also

Development

This package is part of the rescript-tauri monorepo. From the repository root:

pnpm install                                  # install all workspaces
pnpm --filter @rescript-tauri/core build      # incremental build
pnpm --filter @rescript-tauri/core test       # type-level + vitest
pnpm --filter @rescript-tauri/core run clean  # clean build artifacts