A powerful CLI tool for analyzing React Native projects, generating comprehensive reports with recommendations and analysis. Get insights into your dependencies, security vulnerabilities, and React Native specific configurations with a beautiful, modern HTML report interface.
- ๐ฆ Advanced Dependency Analysis: Check for outdated packages, available updates, and major version changes
- ๐ Security Audit: Comprehensive vulnerability scanning with detailed reporting and severity levels
- ๐ Modern HTML Reports: Beautiful, responsive reports with drawer-based navigation and interactive elements
- โ๏ธ React Native Specific Analysis: Architecture detection, version compatibility, and New Architecture status
- ๐ง Multiple Package Manager Support: Seamless integration with npm, yarn, and pnpm
- ๐ฑ Mobile-First Design: Responsive report interface optimized for all devices
- โจ๏ธ Keyboard Navigation: Quick navigation with keyboard shortcuts
- ๐จ Modern UI/UX: Clean, professional interface with smooth animations and intuitive design
The generated HTML report includes a modern drawer-based interface with:
- ๐ฆ Dependencies Analysis (opens by default): Interactive table with outdated packages, update types, and NPM links
- ๐ Security Audit: Vulnerability breakdown with severity levels and detailed information
- โ๏ธ React Native: Architecture analysis, version compatibility, and configuration insights
- ๐ Summary: Project health overview with actionable recommendations
- Drawer Navigation: Clean sidebar with section indicators and badges
- Mobile Responsive: Collapsible drawer with touch-friendly interface
- Keyboard Shortcuts:
Ctrl/Cmd + 1-4to switch sections,Escapeto close mobile drawer - Interactive Tables: Sortable columns with hover effects and external links
- Real-time Indicators: Live status badges and progress indicators
- Bun runtime (v1.0.0 or higher)
curl -fsSL https://bun.sh/install | bashnpm install -g react-native-inspectnpx react-native-inspect# Analyze current directory
react-native-inspect
# Analyze specific project
react-native-inspect /path/to/project- ๐ Project Detection: Automatically detects package manager (npm/yarn/pnpm)
- ๐ฆ Dependency Analysis: Scans for outdated packages and categorizes update types
- ๐ Security Audit: Runs vulnerability scan using lockfiles
- โ๏ธ React Native Analysis: Detects RN project and analyzes architecture
- ๐ Report Generation: Creates beautiful HTML report with all findings
- ๐ Auto-Open: Automatically opens report in your default browser
๐ React Native Inspect - Starting Analysis...
โ All dependencies are up to date!
โ Security audit found 3 vulnerabilities (0 critical, 1 high)
โ React Native New Architecture is enabled
โ Report generated: /path/to/react-native-inspect-report.html
โ Report opened in browser
โ
React Native Inspect completed successfully!
src/
โโโ cli/ # CLI interface and commands
โ โโโ commands/ # Command implementations
โ โ โโโ analyze.ts # Project analysis orchestration
โ โ โโโ report.ts # Report generation and browser opening
โ โโโ index.ts # CLI entry point and workflow
โโโ core/ # Core business logic
โ โโโ analyzers/ # Analysis modules
โ โ โโโ dependencies/ # Dependency and security analysis
โ โ โโโ react-native/ # RN-specific analysis and architecture detection
โ โ โโโ security/ # Vulnerability scanning and audit
โ โโโ report/ # Report generation system
โ โ โโโ generators/html/ # Modern HTML report generator
โ โ โโโ templates/ # HTML, CSS, and JS templates
โ โ โโโ web/ # HTML template with drawer design
โ โ โโโ styles/ # Modern CSS with responsive design
โ โ โโโ js/ # Interactive JavaScript features
โ โโโ project/ # Project detection and parsing
โโโ utils/ # Shared utilities
โ โโโ logger.ts # Enhanced logging with colors
โ โโโ spinner.ts # Progress indicators and status
โโโ types/ # TypeScript type definitions
โโโ tests/ # Test suites
- Advanced package.json analysis with detailed outdated package detection
- Comprehensive security audit integration with severity categorization
- Modern HTML report generation with drawer-based navigation
- React Native version compatibility and New Architecture analysis
- Responsive design with mobile-first approach
- Interactive tables with sorting and external links
- Keyboard navigation and accessibility features
- Auto-browser opening and cross-platform support
- Packages replacement recommendation for better options
- Peer dependency analysis and compatibility checking
- Performance recommendations based on bundle analysis
- Migration guides and helpful documentation links
- JSON and Markdown report formats
- CI/CD integration and automated reporting
- Custom report themes and branding options
- Plugin system for custom analyzers
- Historical analysis and trend tracking
- Team collaboration features
- Integration with popular development tools
# Install dependencies
bun install
# Run in development mode
bun run dev
# Build for production
bun run build
# Run tests
bun testWe welcome contributions! Whether it's bug reports, feature requests, or code contributions, please check out our contributing guidelines and feel free to submit pull requests.
MIT License - see LICENSE file for details.
๐ Report Bug โข โจ Request Feature โข ๐ค Contribute