Docs

@tauri-apps/api

The JS bridge to the Rust core.

What is @tauri-apps/api

The official frontend package: invoke, events, window, path, and more from TypeScript.

Install

npm
bash
npm install @tauri-apps/api

Usage

ts
ts
import { invoke } from '@tauri-apps/api/core';
const out = await invoke<string>('greet', { name: 'Ada' });

Docs

Official documentation: @tauri-apps/api.