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

@openmini/react-native

v0.1.3

Published

OpenMini React Native host SDK: WebView runtime, bridge host, package resolver

Readme

@openmini/react-native

React Native host SDK for OpenMini: render verified mini-apps from a static registry with <MiniAppProvider> + <MiniAppView>.

import { MiniAppProvider, MiniAppView } from "@openmini/react-native";

<MiniAppProvider registryUrl="https://miniapps.example.com">
  <MiniAppView appId="com.example.todo" onClose={() => nav.goBack()} />
</MiniAppProvider>;

Install — bare React Native

  1. npm install @openmini/react-native
  2. Optional (persistent mini.storage): npm install @react-native-async-storage/async-storage and pass storage={asyncStorageKv()} to the provider.
  3. iOS: cd ios && pod install
  4. Rebuild the app (npm run ios / npm run android).

Install — Expo (dev builds / prebuild)

  1. npx expo install @openmini/react-native
  2. Optional storage: npx expo install @react-native-async-storage/async-storage
  3. Add the plugin to app.json: "plugins": ["@openmini/react-native"]
  4. npx expo prebuild
  5. npx expo run:ios / npx expo run:android (Expo Go is not supported — the SDK ships native code).

The config plugin currently applies no native modifications (autolinking covers everything; the openmini:// scheme is registered at WebView level, not in Info.plist). Listing it anyway keeps your setup stable if a future version needs prebuild-time config.

Expose your own host APIs

Mini-apps call host superpowers as mini.host.invoke(name, payload) — you register them with schemas, and requests are validated before your handler runs (bad input reaches the mini-app as a typed INVALID_PAYLOAD):

import { defineHostApi, MiniAppProvider } from "@openmini/react-native";
import { z } from "zod";

const getCart = defineHostApi({
  name: "getCart",
  request: z.object({ userId: z.string() }),
  response: z.object({ items: z.array(z.object({ sku: z.string() })) }),
  handler: ({ userId }) => ({ items: cartFor(userId) }), // fully typed
});

<MiniAppProvider registryUrl={url} customApis={[getCart]} />;

A mini-app must declare host:getCart in its manifest permissions to call it. Response schemas are checked in dev builds only (zero production cost).

How resolution works

<MiniAppView appId ver> resolves the app against the registry (protocol): fetch index.json, download the package, verify its sha256 against the index before extraction, check per-file hashes (package format), cache content-addressed, then serve it into a WebView over a private scheme with the package's CSP enforced. Bridge behavior is pinned by the bridge protocol and the golden conformance suite — which this host passes on-device.

More: quickstart · bridge API reference