Revolutionizing drug development with multi-agent AI orchestration
Demo β’ Features β’ Installation β’ Usage β’ Architecture
MoleculeX is an advanced pharmaceutical intelligence platform that leverages Google's Gemini AI and a multi-agent orchestration system to provide comprehensive market analysis, patent intelligence, clinical trial tracking, and competitive insights for drug development.
Pharmaceutical companies need to analyze vast amounts of data across multiple domains (market trends, patents, clinical trials, trade data) to make informed strategic decisions. Traditional research methods are:
- β±οΈ Time-consuming and labor-intensive
- π° Expensive requiring multiple specialized analysts
- π Often incomplete or siloed across departments
- π Difficult to synthesize into actionable insights
MoleculeX automates pharmaceutical intelligence gathering using specialized AI agents that work in parallel to:
- Analyze market size, CAGR, and competitive landscapes
- Track patent portfolios and identify IP opportunities
- Monitor clinical trial pipelines across therapeutic areas
- Evaluate import/export trends and trade patterns
- Generate strategic SWOT analysis and opportunity scores
- Master Agent: Orchestrates the entire intelligence gathering workflow
- Market Agent: Analyzes market size, growth rates, and key competitors
- Patent Agent: Tracks patent portfolios, expiry dates, and IP landscapes
- Clinical Trials Agent: Monitors ongoing trials, phases, sponsors, and enrollment
- EXIM Agent: Evaluates import/export volumes and trade patterns
- Web Agent: Gathers competitive intelligence and industry insights
- Report Agent: Synthesizes all data into structured intelligence reports
- Interactive Dashboards: Real-time data visualization with Recharts
- Market Growth Projections: Historical and forecasted market trends
- Patent Timeline Visualization: Track patent expiries and opportunities
- Clinical Trial Phase Distribution: Donut charts showing trial pipeline
- Competitive Landscape Matrix: 2x2 grid mapping market share vs innovation
- SWOT Analysis: Strategic strengths, weaknesses, opportunities, and threats
- Dark/Light Mode: Seamless theme switching with smooth transitions
- Responsive Design: Works flawlessly on desktop, tablet, and mobile
- Real-time Agent Status: Live monitoring of AI agent progress
- Beautiful Landing Page: Professional onboarding experience
- Interactive Charts: Hover effects, tooltips, and drill-down capabilities
- Quota Limit Handling: Automatic detection of API quota exhaustion
- On-the-Fly API Key Switching: Enter new keys without restarting
- Graceful Error Recovery: Continue processing with alternative credentials
- Secure Key Storage: Environment-based configuration
- PDF Generation: Professional reports with tables and analysis
- Structured JSON Export: Programmatic access to all intelligence data
- Source Attribution: Traceable references for all findings
- Node.js (v18 or higher)
- npm or yarn
- Gemini API Key (Get one here)
-
Clone the repository
git clone https://github.com/Abhishekmishra2808/molecule.git cd molecule -
Install dependencies
npm install
-
Configure environment variables
Create a
.env.localfile in the root directory:GEMINI_API_KEY=your_gemini_api_key_here
-
Start the development server
npm run dev
-
Open your browser
Navigate to
http://localhost:3000
- Landing Page: Click "Get Started" to enter the application
- Research Setup:
- Enter your research question (e.g., "What are the emerging opportunities in cardiovascular drug development in Asia?")
- Select region (Asia, USA, Europe, Global, India)
- Optionally specify a molecule name
- Enable/disable PDF report generation
- Run Orchestration: Click the button to start AI analysis
- Monitor Progress: Watch agents execute in real-time
- View Results: Explore insights across Market, Clinical, IP, EXIM, and Strategy tabs
- Download Report: Export comprehensive PDF analysis
If you encounter a Gemini API quota limit:
- A modal will automatically appear
- Enter a new API key from Google AI Studio
- Click "Retry with New Key"
- Processing continues seamlessly
What are the emerging opportunities in cardiovascular drug development in Asia?
Analyze the biosimilar landscape for oncology drugs in Europe
What is the patent cliff risk for diabetes medications in the USA?
Evaluate clinical trial activity for mRNA vaccines globally
Frontend
- React 19 with TypeScript
- Vite for blazing-fast builds
- Tailwind CSS for styling
- Lucide React for icons
- Recharts for data visualization
AI & Backend
- Google Gemini 2.5 Flash (via
@google/genai) - Multi-agent orchestration system
- Real-time status polling
- Sequential agent execution with fault tolerance
Export & Reporting
- jsPDF for PDF generation
- jsPDF-AutoTable for structured tables
- JSON structured output
molecule/
βββ components/
β βββ AgentPanel.tsx # Agent status monitoring
β βββ Charts.tsx # Data visualization components
β βββ ChatPanel.tsx # System logs display
β βββ LandingPage.tsx # Welcome screen
β βββ ResultCards.tsx # Intelligence cards & SWOT
βββ services/
β βββ api.ts # Gemini API integration & orchestration
βββ App.tsx # Main application component
βββ types.ts # TypeScript interfaces
βββ index.tsx # Application entry point
βββ package.json # Dependencies
βββ vite.config.ts # Build configuration
βββ .env.local # Environment variables (not in git)
graph TD
A[User Query] --> B[Master Agent]
B --> C[Market Agent]
B --> D[Patent Agent]
B --> E[Trials Agent]
B --> F[EXIM Agent]
B --> G[Web Agent]
C --> H[Report Agent]
D --> H
E --> H
F --> H
G --> H
H --> I[Structured Result]
I --> J[UI Dashboard]
I --> K[PDF Export]
Beautiful, professional landing page with smooth animations and gradient effects.
Real-time agent monitoring, research setup panel, and comprehensive data tabs.
Interactive bar charts showing market growth projections with key metrics cards.
Donut chart visualization of trial phases with detailed trial listings.
Horizontal bar chart showing patent expiries with remaining years indicators.
Scatter plot matrix mapping competitors by market share and innovation scores.
| Variable | Description | Required |
|---|---|---|
GEMINI_API_KEY |
Your Google Gemini API key | Yes |
Theme Colors: Modify tailwind.config.js (if present) or CSS variables in index.css
AI Models: Update model names in services/api.ts:
const modelSearch = 'gemini-2.5-flash';
const modelReasoning = 'gemini-2.5-flash';Delay Between API Calls: Adjust in services/api.ts:
const SAFE_DELAY_MS = 15000; // 15 secondsIssue: "Quota limit exceeded" error
- Solution: Use the API key modal to enter a new Gemini API key
Issue: Charts not rendering properly
- Solution: Ensure all data fields are populated; check browser console for errors
Issue: Build fails with TypeScript errors
- Solution: Run
npm installto ensure all type definitions are installed
Issue: Vite server won't start
- Solution: Check if port 3000 is available or change port in
vite.config.ts
npm run buildThis creates an optimized production build in the dist/ folder.
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel- Connect your GitHub repository to Netlify
- Set build command:
npm run build - Set publish directory:
dist - Add environment variable:
GEMINI_API_KEY
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Abhishek Mishra
- GitHub: @Abhishekmishra2808
- LinkedIn: Connect with me
- Google Gemini for powerful AI capabilities
- Recharts for beautiful chart components
- Lucide for clean, consistent icons
- Tailwind CSS for utility-first styling
- The pharmaceutical research community for inspiration
Current Version: 2.5.0
Status: β
Active Development
Last Updated: December 2025
- Add real-time web search integration
- Implement user authentication and saved queries
- Add comparison mode for multiple molecules
- Integrate with additional data sources (FDA, EMA)
- Add collaborative features for team research
- Implement API rate limiting dashboard
- Add export to Excel/CSV functionality
β Star this repo if you find it helpful!
Made with β€οΈ for the pharmaceutical research community