https://github.com/ameykuradeak/ntrn
Next JS to React Native Conversion
https://github.com/ameykuradeak/ntrn
cli cli-app nextjs nodejs react-native
Last synced: 9 months ago
JSON representation
Next JS to React Native Conversion
- Host: GitHub
- URL: https://github.com/ameykuradeak/ntrn
- Owner: AmeyKuradeAK
- License: apache-2.0
- Created: 2025-04-07T02:10:54.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-19T18:32:18.000Z (about 1 year ago)
- Last Synced: 2025-08-21T13:04:15.634Z (10 months ago)
- Topics: cli, cli-app, nextjs, nodejs, react-native
- Language: JavaScript
- Homepage:
- Size: 495 KB
- Stars: 15
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
#
π **NTRN v4.1.2 - Professional Next.js to React Native Converter** π



```bash
_ _ _____ ____ _ _
| \ | |_ _| _ \| \ | |
| \| | | | | |_) | \| |
| |\ | | | | _ <| |\ |
|_| \_| |_| |_| \_\_| \_|
```

##
π **PROFESSIONAL AI-POWERED CONVERTER** π


## π **WHAT'S NEW IN v4.1.2 - EXPO SDK 53 COMPATIBILITY**

π§ MISTRAL AI + GEMINI
Professional Dual AI System

π± EXPO SDK 53
Latest React 19 + RN 0.79

π― INTELLIGENT ANALYSIS
Deep Project Understanding

π§ AUTO-FIXING
Smart Error Resolution

β
PRODUCTION-READY
Enterprise-Grade Code

π INSTANT TESTING
Works with expo start
## π― **CRITICAL UPDATE: EXPO SDK 53 COMPATIBILITY**

π IMMEDIATE EXPO GO COMPATIBILITY
Fixed Issue: "Project is incompatible with the version of EXPO Go"
Solution: Updated to Expo SDK 53 for full Expo Go compatibility
π What Changed:
- π¦ Expo SDK: 51 β 53 (Latest)
- βοΈ React: 18.2 β 19.0 (New features)
- π± React Native: 0.74.5 β 0.79.0 (Performance boost)
- π§ React Navigation: v6 β v7 (Enhanced APIs)
- ποΈ New Architecture: Enabled by default
- π§ TypeScript: Updated to 5.8.3
β
Immediate Benefits:
- π Works with
npx expo start --tunnel immediately
- π± Compatible with current Expo Go app
- ποΈ Future-proof with New Architecture
- β‘ Better performance with React 19
- π‘οΈ Production-ready out of the box
## β¨ **PROFESSIONAL FEATURES**


π§ AI INTELLIGENCE
- π― Project Structure Analysis
- π Technology Stack Detection
- πΊοΈ Strategic Conversion Planning
- π§ Auto-Fixing with User Consent

π± EXPO STRUCTURE
- π¦ Expo SDK 53 + React Native 0.79
- π§ React Navigation 7 + New Architecture
- π Complete TypeScript Config
- π¨ Mobile-First Components

ποΈ ARCHITECTURE
- π± Pages β Screens Conversion
- π API Routes β Services
- π Context Providers Setup
- π Professional File Structure
## π€ **INTERACTIVE AI ASSISTANT - POWERED BY MISTRAL AI & GEMINI**

π€ WHAT YOU CAN ASK:
- "Add a shopping cart screen"
- "Create user authentication flow"
- "Fix conversion issues"
- "Add navigation to screens"
- "Convert API routes to services"
β¨ AI FEATURES:
- π― Project-aware - Understands your conversion
- π± Mobile-optimized - Perfect React Native code
- π Auto-detection - Finds failed conversions
- β‘ Smart fixes - Real-time error resolution
- π‘οΈ Safe operations - User consent required
```bash
π€ You: ntrn --prompt
π€ NTRN: Analyzing your project... Found 3 failed conversions!
π€ NTRN: Would you like me to fix them?
π€ You: yes
π€ NTRN: Fixing rate limit issues and syntax errors...
π Fixed: src/screens/ProfileScreen.tsx
π Fixed: src/services/AuthService.ts
β
All conversions completed successfully!
π€ You: Add dark mode support
π€ NTRN: Creating theme system...
π Created: src/contexts/ThemeContext.tsx
π Modified: App.tsx
β
Dark mode ready with toggle functionality!
```
## π¨ **SHADCN/UI MAGIC CONVERSION**

π BEFORE (Next.js)

π± AFTER (React Native)
**Next.js Code:**
```tsx
import { Button } from "@/components/ui/button"
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
import { Input } from "@/components/ui/input"
export function LoginForm() {
return (
Sign In
Sign In
)
}
```
**React Native Code:**
```tsx
import React from 'react';
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
export function LoginForm() {
return (
Sign In
Sign In
);
}
// + Comprehensive styles automatically generated
```
## β‘ **INSTALLATION & SETUP**

### π **Quick Install:**
```bash
# Install globally
npm install -g ntrn@latest
# Or clone and setup
git clone https://github.com/AmeyKuradeAK/ntrn.git
cd ntrn
npm install
npm link
```
### β‘ **First Time Setup:**
```bash
# Run NTRN - it will guide you through setup
ntrn
# Choose your AI provider (Mistral AI recommended)
# Enter your API key when prompted
# Keys are saved automatically for future use
```
**Requirements:**
1. Node.js 18+ (Latest LTS)
2. Mistral AI API Key (Recommended) or Gemini API Key
3. Expo CLI for testing converted projects
## π― **PROFESSIONAL CONVERSION MODES**
π§
π§ PROFESSIONAL AI
ntrn
- π― Intelligent analysis
- π§ Auto-fixing
- π± Official Expo structure
- ποΈ Production-ready code
π¨
π¨ LEGACY MODE
ntrn --legacy
- π File-by-file conversion
- π Directory selection
- ποΈ Basic Expo setup
- π Traditional approach
π€
π€ AI ASSISTANT
ntrn --prompt
- π¬ Interactive AI chat
- π Auto-detects issues
- β‘ Real-time fixes
- π οΈ Project enhancement
### **π― Choose Your Workflow:**
**For Professional Conversion (Recommended):**
```bash
cd my-nextjs-app
ntrn # Professional AI conversion
```
**For Interactive Development:**
```bash
ntrn --prompt # AI assistant mode
```
**For Traditional Approach:**
```bash
ntrn --legacy # Legacy file-by-file conversion
```
### **π Switch AI Providers:**
```bash
ntrn --switch-provider # Switch between Mistral AI and Gemini
```
**For AI-Powered Development:**
```bash
cd my-react-native-app
ntrn --prompt # ChatGPT-like assistance
```
## π° **PRICING & TOKEN USAGE**

π PROJECT SIZE
π° COST RANGE
π FILES
β‘ SPEED
πΉ Small Projects
$0.005-$0.009
5-15 files
β‘ Instant
πΈ Medium Projects
$0.015-$0.030
20-50 files
β‘β‘ Fast
πΆ Large Projects
$0.041-$0.088
50-150 files
β‘β‘β‘ Quick
π Enterprise
$0.119-$0.288
150+ files
π Blazing
## π **DOCUMENTATION UNIVERSE**
π€
π€ AI Assistant Guide
Complete ChatGPT-like CLI docs
π―
π― Quality Demo
Enhanced fix verification system
π
π Perfect Conversion
100% working React Native examples
π
π Web API Guide
Complete web to native conversion
π¨
π¨ Shadcn Guide
Automatic component conversion
π°
π° Pricing Guide
Comprehensive cost analysis
## β‘ **POWERED BY THE BEST**
## πΈ **Terminal Demo**
## π **ROADMAP TO THE FUTURE**
π§
π§ Auto Dependency Install
Optional automatic setup
π¨
π¨ Full Tailwind Support
Complete class converter
βοΈ
βοΈ CLI Config File
Persistent settings
π
π Dark Mode Everything
README and docs
## π€ **CONTRIBUTING**
We love contributions! Please check out our [CONTRIBUTING.md](CONTRIBUTING.md) before submitting a pull request.
**You can:**
- π Open issues
- π Suggest new features
- π Improve the CLI or documentation
## π **JOIN THE COMMUNITY**
π£οΈ
π£οΈ GitHub Discussions
Ask questions & share ideas
π¦
π¦ X (Twitter)
Follow for updates
π₯
π₯ Reddit
Join discussions
## π« **Stay in Touch**
If you like this project, show some β€οΈ
- β Star the repo
- π¦ Tweet about it
- π’ Share with your team
---
### π **READY TO TRANSFORM YOUR NEXT.JS APP?**
```bash
npm install -g ntrn@latest
cd your-nextjs-project
ntrn
```

## π **License**
This project is licensed under the **APACHE 2.0 License**.
Do whatever you want, just give credit.
---
### **Made with π by [Amey Kurade](https://www.github.com/AmeyKuradeAK)**
[](https://github.com/sponsors/AmeyKuradeAK)
