@r1-runtime/kernel
v0.3.2
Published
Core OS-like kernel for R1 — WASM orchestration, VFS, and WASI shim.
Maintainers
Readme
@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_preview1implementation for Ruststd::fs - SQLite Support: Full syscall support for
rusqlitewith bundled feature
Installation
npm install @r1-runtime/kernelUsage
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 storageread(path)- Read file as Uint8Arraywrite(path, data)- Write fileexists(path)- Check if file existsdelete(path)- Delete filereaddir(path)- List directory contents
WasmOrchestrator
loadModule(name, url)- Load WASM modulecallFunction(module, fn, args)- Call Rust functionunloadModule(name)- Unload module
License
MIT © 2026 R1 Runtime Team
