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

reactnativehexagen

v1.0.2

Published

Enterprise-Grade Hexagonal Architecture Scaffolding for React Native (Expo/CLI)

Readme

📱 ReactNativeHexaGen

Enterprise-Grade Hexagonal Architecture Scaffolding for React Native

ReactNativeHexaGen is a powerful CLI tool designed by Vortex Solutions to jumpstart high-performance, testable, and maintainable React Native applications. It enforces a strict separation of concerns, allowing your core business logic to remain agnostic of infrastructure, frameworks, and UI.


🚀 Features

  • 🛡️ Hexagonal Architecture: Enforces Domain, Application, and Infrastructure layers out of the box.
  • 💉 Flexible DI: Choose between Awilix (Proxy-based), TSyringe (Decorators), or Manual Dependency Injection.
  • 📦 Managed & Bare: Optimized for Expo (Managed Workflow + Expo Router) but supports Bare CLI.
  • ⚡ High Performance: Native integration with MMKV for lightning-fast storage.
  • 🧪 Automated Testing: Generates Jest unit tests automatically for every entity and use case.
  • 🛑 Enterprise Error Handling: Global AppError and DomainException hierarchy.
  • 🔍 Validation: Integrated with Zod for bulletproof DTO validation.

🛠️ Installation

Use directly with NPX (Recommended)

You don't need to install anything. Just run:

npx reactnativehexagen init MyAwesomeApp

Global Installation

If you prefer to have the command available everywhere:

npm install -g reactnativehexagen
reactnativehexagen init MyAwesomeApp

Local Development (Contributing)

If you want to contribute to the CLI:

git clone ...
cd ReactNativeHexaGen
npm install
npm run build
npm link

📖 Usage

Initialize a new project

reactnativehexagen init MyAwesomeApp

The CLI will guide you through selecting your environment (Expo/Bare), DI Strategy, and Storage engine.

Generate a new Resource (Feature)

reactnativehexagen gen:resource User

This will automatically scaffold:

  • src/domain/entities/User.ts
  • src/domain/entities/User.test.ts
  • src/domain/repositories/IUserRepository.ts
  • src/application/usecases/GetUserUseCase.ts
  • src/application/usecases/GetUserUseCase.test.ts

🏗️ Architecture Overview

The "Thin Wrapper" Pattern

When using Expo Router, ReactNativeHexaGen implements a "Thin Wrapper" to prevent navigation logic from leaking into your core. The app/ folder contains only minimal entry points that instantiate the dependency container and import the actual screens from src/presentation/.

Dependency Injection Context

We provide a React Context bridge (DIContext) to access your services cleanly:

const getUserUseCase = useDependency<GetUserUseCase>('getUserUseCase');

📜 License

Distributed under the MIT License. See LICENSE for more information.


Developed with ❤️ by rbaezc (Raul Baez Camarillo). "Architecture is the art of making the complex simple."