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

@mnemopay/react-native

v0.1.3

Published

MnemoPay for React Native — Hermes-safe HTTPS client + hooks. Recall, wallet, commerce, identity. No native modules, no SQLite, no Node primitives. Pairs with @mnemopay/sdk v1.8+.

Readme

@mnemopay/react-native

Hermes-safe MnemoPay for React Native. Pure HTTPS client + React hooks for memory, wallet, commerce, and identity. No SQLite, no Node primitives, no native modules at load time.

Why this exists

@mnemopay/mobile-sdk was Node-only — it imports better-sqlite3 and fs at module load, which silently crashes every React Native runtime. This package replaces it with a thin HTTPS client that talks to the MnemoPay gateway (mcp-gateway-api.fly.dev) and exposes ergonomic React hooks.

Install

npm install @mnemopay/react-native
# peer deps: react >=18, react-native >=0.71

Quick start

import { configure, useAuth, useWallet, useRecall } from "@mnemopay/react-native";

// Once, at app boot (e.g. inside App.tsx or your AuthContext):
configure({ baseUrl: "https://mcp-gateway-api.fly.dev" });

// In a component:
function HomeScreen() {
  const { session, signInWithApple } = useAuth();
  const { balance, charge } = useWallet({ agentId: session?.agentId });
  const { memories, remember } = useRecall({
    namespace: `rider:${session?.agentId}`,
  });

  return <View>{/* … */}</View>;
}

Hooks

useAuth(initial?, cfg?)

Auth lifecycle. Wraps signInWithApple, signInWithIdentity, signOut. On success, automatically applies the token + agentId to the global config so useWallet / useRecall pick up the session without prop-drilling.

const { session, loading, signInWithApple, signOut } = useAuth();
await signInWithApple({
  identityToken: appleResult.identityToken,
  user: appleResult.user,
  email: appleResult.email,
});
// session.token + session.agentId now active globally

useWallet({ agentId?, autoLoad?, cfg? })

Balance + history + mutation helpers. Auto-loads on mount unless autoLoad: false.

const { balance, charge, settle, refund, refresh } = useWallet({ agentId });
await charge({ amount: 250, currency: "NGN", reason: "Ride to Ikeja" });

useRecall({ namespace?, agentId?, autoLoad?, cfg? })

Vector recall over the server-side memory store. Remembers the last query so refresh() / mutate-triggered re-runs use the same input.

const recall = useRecall({ namespace: `rider:${userId}` });
await recall.query({ query: "work", limit: 5, mode: "vector" });
// recall.memories — top-5 work-tagged memories
await recall.remember({ content: "office at Ikeja Ave 14", tags: ["place:work"] });

Direct client (no hooks)

For non-React code (background tasks, services), use MnemoPayClient directly:

import { MnemoPayClient } from "@mnemopay/react-native/client";

const client = new MnemoPayClient({
  baseUrl: "https://mcp-gateway-api.fly.dev",
  token: jwt,
  agentId: "rider:user-123",
});

const result = await client.recall({ query: "work", limit: 5 });

What this package does NOT do

  • No local SQLite. All memory + wallet state lives server-side on the gateway. This is intentional — local SQLite is what killed @mnemopay/mobile-sdk on Hermes.
  • No native Apple Sign-In bridge. You handle SiwA in your app (with expo-apple-authentication or @react-native-apple-authentication/apple-authentication) and pass the resulting identityToken to signInWithApple(). The server verifies the token against Apple.
  • No on-device encryption / signing. Bearer tokens are managed by the server. Pair with expo-secure-store to persist the session.

Compatibility

  • React Native ≥0.71 (Hermes engine assumed)
  • Expo SDK ≥48 (we test against 52)
  • Server: requires MnemoPay gateway ≥1.8 (the mcp-gateway-api Fly app)

License

Apache-2.0 © Jeremiah Omiagbo / MnemoPay