{"_id":"@adityasingh-ops/rnassist","name":"@adityasingh-ops/rnassist","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adityasingh-ops/rnassist","version":"1.0.0","description":"AI-powered debugger and performance analyzer for React Native projects","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node server.js"},"bin":{"rnassist":"index.js"},"keywords":[],"author":"","license":"ISC","type":"commonjs","dependencies":{"@google/genai":"^1.45.0","@google/generative-ai":"^0.24.1","axios":"^1.13.6","chalk":"^5.6.2","commander":"^14.0.3","dotenv":"^17.3.1","express":"^5.2.1","http":"^0.0.1-security","ora":"^9.3.0","ws":"^8.19.0"},"_id":"@adityasingh-ops/rnassist@1.0.0","gitHead":"80beae726367ad676d79fe75cb3bbd7f503e363e","_nodeVersion":"24.4.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-kAhJnkMSRpMKCs/KU/e6/wiYK/pH0/CWghEV3hg+B0lgrhqjLySlRbLBrl1xZVz6XYy9PZGaHRzFnHU0nToLcw==","shasum":"b935601791a3907ef237b2093dbc6f71d2fcefe2","tarball":"https://registry.npmjs.org/@adityasingh-ops/rnassist/-/rnassist-1.0.0.tgz","fileCount":13,"unpackedSize":272259,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDd+7TNkNPixbS/0mVVP6B07JUBfEsmC9/+dzLdwRvxCAiEAr56ZISkQaJAU//su94xAK7t0/EftXbS1sRYlJ/4sOcY="}]},"_npmUser":{"name":"adityasingh-ops","email":"adi7753071602@gmail.com"},"directories":{},"maintainers":[{"name":"adityasingh-ops","email":"adi7753071602@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rnassist_1.0.0_1773900996064_0.6983711517515465"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-19T06:16:35.920Z","1.0.0":"2026-03-19T06:16:36.229Z","modified":"2026-03-19T06:16:36.488Z"},"maintainers":[{"name":"adityasingh-ops","email":"adi7753071602@gmail.com"}],"description":"AI-powered debugger and performance analyzer for React Native projects","keywords":[],"license":"ISC","readme":"# rnassist\n\nAI-powered debugger and performance analyzer for React Native projects.\n\nRun it inside any React Native project to get real-time analysis of your code, dependencies, runtime errors, network calls, and known bugs — all in one terminal report.\n\n---\n\n![rnassist scan output](https://raw.githubusercontent.com/adityasingh-ops/rnassist/main/assets/scan.png)\n\n## How It Works\n\n```\nrnassist scan\n      ↓\nReads all .ts .tsx .js .jsx files\n      ↓\nChecks dependencies against known RN bug database\n      ↓\nConnects to your running app via Metro WebSocket\nCollects: runtime errors, console logs, network calls\n      ↓\nSends everything to Gemini AI\n      ↓\nPrints a specific, actionable report in your terminal\n```\n\n---\n\n## Requirements\n\n- Node.js 18+\n- A React Native or Expo project\n- Metro bundler running (`npx expo start` or `npx react-native start`)\n\n---\n\n## Installation\n\n```bash\nnpm install -g rnassist\n```\n\n---\n\n## Usage\n\nNavigate to your React Native project root, then run:\n\n### Scan\n\n```bash\nrnassist scan\n```\n\nWatches your running app. Trigger some actions in the simulator or device, then press `Ctrl+C` to analyze. You will get a full report covering:\n\n- Runtime crashes and errors\n- Performance bottlenecks (JS thread, re-renders, memory leaks)\n- Bad patterns and anti-patterns\n- Known bugs matched to your exact dependency versions\n- Network calls made during the session\n\n### Update Bug Database\n\n```bash\nrnassist update-bugs\n```\n\nFetches the latest React Native changelog from GitHub and updates the local bug database. Run this periodically to stay up to date with known fixes.\n\n---\n\n## Example Output\n\n```\n===========================================================================================\n[!] CRITICAL CRASH\n===========================================================================================\nFILE: /app/(tabs)/biometric.tsx\nLINE: 22\n\n  21 |  const data = undefined;\n  22 |  console.log(data.name);  <--- CRASH HERE\n\nFIX: Use optional chaining: console.log(data?.name)\n\n===========================================================================================\n[!] PERFORMANCE — JS THREAD BOTTLENECK\n===========================================================================================\nFILE: /Hooks/useProduct.tsx\n\n  fetchProduct is recreated on every render.\n  Wrap in useCallback to stabilize the reference.\n```\n\n---\n\n## What It Analyzes\n\n- All `.ts`, `.tsx`, `.js`, `.jsx` files in your project (skips `node_modules`, `android`, `ios`, `build`)\n- `package.json` dependencies matched against a database of known RN bugs\n- Live runtime data from your running app via Chrome DevTools Protocol\n- React Native core bug fixes from the official changelog\n\n---\n\n## License\n\nISC","readmeFilename":"Readme.md","_rev":"1-32413b1dc951ac59d377257ecb9b8215"}