Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@r1-runtime/core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r1-runtime/core

Main thread runtime for R1 — IPC bridge, EventBus, and boot synchronization.

latest
Source
npmnpm
Version
0.3.4
Version published
Maintainers
1
Created
Source

@r1-runtime/core

Main thread runtime for R1 — IPC bridge, EventBus, and boot synchronization.

Features

  • IPC Bridge: Patches window.__TAURI_INTERNALS__ for seamless invoke() calls
  • Event System: Full Tauri event bridge (emit/listen)
  • Boot Orchestration: Manages Worker initialization and WASM loading
  • Zero Frontend Changes: Your existing Tauri frontend code works unchanged

Installation

npm install @r1-runtime/core @r1-runtime/apis

Usage

import { R1Runtime } from '@r1-runtime/core';

// Initialize runtime
const runtime = new R1Runtime();
await runtime.boot();

// Your existing Tauri code now works:
import { invoke } from '@tauri-apps/api/core';
const result = await invoke('greet', { name: 'World' });

API

R1Runtime

  • boot() - Initialize runtime and load WASM backend
  • invoke(cmd, args) - Call Rust command
  • emit(event, payload) - Emit event to Rust
  • listen(event, handler) - Listen for events from Rust

How It Works

The runtime:

  • Registers a Service Worker for asset:// protocol
  • Spawns a Worker for WASM execution
  • Patches window.__TAURI_INTERNALS__ for IPC
  • Loads your Rust backend as WASM
  • Bridges all invoke() calls to the Worker

License

MIT © 2026 R1 Runtime Team

Keywords

tauri

FAQs

Package last updated on 25 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts