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

@codeimplants/ui-kit

v1.0.7

Published

Enterprise-grade cross-platform UI components for error handling, network states, and user feedback

Readme

@codeimplants/ui-kit

Enterprise-grade error UI screens and components for React Native

Platform React Native TypeScript

Overview

@codeimplants/ui-kit provides beautiful, production-ready error screens and UI components for React Native applications. Designed with 100% customizability in mind, every pixel, color, and text can be controlled via props.

This package contains 22 unique screens categorized into four main domains: Errors, Network, Permissions, and System.

Project Structure

The package is organized into a modular structure for better maintainability and discoverability:

src/
├── components/       # Shared UI components (buttons, cards, icons, etc.)
├── screens/          # Full-screen views (errors, system, permissions)
├── types/            # Modular type definitions
├── utils/            # Utility functions
└── index.ts          # Public API export

Common Configuration

All screens share a set of common configuration props that unify the design and behavior across your app.

🎨 Theme & Styling

Customize the look and feel globally or per-screen using the theme prop.

<Screen
  theme={{
    primary: '#6200EE',       // Main brand color
    background: '#FFFFFF',    // Screen background
    surface: '#F5F5F5',       // Card/Input background
    textPrimary: '#000000',   // Main text color
    textSecondary: '#757575', // Subtitle text color
    error: '#B00020',         // Error state color
    success: '#00C853',       // Success state color
    warning: '#FFAB00',       // Warning state color
  }}
/>

🛠 Support Integration

Integrates seamlessly with @codeimplants/support. All screens accept a support prop to display contact options.

<Screen
  support={{
    whatsapp: { number: '1234567890', label: 'Chat Support' },
    phone: { number: '1800-123-456', label: 'Call Us' },
    email: { address: '[email protected]', label: 'Email Us' }
  }}
  supportVariant="icon-only" // 'icon-only' | 'compact' | 'full'
/>

🔄 Retry Logic

For error and network screens, the optional retryInfo prop displays attempt counts and limits.

<Screen
  onRetry={handleRetry}
  retryInfo={{
    attempt: 2,
    maxAttempts: 5
  }} // Displays "Retrying (2/5)..."
/>

Screen Reference

1. Error Screens (5 Screens)

Generic and specific handlers for API and runtime errors.

| Screen | Description | Key Props | |--------|-------------|-----------| | ApiErrorScreen | General API error handler. | onRetry, errorCode, statusCode | | ClientErrorScreen | Handler for 4xx series errors (e.g., 404). | statusCode, onGoBack | | ServerErrorScreen | Handler for 5xx series errors (e.g., 500). | statusCode, onRetry, retryInfo | | ErrorBoundaryScreen | Global fallback for app crashes. | error, errorDetails, onReset | | InvalidResponseScreen | For malformed/unexpected server data. | errorDetails, onReportError |

2. Network Screens (3 Screens)

Connectivity states handling.

| Screen | Description | Key Props | |--------|-------------|-----------| | NetworkOfflineScreen | No internet connection. | onRetry, tips (troubleshooting steps) | | NetworkSlowConnectionScreen | High latency / poor connection. | connectionSpeed, onContinue (ignore warning) | | ApiTimeoutScreen | Request timeout. | timeoutDuration, onRetry |

3. Permission Screens (4 Screens)

OS permission request flows.

| Screen | Description | Key Props | |--------|-------------|-----------| | PermissionScreen | Simple single-permission request. | permissionType, onAllow, onDeny | | PermissionRequestScreen | Detailed request with "Why we need this". | reasons (array), icon | | PermissionDeniedScreen | Help screen when permission is permanently denied. | steps (how to enable in settings), onOpenSettings | | MultiPermissionRequestScreen| Request multiple permissions in one flow. | permissions (array of status objects) |

4. System Screens (10 Screens)

App lifecycle and maintenance events.

Update Screens: | Screen | Description | Key Props | |--------|-------------|-----------| | AppUpdateScreen | Unified update handler (soft/force/security). | updateType, newVersion, releaseNotes | | SoftUpdateScreen | Optional update with "Skip" option. | features, onSkip | | OptionalUpdateScreen | Standard update with "Remind Later". | onMaybeLater | | ForceUpdateScreen | Mandatory blocking update. | onUpdate (no skip option) | | SecurityUpdateScreen | Critical security patch alert. | features (security fixes details) |

Maintenance Screens: | Screen | Description | Key Props | |--------|-------------|-----------| | SystemMaintenanceScreen | Unified maintenance handler. | type (planned/emergency), estimatedEndTime | | PlannedMaintenanceScreen | Scheduled maintenance with countdown. | onNotifyWhenBack | | UnplannedOutageScreen | Unexpected downtime apology. | onCheckAgain | | EmergencyOutageScreen | Critical service failure. | incidentDetails, onGetUpdates | | ServiceUnavailableScreen | 503 Service Unavailable fallback. | onRetry |

Installation

npm install @codeimplants/ui-kit @codeimplants/support

Platform Compatibility

| Platform | Status | |----------|--------| | iOS | ✅ | | Android | ✅ | | Web (React Native Web) | ✅ | | Expo | ✅ | | Bare React Native | ✅ |

License

MIT