npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@r1-runtime/apis

v0.3.2

Published

Tauri API shims for R1 — fs, path, event, dialog, clipboard, os, window, store, and SQL.

Downloads

362

Readme

@r1-runtime/apis

Tauri API shims for R1 — drop-in replacements for @tauri-apps/api.

Features

Complete implementations of Tauri APIs that work in the browser:

  • File System (fs)
  • SQL Database (sql)
  • Events (event)
  • Dialogs (dialog)
  • Path utilities (path)
  • OS information (os)
  • Clipboard (clipboard)
  • Window management (window)
  • Key-value store (store)
  • Notifications (notification)
  • Shell (shell)
  • HTTP (http)

Installation

npm install @r1-runtime/apis

Usage

File System

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');

SQL Database

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');

Events

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 });

Dialog

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' });

Path Utilities

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);

OS Information

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();

Clipboard

import { writeText, readText } from '@r1-runtime/apis/clipboard';

await writeText('Hello from R1!');
const text = await readText();

Store (Key-Value)

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();

Available Exports

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';

Compatibility

These APIs are designed to be drop-in replacements for @tauri-apps/api. Your existing Tauri frontend code should work without changes.

License

MIT © 2026 R1 Runtime Team