tauri-plugin-hwinfo-0.2.1 has been yanked.
🧠 tauri-plugin-hwinfo
A cross-platform Tauri plugin to fetch detailed system hardware information from the user's device, including CPU, RAM, GPU, and OS metadata — all accessible through both Rust and JavaScript/TypeScript APIs.
⚠️ Platform Support: Desktop-only. Mobile returns placeholder values.
⚠️ Testing: Only Windows is tested and confirmed working so far.
🔧 Features
- ✅ CPU Info (manufacturer, model, threads, max frequency)
- ✅ RAM Info (total memory in MB)
- ✅ GPU Info (model, manufacturer, VRAM in MB, CUDA support, Vulkan support)
- ✅ OS Info (OS name and version)
- ✅ Full Tauri v2 permissions support
- ✅ JS/TS bindings via
@tauri-apps/api/core::invoke
📦 Installation
From Crates.io (Rust)
From GitHub (bleeding edge)
[]
= { = "https://github.com/nikolchaa/tauri-plugin-hwinfo" }
🛠️ Usage (Rust Backend)
Option 1: Auto-bind commands via invoke_handler (if calling from JS/TS manually)
Option 2: Plugin-only setup (if using only the frontend API)
Use Option 1 if you want to manually expose commands to JS via
invoke().Use Option 2 if you're only using
tauri-plugin-hwinfo's built-in TS API.
Add this to your src-tauri/capabilities/default.json:
📜 Output Format
// CPU Info:
// RAM Info:
// GPU Info:
// OS Info:
📌 Frontend API (JS/TS)
Install:
Usage:
import {
getCpuInfo,
getRamInfo,
getGpuInfo,
getOsInfo,
} from "tauri-plugin-hwinfo";
async function logSystemInfo() {
const cpu = await getCpuInfo();
const ram = await getRamInfo();
const gpu = await getGpuInfo();
const os = await getOsInfo();
console.log("CPU Info:", cpu);
console.log("RAM Info:", ram);
console.log("GPU Info:", gpu);
console.log("OS Info:", os);
}