Alyza is a revolutionary AI-powered conflict resolution application that runs completely on-device using Google Gemma 3N. This privacy-first solution provides intelligent, empathetic guidance for resolving conflicts in personal relationships, workplace situations, and professional settings.
- 100% On-Device AI: All processing happens locally on your device using Google Gemma 3N
- Zero Latency: No network requests mean instant responses
- Complete Privacy: Your sensitive conflict data never leaves your device
- Intelligent Analysis: Real-time sentiment analysis and underlying need identification
- Empathetic Responses: AI-powered guidance that helps navigate difficult conversations
- Cross-Platform: Works on Android, iOS, and Web
- Beautiful UI: Modern, intuitive interface with interactive ocean animations
This project was developed for the Google Gemma 3N Hackathon, showcasing the revolutionary capabilities of on-device AI for sensitive applications like conflict resolution.
- Node.js 18+ and npm
- Android Studio (for Android development)
- Xcode (for iOS development, macOS only)
- Expo CLI:
npm install -g @expo/cli
-
Clone the repository
git clone https://github.com/yourusername/alyza.git cd alyza -
Install dependencies
npm install
-
Install Expo CLI globally (if not already installed)
npm install -g @expo/cli
-
Download the Gemma 3N model
# Create models directory mkdir -p android/app/src/main/assets/models # Download the model (you'll need to obtain this from Google's model hub) # Place the model file in android/app/src/main/assets/models/
-
Push model to device using ADB
# Connect your device and enable USB debugging adb devices # Push the model to the device adb push android/app/src/main/assets/models/gemma-3n-model.bin /sdcard/Android/data/com.omijimo.realalyza/files/models/
-
Verify model installation
adb shell ls /sdcard/Android/data/com.omijimo.realalyza/files/models/
-
Add model to Xcode project
- Open
ios/realalyza.xcworkspacein Xcode - Drag your Gemma 3N model file into the project
- Ensure it's added to the app target
- Open
-
Update model path in code
- The model will be bundled with the app
- Update the model path in your native module if needed
-
Start the development server
npx expo start
-
Choose your platform
- Press
afor Android - Press
ifor iOS - Press
wfor web - Scan QR code with Expo Go app
- Press
-
Build for Android
npx expo build:android
-
Build for iOS
npx expo build:ios
-
Build for Web
npx expo build:web
alyza/
โโโ app/ # Main React Native app
โ โโโ _layout.tsx # Root layout
โ โโโ index.tsx # Main app screen
โ โโโ +not-found.tsx # 404 page
โโโ components/ # React components
โ โโโ Chat.tsx # Chat interface
โ โโโ OceanScene.tsx # 3D ocean background
โ โโโ WebChat.tsx # Web chat component
โ โโโ ...
โโโ android/ # Android native code
โ โโโ app/src/main/java/com/omijimo/realalyza/
โ โโโ LlmModule.kt # Native LLM integration
โ โโโ ...
โโโ ios/ # iOS native code
โโโ website/ # Web version
โ โโโ app/ # Next.js pages
โ โโโ components/ # Web components
โ โโโ ...
โโโ assets/ # Images, fonts, etc.
- Model: Google Gemma 3N (2B parameters)
- Processing: 100% local inference
- Response Time: < 200ms
- Memory Usage: Optimized for mobile devices
- Privacy: Zero data transmission
- Mobile: React Native with Expo
- Web: Next.js 14 with TypeScript
- 3D Graphics: Three.js with React Three Fiber
- Styling: Tailwind CSS
- Animations: Custom CSS animations and Framer Motion
- API: RESTful endpoints for model inference
- Authentication: Optional user accounts
- Data Storage: Local SQLite database
- Sync: Optional cloud sync (user-controlled)
- Launch the app and grant necessary permissions
- Tap "Try Alyza Now" to start a conversation
- Describe your conflict in natural language
- Receive AI guidance with sentiment analysis and empathetic responses
- Follow the suggestions to resolve your conflict
- Real-time Analysis: Get instant feedback on emotional states
- Need Identification: Understand underlying concerns
- Guided Resolution: Step-by-step conflict resolution strategies
- Conversation History: Review past interactions
- Export Options: Save important conversations
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Make your changes
- Test thoroughly
- Submit a pull request
- Follow the existing code style
- Use TypeScript for all new code
- Add tests for new features
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
- Google for the Gemma 3N model and hackathon opportunity
- Expo for the excellent development platform
- Three.js for the beautiful 3D graphics
- React Native community for the amazing ecosystem
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@alyza.ai
- Multi-language support
- Voice input/output
- Group conflict resolution
- Professional mediation tools
- API for third-party integrations
- Advanced analytics dashboard
Made with โค๏ธ for the Google Gemma 3N Hackathon