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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-ai-tester

v1.0.3

Published

AI-powered automated QA tester for React Native apps.

Downloads

8

Readme

🤖 React Native AI Tester

An AI-powered testing library that automatically analyzes your React Native app — just like a real human QA tester.

react-native-ai-tester runs automated flows, captures UI screens, checks design quality, detects functional issues, and generates a detailed AI QA report using GPT-based analysis.


🧠 Features

✅ Automatically runs through your app (Appium or Maestro compatible)
✅ AI-driven UI/UX analysis using OpenAI Vision
✅ Detects design inconsistencies, alignment issues, and crashes
✅ Generates visual QA reports (HTML/JSON)
✅ Easy CLI + JavaScript API
✅ Works with Android & iOS builds


⚙️ Installation

npm install react-native-ai-tester
# or
yarn add react-native-ai-tester

💡 You’ll also need Node.js ≥ 18, Appium, and an OpenAI API key.


🧩 First-Time Setup (Wizard)

The library includes an interactive setup wizard to automatically configure your environment.

Just run:

npx react-native-ai-tester setup

The wizard will:

  1. Check your Node.js version
  2. Verify or install Appium
  3. Ask for your OpenAI API key
  4. Detect your Android/iOS environment
  5. Save everything in .ai-tester-config.json

Example:

🧠 React Native AI Tester — Setup Wizard

✅ Node.js version: 20.11.1
✅ Appium installed (v2.2.0)
🔑 Enter your OpenAI API key (starts with sk-): sk-xxxxxxxxxxxxxxxxx
✅ Configuration saved to .ai-tester-config.json

🚀 Quick Start (CLI)

After setup, run your first AI test:

npx react-native-ai-tester   --app ./android/app/build/outputs/apk/release/app-release.apk   --output ./ai-qa-report.html

This will:

  1. Launch your app on an emulator or simulator
  2. Capture screens and flows
  3. Analyze them using GPT Vision
  4. Generate a full AI QA report

💻 Programmatic Usage

import { runAITest } from "react-native-ai-tester";

(async () => {
  const report = await runAITest({
    appPath: "./android/app/build/outputs/apk/release/app-release.apk",
    includeVisualCheck: true,
    output: "./ai-qa-report.html",
  });

  console.log("✅ AI QA Report generated at:", report);
})();

🧪 Development Setup

git clone https://github.com/yourorg/react-native-ai-tester.git
cd react-native-ai-tester
npm install
npm run build
npm link

Then test locally:

react-native-ai-tester setup
react-native-ai-tester --app ./path/to/app.apk

⚡️ CI/CD Integration Example

You can integrate this library into GitHub Actions, Bitrise, or any CI tool.

Example: GitHub Actions

name: AI QA Test

on:
  push:
    branches: [ main ]

jobs:
  ai-test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Install dependencies
        run: npm install

      - name: Run AI QA Test
        run: |
          npx react-native-ai-tester setup
          npx react-native-ai-tester --app ./android/app/build/outputs/apk/release/app-release.apk --output ./ai-qa-report.html

      - name: Upload Report
        uses: actions/upload-artifact@v4
        with:
          name: ai-qa-report
          path: ai-qa-report.html

🧰 Roadmap

  • [ ] Full Appium/Detox test flow automation
  • [ ] Visual diff between builds
  • [ ] Accessibility & performance audits
  • [ ] PDF dashboard export
  • [ ] CI/CD plugin support

⚖️ License

MIT License © 2025
Developed with ❤️ for smarter mobile testing.