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/kernel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@r1-runtime/kernel

Core OS-like kernel for R1 — WASM orchestration, VFS, and WASI shim.

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

@r1-runtime/kernel

Core OS-like kernel for R1 TauriWeb Runtime — WASM orchestration, VFS, and WASI shim.

Features

  • WASM Orchestration: Load and execute WebAssembly modules in a dedicated Worker
  • Virtual File System (VFS): OPFS-backed file system with full persistence
  • WASI Shim: Complete WASI snapshot_preview1 implementation for Rust std::fs
  • SQLite Support: Full syscall support for rusqlite with bundled feature

Installation

npm install @r1-runtime/kernel

Usage

import { VFS, WasmOrchestrator } from '@r1-runtime/kernel';

// Initialize VFS
const vfs = new VFS();
await vfs.init();

// Create orchestrator
const orchestrator = new WasmOrchestrator(vfs);

// Load WASM module
await orchestrator.loadModule('app', '/wasm/app.wasm');

// Call Rust functions
const result = await orchestrator.callFunction('app', 'greet', { name: 'World' });

API

VFS

  • init() - Initialize OPFS storage
  • read(path) - Read file as Uint8Array
  • write(path, data) - Write file
  • exists(path) - Check if file exists
  • delete(path) - Delete file
  • readdir(path) - List directory contents

WasmOrchestrator

  • loadModule(name, url) - Load WASM module
  • callFunction(module, fn, args) - Call Rust function
  • unloadModule(name) - Unload module

License

MIT © 2026 R1 Runtime Team

Keywords

tauri

FAQs

Package last updated on 20 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