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

@sudobility/di_rn

v0.1.76

Published

React Native implementations of dependency injection services for Sudobility

Readme

@sudobility/di_rn

React Native implementations of dependency injection services for Signa Email.

Installation

npm install @sudobility/di_rn

Peer Dependencies

Make sure you have the following peer dependencies installed:

npm install @sudobility/di @sudobility/types react react-native

Native Dependencies

This package requires the following native dependencies:

npm install @react-native-async-storage/async-storage
npm install @react-native-community/netinfo
npm install @react-navigation/native
npm install @react-native-firebase/analytics
npm install @notifee/react-native

Follow the installation instructions for each native dependency in their respective documentation.

Usage

Storage

import { rnStorage, advancedRNStorage, getStorageService } from '@sudobility/di_rn';

// Basic storage
await rnStorage.setItem('key', 'value');
const value = await rnStorage.getItem('key');

// Advanced storage with TTL
await advancedRNStorage.setItem('key', 'value', 60000); // 60 second TTL
const value = await advancedRNStorage.getItem('key'); // Returns null if expired

// Storage service singleton
const storageService = getStorageService();
await storageService.setItem('key', 'value');

Network

import { rnNetworkClient, rnNetworkService } from '@sudobility/di_rn';

// HTTP requests
const response = await rnNetworkClient.get<User>('/api/user');
const data = response.data;

// Network status
const isOnline = rnNetworkService.isOnline();

// Watch for network changes
const unsubscribe = rnNetworkService.watchNetworkStatus((isOnline) => {
  console.log('Network status:', isOnline);
});

Environment

import { rnEnvProvider, rnAppConfig } from '@sudobility/di_rn';

// Get environment variables
const apiUrl = rnEnvProvider.get('VITE_INDEXER_URL');

// Use pre-configured app config
const { indexerUrl, walletConnectProjectId } = rnAppConfig;

Analytics

import { rnAnalyticsClient } from '@sudobility/di_rn';

// Track events
await rnAnalyticsClient.trackEvent('wallet_connected', { chain: 'ethereum' });

// Set user properties
await rnAnalyticsClient.setUserProperties({ plan: 'premium' });

// Set user ID
await rnAnalyticsClient.setUserId('user-123');

// Track screen views
await rnAnalyticsClient.setCurrentScreen('ConnectWallet');

Notifications

import { rnNotificationService } from '@sudobility/di_rn';

// Request permission
const granted = await rnNotificationService.requestPermission();

// Show notification
const result = await rnNotificationService.showNotification('New Email', {
  body: 'You have a new message from alice.eth',
  data: { emailId: '123' },
});

Theme

import { rnThemeService } from '@sudobility/di_rn';

// Apply theme
rnThemeService.applyTheme('dark'); // 'light' | 'dark' | 'system'

// Get resolved theme
const theme = rnThemeService.getResolvedTheme(); // 'light' | 'dark'

// Watch for theme changes
const unsubscribe = rnThemeService.watchSystemTheme((theme) => {
  console.log('Theme changed:', theme);
});

Navigation

import { rnNavigationService } from '@sudobility/di_rn';

// In App.tsx, set the navigation ref
const navigationRef = useNavigationContainerRef();
rnNavigationService.setNavigationRef(navigationRef);

// Navigate programmatically
rnNavigationService.navigate('EmailDetail', { emailId: '123' });

// Go back
rnNavigationService.goBack('/Inbox');

Logging

import { rnLogger, getLogger } from '@sudobility/di_rn';

// Log messages
rnLogger.info('App started');
rnLogger.warn('Low memory');
rnLogger.error('Network error', error);

// Create child logger with tag
const authLogger = rnLogger.child('Auth');
authLogger.info('User logged in');

Configuration

Environment Variables

Create a .env file in your project root:

VITE_INDEXER_URL=https://indexer.0xmail.box
VITE_WILDDUCK_URL=https://wildduck.0xmail.box
VITE_WALLETCONNECT_PROJECT_ID=your-project-id
VITE_REVENUECAT_API_KEY=your-api-key
VITE_ALCHEMY_API_KEY=your-alchemy-key
VITE_FIREBASE_API_KEY=your-firebase-key
VITE_FIREBASE_PROJECT_ID=your-project-id
# ... other Firebase config

License

MIT