Skip to content

KMS74/roshetta-ai

Repository files navigation

🩺 Roshetta.AI

The AI Prescription ExpertDecoding Handwritten Prescriptions with Precision.

Next.js TypeScript Tailwind CSS Gemini AI Supabase


🚀 Overview

Roshetta.AI is a state-of-the-art AI-powered platform designed to bridge the gap between complex medical handwriting and patient understanding. Leveraging Google's Gemini 3 Flash Vision model, it instantly translates handwritten prescriptions into clear, structured, and actionable medical summaries.


✨ Key Features

  • 🔍 AI-Powered OCR: Advanced vision recognition specialized for handwritten medical prescriptions.
  • 💊 Medication Intelligence: Automatically extracts drug names, dosages, frequencies, and administration routes.
  • ⚠️ Drug Interaction Detection: Intelligent analysis to identify potential interactions and safety warnings.
  • 📄 Professional PDF Reports: Generate and download detailed medical summaries for your records.
  • 📤 Smart Results Sharing: Easily share analysis results via WhatsApp or other platforms.
  • 🌍 Fully Bilingual: Native support for English and Arabic with seamless RTL/LTR layout transitions.
  • 💾 Scan History: Securely save, retrieve, and manage your previous prescription scans.
  • 🌓 Premium Adaptive UI: Fluid dark and light mode experience with smooth micro-animations.

🛠️ Technology Stack

Category Technology
Framework Next.js 16 (App Router)
Language TypeScript
Styling Tailwind CSS v4 & Motion
AI Vision Google Gemini 3 Flash
Backend/DB Supabase
PDF Engine React-PDF
i18n next-intl
Analytics Vercel Analytics

🏁 Getting Started

Prerequisites

  • Node.js: v18.17.0 or higher
  • Package Manager: npm or yarn
  • Gemini API Key: Obtain from Google AI Studio
  • Supabase Account: (Optional) For history and feedback persistence

Installation

  1. Clone & Install

    git clone https://github.com/your-username/roshetta.ai.git
    cd roshetta.ai
    npm install
  2. Environment Configuration Create a .env.local file in the root directory:

    # Gemini AI Configuration
    NEXT_PUBLIC_GEMINI_API_KEY="your_gemini_key"
    GEMINI_API_KEY="your_gemini_key"
    
    # Supabase Configuration (Optional)
    NEXT_PUBLIC_SUPABASE_URL="your_supabase_url"
    NEXT_PUBLIC_SUPABASE_ANON_KEY="your_anon_key"
    
    # App Configuration
    NEXT_PUBLIC_APP_URL="http://localhost:3000"
  3. Run Development Server

    npm run dev

    Open http://localhost:3000 to see the app in action.


📁 Project Structure

├── app/             # Next.js App Router (Locale-aware routing)
├── components/      # UI Components (Home, Results, Shared, etc.)
├── context/         # React Context Providers (History, etc.)
├── hooks/           # Custom React Hooks (Scanner logic)
├── i18n/            # Internationalization configuration
├── lib/             # Core utilities (Gemini, Supabase, Analytics)
├── messages/        # Translation dictionaries (EN/AR)
├── public/          # Static assets, icons, and PWA manifest
└── styles/          # Global CSS and Tailwind configuration

📄 License

Distributed under the MIT License. See LICENSE for more information.


Built with ❤️ for better healthcare accessibility

About

Roshetta.AI is a state-of-the-art AI-powered platform designed to bridge the gap between complex medical handwriting and patient understanding.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors