
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
@r1-runtime/apis
Advanced tools
Tauri API shims for R1 — fs, path, event, dialog, clipboard, os, window, store, and SQL.
Tauri API shims for R1 — drop-in replacements for @tauri-apps/api.
Complete implementations of Tauri APIs that work in the browser:
fs)sql)event)dialog)path)os)clipboard)window)store)notification)shell)http)npm install @r1-runtime/apis
import { readTextFile, writeTextFile, readDir } from '@r1-runtime/apis/fs';
await writeTextFile('notes.txt', 'Hello World');
const content = await readTextFile('notes.txt');
const files = await readDir('/app/data');
import { Database } from '@r1-runtime/apis/sql';
const db = await Database.load('sqlite:app.db');
await db.execute('CREATE TABLE users (id INTEGER, name TEXT)');
await db.execute('INSERT INTO users VALUES (?, ?)', [1, 'Alice']);
const rows = await db.select('SELECT * FROM users');
import { listen, emit } from '@r1-runtime/apis/event';
// Listen for events from Rust
await listen('update', (event) => {
console.log('Received:', event.payload);
});
// Emit events to Rust
await emit('button-clicked', { id: 123 });
import { open, save, message } from '@r1-runtime/apis/dialog';
const file = await open({ multiple: false });
const savePath = await save({ defaultPath: 'document.txt' });
await message('Operation complete!', { title: 'Success' });
import { appDataDir, join, basename } from '@r1-runtime/apis/path';
const dataDir = await appDataDir();
const filePath = await join(dataDir, 'config.json');
const name = await basename(filePath);
import { platform, arch, version } from '@r1-runtime/apis/os';
const os = await platform(); // 'linux', 'darwin', 'windows'
const architecture = await arch(); // 'x86_64', 'aarch64'
const osVersion = await version();
import { writeText, readText } from '@r1-runtime/apis/clipboard';
await writeText('Hello from R1!');
const text = await readText();
import { Store } from '@r1-runtime/apis/store';
const store = new Store('settings.json');
await store.set('theme', 'dark');
const theme = await store.get('theme');
await store.save();
All APIs support direct imports:
import { ... } from '@r1-runtime/apis/fs';
import { ... } from '@r1-runtime/apis/sql';
import { ... } from '@r1-runtime/apis/event';
import { ... } from '@r1-runtime/apis/dialog';
import { ... } from '@r1-runtime/apis/path';
import { ... } from '@r1-runtime/apis/os';
import { ... } from '@r1-runtime/apis/clipboard';
import { ... } from '@r1-runtime/apis/window';
import { ... } from '@r1-runtime/apis/store';
import { ... } from '@r1-runtime/apis/notification';
import { ... } from '@r1-runtime/apis/shell';
import { ... } from '@r1-runtime/apis/http';
These APIs are designed to be drop-in replacements for @tauri-apps/api. Your existing Tauri frontend code should work without changes.
MIT © 2026 R1 Runtime Team
FAQs
Tauri API shims for R1 — fs, path, event, dialog, clipboard, os, window, store, and SQL.
The npm package @r1-runtime/apis receives a total of 16 weekly downloads. As such, @r1-runtime/apis popularity was classified as not popular.
We found that @r1-runtime/apis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.