Menu

1 / 2

react-native-ultrastore v3.1.0: Zero-Dependency MMKV v4 State with On-Device Vector & Stream Cache

DEV Community: reactnative·Samad khalid·about 14 hours ago
#Hor9IhQv
#devtoreactnative#devto#dev#react#native
Reading 0:00
15s threshold

Building offline-first AI features in React Native (New Architecture) usually means stitching together MMKV for persistence, Zustand for reactive state, and custom native bridges for vector search or token streaming.

I just shipped v3.1.0 of react-native-ultrastore to unify all three into a single, zero-dependency, synchronous JSI runtime built on MMKV v4 + Nitro Modules.

What’s Inside (36.1 kB, 0 Dependencies)

Synchronous JSI Storage & State: Reactive hooks ( useUltraStore ), atomic setMany batching, encrypted namespaces, and strict schema migrations with zero async bridge overhead.

On-Device Vector Search ( react-native-ultrastore/ai ): Cosine similarity search operating directly on cached Float32Array buffers without re-validation overhead—ideal for local RAG/embeddings under ~50k vectors.

Bounded LLM Stream Cache ( UltraStreamCache ): High-frequency token buffering with automatic memory cleanup and snapshot caching so streaming AI responses don't choke React renders.

Production Hardening: Automatic…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.