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

@ops-ai/react-native-toggly-storage-mmkv4

v1.0.0

Published

MMKV 4 Nitro storage adapter for the React Native Toggly SDK.

Readme

@ops-ai/react-native-toggly-storage-mmkv4

MMKV 4 and Nitro storage adapter for the React Native Toggly SDK.

Install

Install this package with MMKV 4 and Nitro modules. Current React Native hosts need react-native-nitro-modules 0.37.1 or later in that minor line; earlier Nitro releases do not install the current React Native JSI hook:

npm install @ops-ai/react-native-toggly-storage-mmkv4 react-native-mmkv react-native-nitro-modules@^0.37.1

MMKV 4 needs a native build. For bare React Native applications, install CocoaPods after changing native dependencies:

cd ios && pod install

Expo Go cannot load custom native modules. Expo applications need a development build, and all applications must meet their selected React Native release's Node, iOS, Android, and Nitro requirements. Package installation and TypeScript validation do not replace a generated native host build.

Use

import { createMMKV4StorageAdapter } from '@ops-ai/react-native-toggly-storage-mmkv4';

const storage = createMMKV4StorageAdapter({
  id: 'toggly',
  keyPrefix: 'toggly:',
  encrypted: true,
  encryptionKey: '0123456789abcdef',
});

Pass storage to the Toggly client in the same way as other TogglyStorage implementations. The adapter preserves the toggly: key prefix and toggly MMKV ID unless you configure different values.

Migrating from MMKV 2 or 3

MMKV 4 has a different native API, so install this package instead of @ops-ai/react-native-toggly-storage-mmkv. Keep the same id, keyPrefix, path, and encryption key to preserve Toggly's storage addressing. Verify the native-store migration on every target device before shipping: this adapter neither deletes existing data nor copies cache entries between native MMKV implementations.

If an application constructs its own MMKV 4 instance, provide it directly:

import { createMMKV } from 'react-native-mmkv';

const storage = createMMKV4StorageAdapter({
  mmkv: createMMKV({ id: 'toggly', encryptionKey: '0123456789abcdef' }),
});

MMKV 2 and 3

Existing applications using MMKV 2 or 3 continue to use @ops-ai/react-native-toggly-storage-mmkv. This package has a distinct import and does not change the legacy adapter.

License

MIT — see also the repository LICENSE.