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

@mtopcu/rn-boilerplate

v0.1.12

Published

πŸš€ Modern React Native boilerplate with Redux Toolkit, RTK Query, React Navigation, TypeScript, and comprehensive testing setup. Perfect starter template for production-ready apps.

Readme

πŸš€ React Native Boilerplate Template

NPM Version Downloads License GitHub Stars

A modern, production-ready React Native template that provides a solid foundation for your mobile app development. Built with industry best practices and the latest tools.

πŸ› οΈ Built With

React Native TypeScript Redux React Navigation Jest ESLint Prettier Yarn Metro iOS Android Node.js

⚑ Quick Start

Create a new React Native project using this template:

npx @react-native-community/cli init MyApp --template @mtopcu/rn-boilerplate

Table of Contents

🎯 Features

  • πŸ—οΈ Modern Architecture: Built with Redux Toolkit and RTK Query
  • 🧭 Navigation: React Navigation v6 with type safety
  • 🎨 TypeScript: Full TypeScript support for better development experience
  • πŸ§ͺ Testing: Jest and React Native Testing Library setup
  • πŸ“± Cross-platform: iOS and Android support
  • πŸ”§ Developer Tools: ESLint, Prettier, and pre-commit hooks
  • πŸš€ Production Ready: Optimized for deployment
  • πŸ“¦ State Management: Redux Toolkit with async thunks
  • 🌐 API Integration: RTK Query for efficient data fetching
  • πŸ”’ Type Safety: Comprehensive TypeScript configuration

Installation

Prerequisites

Make sure you have the following tools installed on your system before running the project:

Steps

  1. Create a new React Native project using the following command:
npx @react-native-community/cli init MyApp --template @mtopcu/rn-boilerplate
  1. Navigate to the project directory:
cd MyApp
  1. Set up environment configuration:
cp .env-example .env
  1. Update the .env file with your configuration values.

  2. Start the Metro server:

npx react-native start
  1. Run the project on an emulator or a physical device:
npx react-native run-android
# or
npx react-native run-ios

Usage

This boilerplate allows you to quickly add new features and extend the existing structure. The main file structure is described below:

Project Structure

src/
β”œβ”€β”€ App.tsx
β”œβ”€β”€ components/
β”‚   └── index.ts
β”œβ”€β”€ provider/
β”‚   β”œβ”€β”€ ReduxProvider.tsx
β”‚   └── index.ts
β”œβ”€β”€ router/
β”‚   β”œβ”€β”€ Router.tsx
β”‚   β”œβ”€β”€ index.ts
β”‚   └── Navigators/
β”‚       β”œβ”€β”€ MainNavigator.tsx
β”‚       └── index.ts
β”œβ”€β”€ screens/
β”‚   β”œβ”€β”€ HomeScreen/
β”‚   β”‚   β”œβ”€β”€ HomeScreen.tsx
β”‚   β”‚   β”œβ”€β”€ HomeScreen.test.ts
β”‚   β”‚   └── index.tsx
β”‚   └── index.ts
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ api.ts
β”‚   β”œβ”€β”€ baseQuery.ts
β”‚   └── index.ts
β”œβ”€β”€ store/
β”‚   β”œβ”€β”€ store.ts
β”‚   β”œβ”€β”€ index.ts
β”‚   └── slices/
β”‚       β”œβ”€β”€ authSlice.ts
β”‚       └── index.ts
└── ...

πŸ“š Libraries & Tools

Core Dependencies

Development Tools

Configuration

  • React Native Config - Environment variable management
  • Metro - JavaScript bundler for React Native
  • Yarn - Package manager with workspaces support

API Configuration

The API configuration is managed through RTK Query and stored in the src/services/api.ts file. You can:

  • Change the API base URL in your environment configuration
  • Add new endpoints to the API slice
  • Configure custom base queries in src/services/baseQuery.ts For more information, visit the RTK Query documentation.

Roadmap & Future Features

  • πŸ”„ Redux Persist - State persistence for better user experience
  • πŸ“š Storybook - Component development and testing environment
  • πŸ§ͺ E2E Testing - End-to-end testing with Detox or Appium
  • πŸ€– Code Generation - Scripts to generate components, screens, and slices
  • πŸŒ™ Dark Mode - Theme switching support
  • 🌍 Internationalization - Multi-language support
  • πŸ“± Push Notifications - Firebase/native push notification setup

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request if you have any improvements or new features to add.