RN Storage Kit
2026 · personal · open source
One API for fast storage, encrypted secrets, and safe logging in React Native.
RN Storage KitOne storage API for React Native
RN Storage Kit is a storage toolkit for React Native, published under my Devraj Labs org. It puts three different storage needs behind one consistent async API so you stop juggling separate libraries with mismatched interfaces.
The problem
In most apps, fast key value storage, sensitive secrets and debug logging each pull in their own dependency and their own way of doing things. Telling general preferences apart from credentials means wiring up two separate implementations, and getting useful production logs without leaking those credentials is its own headache.
What it gives you
Three primitives under one API:
- MMKV adapter for fast storage of preferences, cache and app state.
- Secure adapter backed by hardware Keychain encryption for tokens and passwords.
- Logger, a production safe structured logger with configurable verbosity.
The logger
The logger is the part I am most happy with:
- Four levels (none, error, info, debug) with progressively more detail.
- A real time subscription model through
onNewLog/offNewLog. - Secure values always masked as
***, so credentials never land in logs, with sensitive fields stripped at info level. - Async writes via
setImmediate, so logging never blocks the UI. - MMKV persistence, so logs survive Metro fast refresh.
- Disabled in production by default.